Debian Codegraph @

help/C/index.html

raw ◀ ▶
1 Debian patch touch this file
1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta charset="utf-8" />
5 <meta name="generator" content="pandoc" />
6 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
7 <title>-</title>
8 <style>
9 code{white-space: pre-wrap;}
10 span.smallcaps{font-variant: small-caps;}
11 span.underline{text-decoration: underline;}
12 div.column{display: inline-block; vertical-align: top; width: 50%;}
13 div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
14 ul.task-list{list-style: none;}
15 </style>
16 <link rel="stylesheet" href="data:text/css,%3Aroot%20%7B%0A%2D%2Dtext%2Dcolor%3A%20%2324292e%3B%0A%2D%2Dbackground%2Dcolor%3A%20%23ffffff%3B%0A%2D%2Dalt%2Dbackground%2Dcolor%3A%20%23f6f8fa%3B%0A%2D%2Dlink%2Dcolor%3A%20%230366d6%3B%0A%2D%2Dblockquote%2Dtext%2Dcolor%3A%20%236a737d%3B%0A%2D%2Dblockquote%2Dborder%2Dcolor%3A%20%23dfe2e5%3B%0A%2D%2Dheader%2Dborder%2Dcolor%3A%20%23eaecef%3B%0A%2D%2Dhr%2Dbackground%2Dcolor%3A%20%23e1e4e8%3B%0A%2D%2Dtable%2Dtr%2Dborder%2Dcolor%3A%20%23c6cbd1%3B%0A%2D%2Dtable%2Dtd%2Dborder%2Dcolor%3A%20%23dfe2e5%3B%0A%2D%2Dkbd%2Dtext%2Dcolor%3A%20%23444d56%3B%0A%2D%2Dkbd%2Dbackground%2Dcolor%3A%20%23fafbfc%3B%0A%2D%2Dkbd%2Dborder%2Dcolor%3A%20%23c6cbd1%3B%0A%2D%2Dkbd%2Dshadow%2Dcolor%3A%20%23959da5%3B%0A%7D%0A%2A%20%7B%0Abox%2Dsizing%3A%20border%2Dbox%3B%0A%7D%0Ahtml%20%7B%0Afont%2Dsize%3A%2016px%3B%0A%7D%0Abody%20%7B%0Acolor%3A%20var%28%2D%2Dtext%2Dcolor%29%3B%0Abackground%2Dcolor%3A%20var%28%2D%2Dbackground%2Dcolor%29%3B%0Afont%2Dfamily%3A%20%22Fira%20Sans%22%2C%20fira%2Dsans%2C%20sans%2Dserif%2C%20color%2Demoji%3B%0Aline%2Dheight%3A%201%2E5%3B%0Aword%2Dwrap%3A%20break%2Dword%3B%0Amax%2Dwidth%3A%20980px%3B%0Amargin%3A%20auto%3B%0Apadding%3A%204em%3B%0A%7D%0A%40media%20screen%20and%20%28max%2Dwidth%3A%20799px%29%20%7B%0Ahtml%20%7B%0Afont%2Dsize%3A%2014px%3B%0A%7D%0Abody%20%7B%0Apadding%3A%201em%3B%0A%7D%0A%7D%0A%40media%20screen%20and%20%28min%2Dwidth%3A%201280px%29%20%7B%0Ahtml%20%7B%0Afont%2Dsize%3A%2018px%3B%0A%7D%0A%7D%0Aa%20%7B%0Abackground%2Dcolor%3A%20transparent%3B%0Acolor%3A%20var%28%2D%2Dlink%2Dcolor%29%3B%0Atext%2Ddecoration%3A%20none%3B%0A%7D%0Aa%3Aactive%2C%0Aa%3Ahover%20%7B%0Aoutline%2Dwidth%3A%200%3B%0A%7D%0Aa%3Ahover%20%7B%0Atext%2Ddecoration%3A%20underline%3B%0A%7D%0Astrong%20%7B%0Afont%2Dweight%3A%20600%3B%0A%7D%0Aimg%20%7B%0Aborder%2Dstyle%3A%20none%3B%0A%7D%0Ahr%20%7B%0Abox%2Dsizing%3A%20content%2Dbox%3B%0Aheight%3A%200%2E25em%3B%0Apadding%3A%200%3B%0Amargin%3A%201%2E5em%200%3B%0Aoverflow%3A%20hidden%3B%0Abackground%2Dcolor%3A%20var%28%2D%2Dhr%2Dbackground%2Dcolor%29%3B%0Aborder%3A%200%3B%0A%7D%0Ahr%3A%3Abefore%20%7B%0Adisplay%3A%20table%3B%0Acontent%3A%20%22%22%3B%0A%7D%0Ahr%3A%3Aafter%20%7B%0Adisplay%3A%20table%3B%0Aclear%3A%20both%3B%0Acontent%3A%20%22%22%3B%0A%7D%0Ainput%20%7B%0Afont%2Dfamily%3A%20inherit%3B%0Afont%2Dsize%3A%20inherit%3B%0Aline%2Dheight%3A%20inherit%3B%0Amargin%3A%200%3B%0Aoverflow%3A%20visible%3B%0A%7D%0A%5Btype%3D%22checkbox%22%5D%20%7B%0Abox%2Dsizing%3A%20border%2Dbox%3B%0Apadding%3A%200%3B%0A%7D%0Atable%20%7B%0Aborder%2Dspacing%3A%200%3B%0Aborder%2Dcollapse%3A%20collapse%3B%0A%7D%0Atd%2C%0Ath%20%7B%0Apadding%3A%200%3B%0A%7D%0Ah1%2C%0Ah2%2C%0Ah3%2C%0Ah4%2C%0Ah5%2C%0Ah6%20%7B%0Afont%2Dweight%3A%20600%3B%0Amargin%3A%200%3B%0A%7D%0Ah1%20%7B%0Afont%2Dsize%3A%202em%3B%0A%7D%0Ah2%20%7B%0Afont%2Dsize%3A%201%2E5em%3B%0A%7D%0Ah3%20%7B%0Afont%2Dsize%3A%201%2E25em%3B%0A%7D%0Ah4%20%7B%0Afont%2Dsize%3A%201em%3B%0A%7D%0Ah5%20%7B%0Afont%2Dsize%3A%200%2E875em%3B%0A%7D%0Ah6%20%7B%0Afont%2Dsize%3A%200%2E85em%3B%0A%7D%0Ap%20%7B%0Amargin%2Dtop%3A%200%3B%0Amargin%2Dbottom%3A%200%2E625em%3B%0A%7D%0Ablockquote%20%7B%0Amargin%3A%200%3B%0A%7D%0Aul%2C%0Aol%20%7B%0Apadding%2Dleft%3A%200%3B%0Amargin%2Dtop%3A%200%3B%0Amargin%2Dbottom%3A%200%3B%0A%7D%0Aol%20ol%2C%0Aul%20ol%20%7B%0Alist%2Dstyle%2Dtype%3A%20lower%2Droman%3B%0A%7D%0Aul%20ul%20ol%2C%0Aul%20ol%20ol%2C%0Aol%20ul%20ol%2C%0Aol%20ol%20ol%20%7B%0Alist%2Dstyle%2Dtype%3A%20lower%2Dalpha%3B%0A%7D%0Add%20%7B%0Amargin%2Dleft%3A%200%3B%0A%7D%0Acode%2C%0Akbd%2C%0Apre%20%7B%0Afont%2Dfamily%3A%20%22Fira%20Mono%22%2C%20fira%2Dmono%2C%20monospace%2C%20color%2Demoji%3B%0Afont%2Dsize%3A%201em%3B%0Aword%2Dwrap%3A%20normal%3B%0A%7D%0Acode%20%7B%0Aborder%2Dradius%3A%200%2E1875em%3B%0Afont%2Dsize%3A%200%2E85em%3B%0Apadding%3A%200%2E2em%200%2E4em%3B%0Amargin%3A%200%3B%0A%7D%0Apre%20%7B%0Amargin%2Dtop%3A%200%3B%0Amargin%2Dbottom%3A%200%3B%0Afont%2Dsize%3A%200%2E75em%3B%0A%7D%0Apre%3Ecode%20%7B%0Apadding%3A%200%3B%0Amargin%3A%200%3B%0Afont%2Dsize%3A%201em%3B%0Aword%2Dbreak%3A%20normal%3B%0Awhite%2Dspace%3A%20pre%3B%0Abackground%3A%20transparent%3B%0Aborder%3A%200%3B%0A%7D%0A%2Ehighlight%20%7B%0Amargin%2Dbottom%3A%201em%3B%0A%7D%0A%2Ehighlight%20pre%20%7B%0Amargin%2Dbottom%3A%200%3B%0Aword%2Dbreak%3A%20normal%3B%0A%7D%0A%2Ehighlight%20pre%2C%0Apre%20%7B%0Apadding%3A%201em%3B%0Aoverflow%3A%20auto%3B%0Afont%2Dsize%3A%200%2E85em%3B%0Aline%2Dheight%3A%201%2E5%3B%0Abackground%2Dcolor%3A%20var%28%2D%2Dalt%2Dbackground%2Dcolor%29%3B%0Aborder%2Dradius%3A%200%2E1875em%3B%0A%7D%0Apre%20code%20%7B%0Abackground%2Dcolor%3A%20transparent%3B%0Aborder%3A%200%3B%0Adisplay%3A%20inline%3B%0Apadding%3A%200%3B%0Amargin%3A%200%3B%0Aoverflow%3A%20visible%3B%0Aline%2Dheight%3A%20inherit%3B%0Aword%2Dwrap%3A%20normal%3B%0A%7D%0A%2Epl%2D0%20%7B%0Apadding%2Dleft%3A%200%20%21important%3B%0A%7D%0A%2Epl%2D1%20%7B%0Apadding%2Dleft%3A%200%2E25em%20%21important%3B%0A%7D%0A%2Epl%2D2%20%7B%0Apadding%2Dleft%3A%200%2E5em%20%21important%3B%0A%7D%0A%2Epl%2D3%20%7B%0Apadding%2Dleft%3A%201em%20%21important%3B%0A%7D%0A%2Epl%2D4%20%7B%0Apadding%2Dleft%3A%201%2E5em%20%21important%3B%0A%7D%0A%2Epl%2D5%20%7B%0Apadding%2Dleft%3A%202em%20%21important%3B%0A%7D%0A%2Epl%2D6%20%7B%0Apadding%2Dleft%3A%202%2E5em%20%21important%3B%0A%7D%0A%2Emarkdown%2Dbody%3A%3Abefore%20%7B%0Adisplay%3A%20table%3B%0Acontent%3A%20%22%22%3B%0A%7D%0A%2Emarkdown%2Dbody%3A%3Aafter%20%7B%0Adisplay%3A%20table%3B%0Aclear%3A%20both%3B%0Acontent%3A%20%22%22%3B%0A%7D%0A%2Emarkdown%2Dbody%3E%2A%3Afirst%2Dchild%20%7B%0Amargin%2Dtop%3A%200%20%21important%3B%0A%7D%0A%2Emarkdown%2Dbody%3E%2A%3Alast%2Dchild%20%7B%0Amargin%2Dbottom%3A%200%20%21important%3B%0A%7D%0Aa%3Anot%28%5Bhref%5D%29%20%7B%0Acolor%3A%20inherit%3B%0Atext%2Ddecoration%3A%20none%3B%0A%7D%0A%2Eanchor%20%7B%0Afloat%3A%20left%3B%0Apadding%2Dright%3A%200%2E25em%3B%0Amargin%2Dleft%3A%20%2D1%2E25em%3B%0Aline%2Dheight%3A%201%3B%0A%7D%0A%2Eanchor%3Afocus%20%7B%0Aoutline%3A%20none%3B%0A%7D%0Ap%2C%0Ablockquote%2C%0Aul%2C%0Aol%2C%0Adl%2C%0Atable%2C%0Apre%20%7B%0Amargin%2Dtop%3A%200%3B%0Amargin%2Dbottom%3A%201em%3B%0A%7D%0Ablockquote%20%7B%0Apadding%3A%200%201em%3B%0Acolor%3A%20var%28%2D%2Dblockquote%2Dtext%2Dcolor%29%3B%0Aborder%2Dleft%3A%200%2E25em%20solid%20var%28%2D%2Dblockquote%2Dborder%2Dcolor%29%3B%0A%7D%0Ablockquote%3E%3Afirst%2Dchild%20%7B%0Amargin%2Dtop%3A%200%3B%0A%7D%0Ablockquote%3E%3Alast%2Dchild%20%7B%0Amargin%2Dbottom%3A%200%3B%0A%7D%0Akbd%20%7B%0Adisplay%3A%20inline%2Dblock%3B%0Apadding%3A%200%2E1875em%200%2E3125em%3B%0Afont%2Dsize%3A%200%2E6875em%3B%0Aline%2Dheight%3A%201%3B%0Acolor%3A%20var%28%2D%2Dkbd%2Dtext%2Dcolor%29%3B%0Avertical%2Dalign%3A%20middle%3B%0Abackground%2Dcolor%3A%20var%28%2D%2Dkbd%2Dbackground%2Dcolor%29%3B%0Aborder%3A%20solid%201px%20var%28%2D%2Dkbd%2Dborder%2Dcolor%29%3B%0Aborder%2Dbottom%2Dcolor%3A%20var%28%2D%2Dkbd%2Dshadow%2Dcolor%29%3B%0Aborder%2Dradius%3A%203px%3B%0Abox%2Dshadow%3A%20inset%200%20%2D1px%200%20var%28%2D%2Dkbd%2Dshadow%2Dcolor%29%3B%3B%0A%7D%0Ah1%2C%0Ah2%2C%0Ah3%2C%0Ah4%2C%0Ah5%2C%0Ah6%20%7B%0Amargin%2Dtop%3A%201%2E5em%3B%0Amargin%2Dbottom%3A%201em%3B%0Afont%2Dweight%3A%20600%3B%0Aline%2Dheight%3A%201%2E25%3B%0A%7D%0Ah1%3Ahover%20%2Eanchor%2C%0Ah2%3Ahover%20%2Eanchor%2C%0Ah3%3Ahover%20%2Eanchor%2C%0Ah4%3Ahover%20%2Eanchor%2C%0Ah5%3Ahover%20%2Eanchor%2C%0Ah6%3Ahover%20%2Eanchor%20%7B%0Atext%2Ddecoration%3A%20none%3B%0A%7D%0Ah1%20%7B%0Apadding%2Dbottom%3A%200%2E3em%3B%0Afont%2Dsize%3A%202em%3B%0Aborder%2Dbottom%3A%201px%20solid%20var%28%2D%2Dheader%2Dborder%2Dcolor%29%3B%0A%7D%0Ah2%20%7B%0Apadding%2Dbottom%3A%200%2E3em%3B%0Afont%2Dsize%3A%201%2E5em%3B%0Aborder%2Dbottom%3A%201px%20solid%20var%28%2D%2Dheader%2Dborder%2Dcolor%29%3B%0A%7D%0Ah3%20%7B%0Afont%2Dsize%3A%201%2E25em%3B%0A%7D%0Ah4%20%7B%0Afont%2Dsize%3A%201em%3B%0A%7D%0Ah5%20%7B%0Afont%2Dsize%3A%200%2E875em%3B%0A%7D%0Ah6%20%7B%0Afont%2Dsize%3A%200%2E85em%3B%0Aopacity%3A%200%2E67%3B%0A%7D%0Aul%2C%0Aol%20%7B%0Apadding%2Dleft%3A%202em%3B%0A%7D%0Aul%20ul%2C%0Aul%20ol%2C%0Aol%20ol%2C%0Aol%20ul%20%7B%0Amargin%2Dtop%3A%200%3B%0Amargin%2Dbottom%3A%200%3B%0A%7D%0Ali%20%7B%0Aoverflow%2Dwrap%3A%20break%2Dword%3B%0A%7D%0Ali%3Ep%20%7B%0Amargin%2Dtop%3A%201em%3B%0A%7D%0Ali%2Bli%20%7B%0Amargin%2Dtop%3A%200%2E25em%3B%0A%7D%0Adl%20%7B%0Apadding%3A%200%3B%0A%7D%0Adl%20dt%20%7B%0Apadding%3A%200%3B%0Amargin%2Dtop%3A%201em%3B%0Afont%2Dsize%3A%201em%3B%0Afont%2Dstyle%3A%20italic%3B%0Afont%2Dweight%3A%20600%3B%0A%7D%0Adl%20dd%20%7B%0Apadding%3A%200%201em%3B%0Amargin%2Dbottom%3A%201em%3B%0A%7D%0Atable%20%7B%0Adisplay%3A%20block%3B%0Awidth%3A%20100%25%3B%0Aoverflow%3A%20auto%3B%0A%7D%0Atable%20th%20%7B%0Afont%2Dweight%3A%20600%3B%0A%7D%0Atable%20th%2C%0Atable%20td%20%7B%0Apadding%3A%200%2E375em%200%2E8125em%3B%0Aborder%3A%201px%20solid%20var%28%2D%2Dtable%2Dtd%2Dborder%2Dcolor%29%3B%0A%7D%0Atable%20tr%20%7B%0Abackground%2Dcolor%3A%20var%28%2D%2Dbackground%2Dcolor%29%3B%0Aborder%2Dtop%3A%201px%20solid%20var%28%2D%2Dtable%2Dtr%2Dborder%2Dcolor%29%3B%0A%7D%0Atable%20tr%3Anth%2Dchild%282n%29%20%7B%0Abackground%2Dcolor%3A%20var%28%2D%2Dalt%2Dbackground%2Dcolor%29%3B%0A%7D%0Aimg%20%7B%0Amax%2Dwidth%3A%20100%25%3B%0Abox%2Dsizing%3A%20content%2Dbox%3B%0A%7D%0Aimg%5Balign%3Dright%5D%20%7B%0Apadding%2Dleft%3A%201%2E25em%3B%0A%7D%0Aimg%5Balign%3Dleft%5D%20%7B%0Apadding%2Dright%3A%201%2E25em%3B%0A%7D%0A%2Etask%2Dlist%2Ditem%20%7B%0Alist%2Dstyle%2Dtype%3A%20none%3B%0A%7D%0A%2Etask%2Dlist%2Ditem%2B%2Etask%2Dlist%2Ditem%20%7B%0Amargin%2Dtop%3A%200%2E1875em%3B%0A%7D%0A%2Etask%2Dlist%2Ditem%20input%20%7B%0Amargin%3A%200%200%2E2em%200%2E25em%20%2D1%2E6em%3B%0Avertical%2Dalign%3A%20middle%3B%0A%7D%0A%3Aroot%20%7B%0A%2D%2Dtext%2Dcolor%3A%20%232e3436%3B%0A%2D%2Dbackground%2Dcolor%3A%20%23f6f5f4%3B%0A%2D%2Dalt%2Dbackground%2Dcolor%3A%20%23edeeef%3B%0A%2D%2Dlink%2Dcolor%3A%20%230d71de%3B%0A%2D%2Dblockquote%2Dtext%2Dcolor%3A%20%23747e85%3B%0A%2D%2Dblockquote%2Dborder%2Dcolor%3A%20%23d6d8da%3B%0A%2D%2Dheader%2Dborder%2Dcolor%3A%20%23e1e2e4%3B%0A%2D%2Dhr%2Dbackground%2Dcolor%3A%20%23d8dadd%3B%0A%2D%2Dtable%2Dtr%2Dborder%2Dcolor%3A%20%23bdc1c6%3B%0A%2D%2Dtable%2Dtd%2Dborder%2Dcolor%3A%20%23d6d8da%3B%0A%2D%2Dkbd%2Dtext%2Dcolor%3A%20%234e585e%3B%0A%2D%2Dkbd%2Dbackground%2Dcolor%3A%20%23f1f1f1%3B%0A%2D%2Dkbd%2Dborder%2Dcolor%3A%20%23bdc1c6%3B%0A%2D%2Dkbd%2Dshadow%2Dcolor%3A%20%238c939a%3B%0A%7D%0A%40media%20%28prefers%2Dcolor%2Dscheme%3A%20dark%29%20%7B%0A%3Aroot%20%7B%0A%2D%2Dtext%2Dcolor%3A%20%23eeeeec%3B%0A%2D%2Dbackground%2Dcolor%3A%20%23353535%3B%0A%2D%2Dalt%2Dbackground%2Dcolor%3A%20%233a3a3a%3B%0A%2D%2Dlink%2Dcolor%3A%20%23b5daff%3B%0A%2D%2Dblockquote%2Dtext%2Dcolor%3A%20%23a8a8a6%3B%0A%2D%2Dblockquote%2Dborder%2Dcolor%3A%20%23525252%3B%0A%2D%2Dheader%2Dborder%2Dcolor%3A%20%23474747%3B%0A%2D%2Dhr%2Dbackground%2Dcolor%3A%20%23505050%3B%0A%2D%2Dtable%2Dtr%2Dborder%2Dcolor%3A%20%23696969%3B%0A%2D%2Dtable%2Dtd%2Dborder%2Dcolor%3A%20%23525252%3B%0A%2D%2Dkbd%2Dtext%2Dcolor%3A%20%23cececc%3B%0A%2D%2Dkbd%2Dbackground%2Dcolor%3A%20%233c3c3c%3B%0A%2D%2Dkbd%2Dborder%2Dcolor%3A%20%23696969%3B%0A%2D%2Dkbd%2Dshadow%2Dcolor%3A%20%23979797%3B%0A%7D%0A%7D%0A" />
17 <style>
18 .task-list-item {
19 list-style-type: none;
20 }
21 .task-list-item-checkbox {
22 margin-left: -1.6em;
23 }
24 </style>
25 </head>
26 <body>
27 <h1 id="documentation">Documentation</h1>
28 <h2 id="table-of-contents">Table of contents</h2>
29 <ul>
30 <li>
31 <a href="#permissions">Permissions</a>
32 <ul>
33 <li>
34 <a href="#share">Share</a>
35 </li>
36 <li>
37 <a href="#socket">Socket</a>
38 </li>
39 <li>
40 <a href="#device">Device</a>
41 </li>
42 <li>
43 <a href="#allow">Allow</a>
44 </li>
45 <li>
46 <a href="#filesystem">Filesystem</a>
47 </li>
48 <li>
49 <a href="#persistent">Persistent</a>
50 </li>
51 <li>
52 <a href="#environment">Environment</a>
53 </li>
54 <li>
55 <a href="#system-bus">System Bus</a>
56 </li>
57 <li>
58 <a href="#system-bus">Session Bus</a>
59 </li>
60 <li>
61 <a href="#portals">Portals</a>
62 </li>
63 </ul>
64 </li>
65 <li>
66 <a href="#tips-and-tricks">Tips and Tricks</a>
67 <ul>
68 <li>
69 <a href="#manually-reset-flatseal-permissions">Manually reset Flatseal permissions</a>
70 </li>
71 <li>
72 <a href="#add-new-translations">Add new translations</a>
73 </li>
74 <li>
75 <a href="#enable-custom-installations">Enable custom installations</a>
76 </li>
77 <li>
78 <a href="#use-custom-flatpak_user_dir">Use custom FLATPAK_USER_DIR</a>
79 </li>
80 </ul>
81 </li>
82 </ul>
83 <h2 id="permissions">Permissions</h2>
84 <p>This is the list of permissions supported by Flatseal. These descriptions are based on Flatpak’s <a href="https://docs.flatpak.org/en/latest/sandbox-permissions.html">official documentation</a> and extended with examples and references to make it easier for newcomers to understand.</p>
85 <p>To summarize it, Flatpak provides two different permissions models: static and dynamic</p>
86 <p>Static refers to the permissions set by the developers when applications are built. Static permissions are holes in the sandbox, e.g. an application built with <code>--filesystem=home</code> can access <em>all</em> user personal files. The benefit of this model is that developers can support Flatpak without any change in their applications code.</p>
87 <p>Both Flatseal and <code>flatpak override</code> command-line tool, use the overrides backend to manage static permissions.</p>
88 <p>Dynamic refers to the permissions granted by the users when applications run. Dynamic permissions rely on resource providers called <a href="https://github.com/flatpak/flatpak/wiki/Portals">Portals</a> and can require user confirmation, e.g. users can grant access to <em>one</em> specific file thanks to the <code>org.freedesktop.portal.FileChooser</code> portal. The benefit of this model is that users don’t need to trust applications with more resources than is strictly needed.</p>
89 <p>Both Flatseal and <code>flatpak permissions</code> command-line tool, use the <code>org.freedesktop.impl.portal.PermissionStore</code> service to manage dynamic permissions.</p>
90 <h3 id="share">Share</h3>
91 <table>
92 <colgroup>
93 <col style="width: 25%" />
94 <col style="width: 25%" />
95 <col style="width: 25%" />
96 <col style="width: 25%" />
97 </colgroup>
98 <thead>
99 <tr class="header">
100 <th>Name</th>
101 <th>Type</th>
102 <th>Description</th>
103 <th><code>flatpak override</code> equivalent</th>
104 </tr>
105 </thead>
106 <tbody>
107 <tr class="odd">
108 <td>Network</td>
109 <td>Toggle</td>
110 <td>Allow the application to have access to the network. <br /> <br /> For example, if it’s disabled for Firefox, it will no longer be possible to browse the internet with this application.</td>
111 <td><code>--share=network</code> and <code>--unshare=network</code></td>
112 </tr>
113 <tr class="even">
114 <td><a href="https://en.wikipedia.org/wiki/Inter-process_communication">Inter-process communications</a></td>
115 <td>Toggle</td>
116 <td>Share IPC namespace with the host. <br /> <br /> This is required by X11 due to it depending on IPC.</td>
117 <td><code>--share=ipc</code> and <code>--unshare=ipc</code></td>
118 </tr>
119 </tbody>
120 </table>
121 <h3 id="socket">Socket</h3>
122 <table>
123 <colgroup>
124 <col style="width: 25%" />
125 <col style="width: 25%" />
126 <col style="width: 25%" />
127 <col style="width: 25%" />
128 </colgroup>
129 <thead>
130 <tr class="header">
131 <th>Name</th>
132 <th>Type</th>
133 <th>Description</th>
134 <th><code>flatpak override</code> equivalent</th>
135 </tr>
136 </thead>
137 <tbody>
138 <tr class="odd">
139 <td>X11 windowing system</td>
140 <td>Toggle</td>
141 <td>Allow the application to open in an X11 window. <br /> <br /> Most applications use X11 for historical reasons, but is considered less secure.</td>
142 <td><code>--socket=x11</code> and <code>--nosocket=x11</code></td>
143 </tr>
144 <tr class="even">
145 <td>Wayland windowing system</td>
146 <td>Toggle</td>
147 <td>Allow the application to open in a Wayland window. <br /> <br /> Many applications do not use Wayland as it is a newer display protocol unlike X11, and is considered more secure, but either some applications require extra steps to use it (see <a href="#environment">environment variables</a> example for Firefox), or do not support Wayland at all.</td>
148 <td><code>--socket=wayland</code> and <code>--nosocket=wayland</code></td>
149 </tr>
150 <tr class="odd">
151 <td>Fallback to X11 windowing system</td>
152 <td>Toggle</td>
153 <td>Allow the application to open in an X11 window when Wayland is not available. This overrides the X11 windowing system option when enabled.</td>
154 <td><code>--socket=fallback-x11</code> and <code>--nosocket=fallback-x11</code></td>
155 </tr>
156 <tr class="even">
157 <td>PulseAudio sound server</td>
158 <td>Toggle</td>
159 <td>Allow the application to play sounds or get access to the microphone when using PulseAudio. <br /> <br /> For example, if it’s disabled for Rhythmbox, it will no longer be possible to listen to the music with this application.</td>
160 <td><code>--socket=pulseaudio</code> and <code>--nosocket=pulseaudio</code></td>
161 </tr>
162 <tr class="odd">
163 <td>D-Bus session bus</td>
164 <td>Toggle</td>
165 <td>Allow the application to have access to the entire session bus.</td>
166 <td><code>--socket=session-dbus</code> and <code>--nosocket=session-dbus</code></td>
167 </tr>
168 <tr class="even">
169 <td>D-Bus system bus</td>
170 <td>Toggle</td>
171 <td>Allow the application to have access to the entire system bus.</td>
172 <td><code>--socket=system-dbus</code> and <code>--nosocket=system-dbus</code></td>
173 </tr>
174 <tr class="odd">
175 <td>Secure Shell agent</td>
176 <td>Toggle</td>
177 <td>Allow the application to use SSH authentications.</td>
178 <td><code>--socket=ssh-auth</code> and <code>--nosocket=ssh-auth</code></td>
179 </tr>
180 <tr class="even">
181 <td><a href="https://wiki.debian.org/Smartcards">Smart cards</a></td>
182 <td>Toggle</td>
183 <td>Allow the application to use smart cards.</td>
184 <td><code>--socket=pcsc</code> and <code>--nosocket=pcsc</code></td>
185 </tr>
186 <tr class="odd">
187 <td>Printing system</td>
188 <td>Toggle</td>
189 <td>Allow the application to use printing systems. <br /> <br /> For example, if it’s disabled for LibreOffice, it will no longer be possible to print documents with this application.</td>
190 <td><code>--socket=cups</code> and <code>--nosocket=cups</code></td>
191 </tr>
192 <tr class="even">
193 <td>GPG-Agent directories</td>
194 <td>Toggle</td>
195 <td>Allow the application to access GPG-Agent directories.</td>
196 <td><code>--socket=gpg-agent</code> and <code>--nosocket=gpg-agent</code></td>
197 </tr>
198 <tr class="odd">
199 <td>Inherit Wayland socket</td>
200 <td>Toggle</td>
201 <td>Allow passing WAYLAND_SOCKET environment variable to the sandbox. <br /> <br /> For example, if it's disabled for Fcitx5, it won't be able to connect to Wayland and display its autocompletion dialogs.</td>
202 <td><code>--socket=inherit-wayland-socket</code> and <code>--nosocket=inherit-wayland-socket</code></td>
203 </tr>
204 </tbody>
205 </table>
206 <h3 id="device">Device</h3>
207 <table>
208 <colgroup>
209 <col style="width: 25%" />
210 <col style="width: 25%" />
211 <col style="width: 25%" />
212 <col style="width: 25%" />
213 </colgroup>
214 <thead>
215 <tr class="header">
216 <th>Name</th>
217 <th>Type</th>
218 <th>Description</th>
219 <th><code>flatpak override</code> equivalent</th>
220 </tr>
221 </thead>
222 <tbody>
223 <tr class="odd">
224 <td>GPU acceleration</td>
225 <td>Toggle</td>
226 <td>Allow the application to access the graphics direct rendering to take advantage of GPU acceleration.</td>
227 <td><code>--device=dri</code> and <code>--nodevice=dri</code></td>
228 </tr>
229 <tr class="even">
230 <td>Input devices</td>
231 <td>Toggle</td>
232 <td>Allow input device access. <br /> <br /> Note that raw and virtual input devices could still require <a href="#device">All devices</a></td>
233 <td><code>--device=input</code> and <code>--nodevice=input</code></td>
234 </tr>
235 <tr class="odd">
236 <td>Virtualization</td>
237 <td>Toggle</td>
238 <td>Allow the application to support virtualization.</td>
239 <td><code>--device=kvm</code> and <code>--nodevice=kvm</code></td>
240 </tr>
241 <tr class="even">
242 <td>Shared memory</td>
243 <td>Toggle</td>
244 <td>Allow the application to access shared memory.</td>
245 <td><code>--device=shm</code> and <code>--nodevice=shm</code></td>
246 </tr>
247 <tr class="odd">
248 <td>USB devices</td>
249 <td>Toggle</td>
250 <td>Allow raw USB device access.</td>
251 <td><code>--device=usb</code> and <code>--nodevice=usb</code></td>
252 </tr>
253 <tr class="even">
254 <td>All devices</td>
255 <td>Toggle</td>
256 <td>Allow the application to access all devices, such as webcam and external devices. <br /> <br /> For example, if it’s disabled for Element, it will no longer be possible to do video calls with this application.</td>
257 <td><code>--device=all</code> and <code>--nodevice=all</code></td>
258 </tr>
259 </tbody>
260 </table>
261 <h3 id="allow">Allow</h3>
262 <table>
263 <colgroup>
264 <col style="width: 25%" />
265 <col style="width: 25%" />
266 <col style="width: 25%" />
267 <col style="width: 25%" />
268 </colgroup>
269 <thead>
270 <tr class="header">
271 <th>Name</th>
272 <th>Type</th>
273 <th>Description</th>
274 <th><code>flatpak override</code> equivalent</th>
275 </tr>
276 </thead>
277 <tbody>
278 <tr class="odd">
279 <td>Development syscalls</td>
280 <td>Toggle</td>
281 <td>Allow the application to access to certain syscalls, such as <a href="https://en.wikipedia.org/wiki/Ptrace"><code>ptrace()</code></a> and <a href="https://en.wikipedia.org/wiki/Perf_(Linux)"><code>perf_event_open()</code></a>.</td>
282 <td><code>--allow=devel</code> and <code>--disallow=devel</code></td>
283 </tr>
284 <tr class="even">
285 <td>Programs from other architectures</td>
286 <td>Toggle</td>
287 <td>Allow the application to execute programs for an <a href="https://en.wikipedia.org/wiki/Application_binary_interface">ABI</a> other than the one supported natively by the system.</td>
288 <td><code>--allow=multiarch</code> and <code>--disallow=multiarch</code></td>
289 </tr>
290 <tr class="odd">
291 <td>Bluetooth</td>
292 <td>Toggle</td>
293 <td>Allow the application to use Bluetooth.</td>
294 <td><code>--allow=bluetooth</code> and <code>--disallow=bluetooth</code></td>
295 </tr>
296 <tr class="even">
297 <td>Controller Area Network bus</td>
298 <td>Toggle</td>
299 <td>Allow the application to use canbus sockets. You must also have <a href="#share">network access</a> for this to work.</td>
300 <td><code>--allow=canbus</code> and <code>--disallow=canbus</code></td>
301 </tr>
302 <tr class="odd">
303 <td>Application Shared Memory</td>
304 <td>Toggle</td>
305 <td>Allow the application to share its /dev/shm between instances of the same $FLATPAK_APP_ID. Introduced specifically for the Steam flatpak, to share its /dev/shm with sub-sandboxed games.</td>
306 <td><code>--allow=per-app-dev-shm</code> and <code>--disallow=per-app-dev-shm</code></td>
307 </tr>
308 </tbody>
309 </table>
310 <h3 id="filesystem">Filesystem</h3>
311 <table>
312 <colgroup>
313 <col style="width: 25%" />
314 <col style="width: 25%" />
315 <col style="width: 25%" />
316 <col style="width: 25%" />
317 </colgroup>
318 <thead>
319 <tr class="header">
320 <th>Name</th>
321 <th>Type</th>
322 <th>Description</th>
323 <th><code>flatpak override</code> equivalent</th>
324 </tr>
325 </thead>
326 <tbody>
327 <tr class="odd">
328 <td>All filesystem files</td>
329 <td>Toggle</td>
330 <td>Allow read-write access to the whole filesystem. Everything that isn’t writeable by the user will be read-only</td>
331 <td><code>--filesystem=host</code> and <code>--nofilesystem=host</code></td>
332 </tr>
333 <tr class="even">
334 <td>All system libraries, executables and static data</td>
335 <td>Toggle</td>
336 <td>Allow read-write access to system libraries located in <code>/usr</code>. Since this directory requires root access to write, the permission will be read-only.</td>
337 <td><code>--filesystem=host-os</code> and <code>--nofilesystem=host-os</code></td>
338 </tr>
339 <tr class="odd">
340 <td>All system configurations</td>
341 <td>Toggle</td>
342 <td>Allow read-write access to system configurations located in <code>/etc</code>. Since this directory requires root access to write, the permission will be read-only.</td>
343 <td><code>--filesystem=host-etc</code> and <code>--nofilesystem=host-etc</code></td>
344 </tr>
345 <tr class="even">
346 <td>All user files</td>
347 <td>Toggle</td>
348 <td>Allow read-write access to the user directory (<code>$HOME</code> or <code>~/</code>).</td>
349 <td><code>--filesystem=home</code> and <code>--nofilesystem=home</code></td>
350 </tr>
351 <tr class="odd">
352 <td>Other files</td>
353 <td>Input</td>
354 <td>Allow read-write access to the directory you desire. <br /> <br /> For example, you would put <code>~/games</code> if you want read-write access to <code>~/games</code>. If you want read-only access to <code>~/games</code>, then you would put <code>~/games:ro</code>.</td>
355 <td><code>--filesystem=[PATH]</code>, <code>--filesystem=[PATH]:ro</code> and <code>--nofilesystem=[PATH]</code></td>
356 </tr>
357 </tbody>
358 </table>
359 <h3 id="persistent">Persistent</h3>
360 <table>
361 <colgroup>
362 <col style="width: 25%" />
363 <col style="width: 25%" />
364 <col style="width: 25%" />
365 <col style="width: 25%" />
366 </colgroup>
367 <thead>
368 <tr class="header">
369 <th>Name</th>
370 <th>Type</th>
371 <th>Description</th>
372 <th><code>flatpak-override</code> equivalent</th>
373 </tr>
374 </thead>
375 <tbody>
376 <tr class="odd">
377 <td>Files</td>
378 <td>Input</td>
379 <td>Allow the application to access the targeted directory while restricting other applications from accessing it. <br /> <br /> Starting from the user directory (<code>$HOME</code> or <code>~/</code>), the targeted directory will be remapped to the application’s directory (<code>~/.var/app/$FLATPAK_APP_ID/[PATH]</code>) if it has no write access to the targeted directory. <br /> <br /> For example, persisting <code>.mozilla</code> will map <code>~/.mozilla</code> to <code>~/.var/app/org.mozilla.Firefox/.mozilla</code>. <br /> <br /> This is also a technique used to declutter the user directory, as it prevents the application from writing to <code>~/</code>.</td>
380 <td><code>--persist=[PATH]</code></td>
381 </tr>
382 </tbody>
383 </table>
384 <h3 id="environment">Environment</h3>
385 <table>
386 <colgroup>
387 <col style="width: 25%" />
388 <col style="width: 25%" />
389 <col style="width: 25%" />
390 <col style="width: 25%" />
391 </colgroup>
392 <thead>
393 <tr class="header">
394 <th>Name</th>
395 <th>Type</th>
396 <th>Description</th>
397 <th><code>flatpak override</code> equivalent</th>
398 </tr>
399 </thead>
400 <tbody>
401 <tr class="odd">
402 <td>Variables</td>
403 <td>Input</td>
404 <td>Set an environment variable in the application to make the variable available to application when it runs. <br /> <br /> For example, adding <code>MOZ_ENABLE_WAYLAND=1</code> for Firefox to enable the Wayland back-end.</td>
405 <td><code>--env=[VAR]=[VALUE]</code></td>
406 </tr>
407 </tbody>
408 </table>
409 <h3 id="system-bus">System Bus</h3>
410 <table>
411 <colgroup>
412 <col style="width: 25%" />
413 <col style="width: 25%" />
414 <col style="width: 25%" />
415 <col style="width: 25%" />
416 </colgroup>
417 <thead>
418 <tr class="header">
419 <th>Name</th>
420 <th>Type</th>
421 <th>Description</th>
422 <th><code>flatpak override</code> equivalent</th>
423 </tr>
424 </thead>
425 <tbody>
426 <tr class="odd">
427 <td>Talks</td>
428 <td>Input</td>
429 <td>Allow the application to talk to system services. <br /> <br /> For example, adding <code>org.freedesktop.Accounts</code> will allow the application to access users login history.</td>
430 <td><code>--system-talk-name=[NAME]</code></td>
431 </tr>
432 <tr class="even">
433 <td>Owns</td>
434 <td>Input</td>
435 <td>Allow the application to own system services under the given name.</td>
436 <td><code>--system-own-name=[NAME]</code></td>
437 </tr>
438 </tbody>
439 </table>
440 <h3 id="session-bus">Session Bus</h3>
441 <table>
442 <colgroup>
443 <col style="width: 25%" />
444 <col style="width: 25%" />
445 <col style="width: 25%" />
446 <col style="width: 25%" />
447 </colgroup>
448 <thead>
449 <tr class="header">
450 <th>Name</th>
451 <th>Type</th>
452 <th>Description</th>
453 <th><code>flatpak override</code> equivalent</th>
454 </tr>
455 </thead>
456 <tbody>
457 <tr class="odd">
458 <td>Talks</td>
459 <td>Input</td>
460 <td>Allow the application to talk to session services. <br /> <br /> For example, adding <code>org.freedesktop.Notifications</code> will allow the application to send notifications.</td>
461 <td><code>--talk-name=[NAME]</code></td>
462 </tr>
463 <tr class="even">
464 <td>Owns</td>
465 <td>Input</td>
466 <td>Allow the application to own session services under the given name.</td>
467 <td><code>--own-name=[NAME]</code></td>
468 </tr>
469 </tbody>
470 </table>
471 <h3 id="portals">Portals</h3>
472 <table>
473 <colgroup>
474 <col style="width: 25%" />
475 <col style="width: 25%" />
476 <col style="width: 25%" />
477 <col style="width: 25%" />
478 </colgroup>
479 <thead>
480 <tr class="header">
481 <th>Name</th>
482 <th>Type</th>
483 <th>Description</th>
484 <th>Portal</th>
485 </tr>
486 </thead>
487 <tbody>
488 <tr class="odd">
489 <td>Background</td>
490 <td>Toggle</td>
491 <td>Allow the application to run in the background.</td>
492 <td><code>org.freedesktop.portal.Background</code></td>
493 </tr>
494 <tr class="even">
495 <td>Notifications</td>
496 <td>Toggle</td>
497 <td>Allow the application to send notifications.</td>
498 <td><code>org.freedesktop.portal.Notification</code></td>
499 </tr>
500 <tr class="odd">
501 <td>Microphone</td>
502 <td>Toggle</td>
503 <td>Allow the application to listen to your microphone.</td>
504 <td><code>org.freedesktop.portal.Device</code></td>
505 </tr>
506 <tr class="even">
507 <td>Speakers</td>
508 <td>Toggle</td>
509 <td>Allow the application to play sounds to your speakers.</td>
510 <td><code>org.freedesktop.portal.Device</code></td>
511 </tr>
512 <tr class="odd">
513 <td>Camera</td>
514 <td>Toggle</td>
515 <td>Allow the application to record videos with your camera.</td>
516 <td><code>org.freedesktop.portal.Device</code></td>
517 </tr>
518 <tr class="even">
519 <td>Location</td>
520 <td>Toggle</td>
521 <td>Allow the application to access your location data.</td>
522 <td><code>org.freedesktop.portal.Location</code></td>
523 </tr>
524 </tbody>
525 </table>
526 <h2 id="tips-and-tricks">Tips and Tricks</h2>
527 <h3 id="manually-reset-flatseal-permissions">Manually reset Flatseal permissions</h3>
528 <p>If permissions are removed and is no longer possible to reset, run the following command from the terminal and re-start Flatseal:</p>
529 <pre><code>$ rm ~/.local/share/flatpak/overrides/com.github.tchx84.Flatseal</code></pre>
530 <h3 id="add-new-translations">Add new translations</h3>
531 <p>Add a new language and update translations:</p>
532 <pre><code>$ git clone https://github.com/tchx84/Flatseal.git
533 $ cd Flatseal
534 $ echo &quot;es&quot; &gt;&gt; po/LINGUAS # es for Spanish
535 $ meson _translate &amp;&amp; cd _translate
536 $ ninja flatseal-pot
537 $ ninja flatseal-update-po
538 $ gedit ../po/es.po # translate the strings to Spanish</code></pre>
539 <p>To test the translation language:</p>
540 <pre><code>$ flatpak config --set languages es
541 $ flatpak update org.gnome.Platform
542 $ LC_ALL=es_PY.UTF-8 flatpak run com.github.tchx84.Flatseal</code></pre>
543 <h3 id="enable-custom-installations">Enable custom installations</h3>
544 <p>To enable a custom installation, e.g, <code>/xusr/custom/flatpak</code>.</p>
545 <h4 id="flatpak-1.7.1-or-newer">Flatpak 1.7.1 or newer</h4>
546 <ol type="1">
547 <li>Launch Flatseal and select it to edit its own permissions.</li>
548 <li>Enable <code>host-etc</code>, or type in <code>host-etc:ro</code> in the other option.</li>
549 <li>Type in the custom installation path, e.g, <code>/xusr/custom/flatpak:ro</code>.</li>
550 <li>Restart Flatseal.</li>
551 </ol>
552 <h4 id="all-versions">All versions</h4>
553 <ol type="1">
554 <li>Launch Flatseal and select it to edit its own permissions.</li>
555 <li>Enable <code>host</code>, or type in <code>host:ro</code> in the other option.</li>
556 <li>Restart Flatseal.</li>
557 </ol>
558 <p><strong>NOTE</strong>: To find these installations, Flatseal needs access to <code>/etc/flatpak/installations.d</code>. Before Flatpak 1.7.1, accessing the host <code>/etc</code> required the <code>host</code> permission, which was an all-or-nothing situation. By default, Flatseal will have minimal permissions, so it’s up to the user to decide to enable this feature.</p>
559 <h3 id="use-custom-flatpak_user_dir">Use custom FLATPAK_USER_DIR</h3>
560 <p>To use a custom <code>FLATPAK_USER_DIR</code>, e.g. <code>/var/home/user/.flatpak</code>.</p>
561 <pre><code>flatpak --user override --filesystem=/var/home/user/.flatpak --env=FLATPAK_USER_DIR=/var/home/user/.flatpak com.github.tchx84.Flatseal</code></pre>
562 <p><strong>NOTE</strong>: By default, <code>FLATPAK_USER_DIR</code> is not accessible from within the Flatpak sandbox, and Flatseal has no access to custom directories. Therefore, these overrides are needed.</p>
563 </body>
564 </html>