aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README585
-rw-r--r--README.md2
-rw-r--r--etc/0ad.profile4
-rw-r--r--etc/abrowser.profile4
-rw-r--r--etc/chromium.profile3
-rw-r--r--etc/cyberfox.profile4
-rw-r--r--etc/disable-common.inc3
-rw-r--r--etc/disable-programs.inc42
-rw-r--r--etc/epiphany.profile3
-rw-r--r--etc/evolution.profile1
-rw-r--r--etc/firefox.profile6
-rw-r--r--etc/flashpeak-slimjet.profile3
-rw-r--r--etc/fossamail.profile3
-rw-r--r--etc/franz.profile3
-rw-r--r--etc/gajim.profile3
-rw-r--r--etc/geeqie.profile1
-rw-r--r--etc/gjs.profile2
-rw-r--r--etc/gnome-books.profile2
-rw-r--r--etc/gnome-weather.profile2
-rw-r--r--etc/google-chrome-beta.profile3
-rw-r--r--etc/google-chrome-unstable.profile3
-rw-r--r--etc/google-chrome.profile3
-rw-r--r--etc/icecat.profile4
-rw-r--r--etc/icedove.profile4
-rw-r--r--etc/inox.profile3
-rw-r--r--etc/iridium.profile3
-rw-r--r--etc/mutt.profile1
-rw-r--r--etc/netsurf.profile3
-rw-r--r--etc/opera-beta.profile3
-rw-r--r--etc/opera.profile3
-rw-r--r--etc/palemoon.profile4
-rw-r--r--etc/polari.profile2
-rw-r--r--etc/psi-plus.profile2
-rw-r--r--etc/quiterss.profile3
-rw-r--r--etc/qupzilla.profile2
-rw-r--r--etc/qutebrowser.profile3
-rw-r--r--etc/seamonkey.profile4
-rw-r--r--etc/simple-scan.profile2
-rw-r--r--etc/spotify.profile3
-rw-r--r--etc/thunderbird.profile4
-rw-r--r--etc/transmission-cli.profile1
-rw-r--r--etc/transmission-gtk.profile1
-rw-r--r--etc/transmission-qt.profile1
-rw-r--r--etc/transmission-show.profile1
-rw-r--r--etc/vivaldi.profile3
-rw-r--r--etc/warzone2100.profile7
-rw-r--r--etc/wesnoth.profile3
-rw-r--r--etc/whitelist-common.inc1
-rw-r--r--etc/xreader.profile1
-rw-r--r--platform/debian/control2
-rw-r--r--platform/debian/copyright3
-rw-r--r--src/firejail/firejail.h1
-rw-r--r--src/firejail/main.c54
-rw-r--r--src/firejail/restrict_users.c4
-rw-r--r--src/firejail/sandbox.c14
55 files changed, 354 insertions, 481 deletions
diff --git a/README b/README
index 15696d9d7..405eb5c4e 100644
--- a/README
+++ b/README
@@ -2,11 +2,11 @@ Firejail is a SUID sandbox program that reduces the risk of security
2breaches by restricting the running environment of untrusted applications 2breaches by restricting the running environment of untrusted applications
3using Linux namespaces and seccomp-bpf. It includes sandbox profiles for 3using Linux namespaces and seccomp-bpf. It includes sandbox profiles for
4Iceweasel/Mozilla Firefox, Chromium, Midori, Opera, Evince, Transmission, 4Iceweasel/Mozilla Firefox, Chromium, Midori, Opera, Evince, Transmission,
5VLC, Audoacious, Clementine, Rhythmbox, Totem, Deluge, qBittorrent. 5VLC, Audacious, Clementine, Rhythmbox, Totem, Deluge, qBittorrent.
6DeaDBeeF, Dropbox, Empathy, FileZilla, IceCat, Thunderbird/Icedove, 6DeaDBeeF, Dropbox, Empathy, FileZilla, IceCat, Thunderbird/Icedove,
7Pidgin, Quassel and XChat. 7Pidgin, Quassel, and XChat.
8 8
9Firejail also expands the restricted shell facility found in bash by adding 9Firejail also expands the restricted shell facility found in bash by adding
10Linux namespace support. It supports sandboxing specific users upon login. 10Linux namespace support. It supports sandboxing specific users upon login.
11 11
12Download: http://sourceforge.net/projects/firejail/files/ 12Download: http://sourceforge.net/projects/firejail/files/
@@ -15,7 +15,9 @@ Documentation and support: https://firejail.wordpress.com/
15Development: https://github.com/netblue30/firejail 15Development: https://github.com/netblue30/firejail
16License: GPL v2 16License: GPL v2
17 17
18Compile and install 18
19
20Compile and install mainline version from GitHub:
19 21
20$ git clone https://github.com/netblue30/firejail.git 22$ git clone https://github.com/netblue30/firejail.git
21$ cd firejail 23$ cd firejail
@@ -26,19 +28,23 @@ On Debian/Ubuntu you will need to install git and a compiler:
26$ sudo apt-get install build-essential 28$ sudo apt-get install build-essential
27 29
28 30
29Firejail Authors:
30 31
31netblue30 (netblue30@yahoo.com) 32Maintainer:
32Reiner Herrmann (https://github.com/reinerh) 33- netblue30 (netblue30@yahoo.com)
33 - a number of build patches 34
34 - man page fixes 35Committers
35 - Debian and Ubuntu integration 36- Fred-Barclay (https://github.com/Fred-Barclay)
36 - clang-analyzer fixes 37- Reiner Herrmann (https://github.com/reinerh)
37 - Debian reproducible build 38- netblue30 (netblue30@yahoo.com)
38 - unit testing framework 39
39 - moved build to .xz 40
40 - detached signatures for source archive 41
41 - recursive mkdir 42Firejail Authors (alphabetical order)
43
44Akhil Hans Maulloo (https://github.com/kouul)
45 - xz profile
46Alexey Kuznetsov (kuznet@ms2.inr.ac.ru)
47 - src/lib/libnetlink.c extracted from iproute2 software package
42Aleksey Manevich (https://github.com/manevich) 48Aleksey Manevich (https://github.com/manevich)
43 - several profile fixes 49 - several profile fixes
44 - fix problem with relative path in storage_find function 50 - fix problem with relative path in storage_find function
@@ -57,6 +63,80 @@ Aleksey Manevich (https://github.com/manevich)
57 - x11 xpra, xphyr, none profile commands 63 - x11 xpra, xphyr, none profile commands
58 - added --join-or-start command 64 - added --join-or-start command
59 - CVE-2016-7545 65 - CVE-2016-7545
66Alexander Stein (https://github.com/ajstein)
67 - added profile for qutebrowser
68Andrey Alekseenko (https://github.com/al42and)
69 - fixing lintian warnings
70 - fixed Skype profile
71andrew160 (https://github.com/andrew160)
72 - profile and man pages fixes
73Austin S. Hemmelgarn (https://github.com/Ferroin)
74 - unbound profile update
75avoidr (https://github.com/avoidr)
76 - whitelist fix
77 - recently-used.xbel fix
78 - added parole profile
79 - blacklist ncat
80 - hostname support in profile file
81 - Google Chrome profile rework
82 - added cmus profile
83 - man page fixes
84 - add net iface support in profile files
85 - paths fix
86 - lots of profile fixes
87 - added mcabber profile
88 - fixed mpv profile
89 - various other fixes
90Bader Zaidan (https://github.com/BaderSZ)
91 - Telegram profile
92Benjamin Kampmann (https://github.com/ligthyear)
93 - Forward exit code from child process
94BogDan Vatra (https://github.com/bog-dan-ro)
95 - zoom profile
96Bruno Nova (https://github.com/brunonova)
97 - whitelist fix
98 - bash arguments fix
99Cat (https://github.com/ecat3)
100 - prevent tmux connecting to an existing session
101creideiki (https://github.com/creideiki)
102 - make the sandbox process reap all children
103Christian Stadelmann (https://github.com/genodeftest)
104 - profile fixes
105 - evolution profile fix
106curiosity-seeker (https://github.com/curiosity-seeker)
107 - tightening unbound and dnscrypt-proxy profiles
108 - correct and tighten QuiteRss profile
109 - dnsmasq profile
110 - okular and gwenview profiles
111 - cherrytree profile fixes
112 - added quiterss profile
113 - added guayadeque profile
114 - added VirtualBox.profile
115 - various other profile fixes
116Daan Bakker (https://github.com/dbakker)
117 - protect shell startup files
118Dara Adib (https://github.com/daradib)
119 - ssh profile fix
120 - evince profile fix
121Deelvesh Bunjun (https://github.com/DeelveshBunjun)
122 - added xpdf profile
123dewbasaur (https://github.com/dewbasaur)
124 - block access to history files
125 - Firefox PDF.js exploit (CVE-2015-4495) fixes
126 - Steam profile
127dshmgh (https://github.com/dshmgh)
128 - overlayfs fix for systems with /home mounted on a separate partition
129Duncan Overbruck (https://github.com/Duncaen)
130 - musl libc fix
131 - utmp fix
132emacsomancer (https://github.com/emacsomancer)
133 - added profile for Conkeror browser
134eventyrer (https://github.com/eventyrer)
135 - update gnome-mplayer.profile
136Felipe Barriga Richards (https://github.com/fbarriga)
137 - --private-etc fix
138Franco (nextime) Lanza (https://github.com/nextime)
139 - added --private-template/--private-home
60Fred-Barclay (https://github.com/Fred-Barclay) 140Fred-Barclay (https://github.com/Fred-Barclay)
61 - lots of profile fixes 141 - lots of profile fixes
62 - added Vivaldi, Atril profiles 142 - added Vivaldi, Atril profiles
@@ -99,169 +179,57 @@ Fred-Barclay (https://github.com/Fred-Barclay)
99 - compile/install scripts for --git-install/--git-uninstall commands 179 - compile/install scripts for --git-install/--git-uninstall commands
100 - tighten keepassx 180 - tighten keepassx
101 - added Thunar profile 181 - added Thunar profile
102SYN-cook (https://github.com/SYN-cook) 182G4JC (http://sourceforge.net/u/gaming4jc/profile/)
103 - keepass/keepassx browser fixes 183 - ARM support
104 - disable-common.inc fixes
105 - blacklist GNOME keyring and Konqueror
106 - fixed Keepass(x) profiles
107 - Engrampa profile
108 - Scribus profile
109valoq (https://github.com/valoq)
110 - lots of profile fixes
111 - added support for /srv in --whitelist feature
112 - Eye of GNOME, Evolution, display (imagemagik) and Wire profiles
113 - blacklist suid binaries in disable-common.inc
114 - fix man pages
115 - added keypass2, qemu profiles
116 - added amarok, ark, atool, bleachbit, brasero, dolphin, dragon, elinks, enchant, exiftool profiles
117 - added file-roller, gedit, gjs,gnome-books, gnome-documents, gnome-maps, gnome-music profiles
118 - added gnome-photos, gnome-weather, goobox, gpa, gpg, gpg-agent, highlight profiles
119 - added img2txt, k3b, kate, lynx, mediainfo, nautilus, odt2txt, pdftotext, simple-scan profiles
120 - added skanlite, ssh-agent, transmission-cli, tracker, transmission-show, w3m, xfburn, xpra profiles
121 - added wget profile
122 - disable gnupg and systemd directories under /run/user
123 - added iridium browser profile
124Zack Weinberg (https://github.com/zackw)
125 - removed libconnect
126 - fixed memory corruption in noblacklist processing
127 - rework DISPLAY environment parsing
128 - rework masking X11 sockets in /tmp/.X11-unix directory
129 - rework xpra and xephyr detection
130 - rework abstract X11 socket detection
131 - rework X11 display number assignment
132 - rework X11 xorg processing
133 - rework fcopy, --follow-link support in fcopy
134 - follow link support in --private-bin
135 - wait_for_other function rewrite
136 - xvfb X11 server support
137Austin S. Hemmelgarn (https://github.com/Ferroin)
138 - unbound profile update
139Igor Bukanov (https://github.com/ibukanov)
140 - found/fiixed privilege escalation in --hosts-file option
141Cat (https://github.com/ecat3)
142 - prevent tmux connecting to an existing session
143Zack Weinberg (https://github.com/zackw)
144 - sdded support for joining a persistent, named network namespace
145GSI (https://github.com/GSI)
146 - added Uzbl browser profile
147Mike Frysinger (vapier@gentoo.org)
148 - Gentoo compile patch
149Jericho (https://github.com/attritionorg)
150 - spelling
151Pixel Fairy (https://github.com/xahare)
152 - added fjclip.py, fjdisplay.py and fjresize.py in contrib section
153pshpsh (https://github.com/pshpsh)
154 - added FossaMail profile
155eventyrer (https://github.com/eventyrer)
156 - update gnome-mplayer.profile
157thewisenerd (https://github.com/thewisenerd)
158 - allow multiple private-home commands
159 - use $SHELL variable if the shell is not specified
160thewisenerd (https://github.com/thewisenerd)
161 - appimage: pass commandline arguments
162KOLANICH (https://github.com/KOLANICH)
163 - added symlink fixer fix_private-bin.py in contrib section
164Jesse Smith (https://github.com/slicer69)
165 - added QupZilla profile
166Lari Rauno (https://github.com/tuutti)
167 - qutebrowser profile fixes
168SpotComms (https://github.com/SpotComms)
169 - added Bless, Gnome 2048, Gnome Calculator, Gnome Contacts, JD-GUI, Lollypop, MultiMC5 profiles
170 - added PDFSam, Pithos, and Xonotic profiles
171Vasya Novikov (https://github.com/vn971)
172 - Wesnoth profile
173 - Hedegewars profile
174 - manpage fixes
175 - fixed firecfg clean/clear issue
176 - found the ugliest bug so far
177 - seccomp debug description in man page
178curiosity-seeker (https://github.com/curiosity-seeker)
179 - tightening unbound and dnscrypt-proxy profiles
180 - correct and tighten QuiteRss profile
181 - dnsmasq profile
182 - okular and gwenview profiles
183 - cherrytree profile fixes
184 - added quiterss profile
185 - added guayadeque profile
186 - added VirtualBox.profile
187 - various other profile fixes
188Simon Peter (https://github.com/probonopd)
189 - set $APPIMAGE and $APPDIR environment variables
190 - AppImage version detection
191 - Leafppad type v1 and v2 appimage packages in test/appimage
192BogDan Vatra (https://github.com/bog-dan-ro)
193 - zoom profile
194Impyy (https://github.com/Impyy)
195 - added mumble profile
196Vadim A. Misbakh-Soloviov (https://github.com/msva)
197 - profile fixes 184 - profile fixes
198Rafael Cavalcanti (https://github.com/rccavalcanti) 185Gaman Gabriel (https://github.com/stelariusinfinitek)
199 - chromium profile fixes for Arch Linux 186 - inox profile
200Deelvesh Bunjun (https://github.com/DeelveshBunjun) 187geg2048 (https://github.com/geg2048)
201 - added xpdf profile 188 - kwallet profile fixes
202Dara Adib (https://github.com/daradib)
203 - ssh profile fix
204 - evince profile fix
205vismir2 (https://github.com/vismir2)
206 - feh, ranger, 7z, keepass, keepassx and zathura profiles
207 - claws-mail, mutt, git, emacs, vim profiles
208 - lots of profile fixes
209 - support for truecrypt and zuluCrypt
210graywolf (https://github.com/graywolf) 189graywolf (https://github.com/graywolf)
211 - spelling fix 190 - spelling fix
212Tomasz Jan Góralczyk (https://github.com/tjg)
213 - fixed Steam profile
214pwnage-pineapple (https://github.com/pwnage-pineapple)
215 - update Okular profile
216Sergey Alirzaev (https://github.com/l29ah)
217 - firejail.h enum fix
218greigdp (https://github.com/greigdp) 191greigdp (https://github.com/greigdp)
219 - Gajim IM client profile 192 - Gajim IM client profile
220 - fix Slack profile 193 - fixed spotify profile
194 - added Slack profile
195 - add Spotify profile
196GSI (https://github.com/GSI)
197 - added Uzbl browser profile
198hamzadis (https://github.com/hamzadis)
199 - added --overlay-named=name and --overlay-path=path
200Holger Heinz (https://github.com/hheinz)
201 - manpage work
221Icaro Perseo (https://github.com/icaroperseo) 202Icaro Perseo (https://github.com/icaroperseo)
222 - Icecat profile 203 - Icecat profile
223 - several profile fixes 204 - several profile fixes
224hamzadis (https://github.com/hamzadis) 205Igor Bukanov (https://github.com/ibukanov)
225 - added --overlay-named=name and --overlay-path=path 206 - found/fiixed privilege escalation in --hosts-file option
226Gaman Gabriel (https://github.com/stelariusinfinitek) 207iiotx (https://github.com/iiotx)
227 - inox profile 208 - use generic.profile by default
228greigdp (https://github.com/greigdp) 209Impyy (https://github.com/Impyy)
229 - fixed spotify profile 210 - added mumble profile
230 - added Slack profile 211Ivan Kozik (https://github.com/ivan)
231Laurent Declercq (https://github.com/nuxwin) 212 - speed up sandbox exit
232 - fixed test for shell interpreter in chroots
233Franco (nextime) Lanza (https://github.com/nextime)
234 - added --private-template/--private-home
235xee5ch (https://github.com/xee5ch)
236 - skypeforlinux profile
237Peter Hogg (https://github.com/pigmonkey)
238 - WeeChat profile
239 - rtorrent profile
240 - bitlbee profile fixes
241 - mutt profile fixes
242Thomas Jarosch (https://github.com/thomasjfox)
243 - disable keepassx in disable-passwdmgr.inc
244 - added uudeview profile
245 - added tar (gtar), unzip and unrar profile
246 - added file profile
247 - improved profile list
248 - fixed small variable glitch in stat64() / lstat64() (libtracelog)
249 - added lstat() / lstat64() support to libtrace
250 - include mkuid.sh in make dist
251Niklas Haas (https://github.com/haasn)
252 - blacklisting for keybase.io's client
253Jaykishan Mutkawoa (https://github.com/jmutkawoa) 213Jaykishan Mutkawoa (https://github.com/jmutkawoa)
254 - cpio profile 214 - cpio profile
255Paupiah Yash (https://github.com/CaffeinatedStud) 215Jericho (https://github.com/attritionorg)
256 - gzip profile 216 - spelling
257Akhil Hans Maulloo (https://github.com/kouul) 217Jesse Smith (https://github.com/slicer69)
258 - xz profile 218 - added QupZilla profile
259Rahul Golam (https://github.com/technoLord) 219jgriffiths (https://github.com/jgriffiths)
260 - strings profile 220 - make rpm packages support
261geg2048 (https://github.com/geg2048) 221Joan Figueras (https://github.com/figue)
262 - kwallet profile fixes 222 - added abrowser profile
263maces (https://github.com/maces) 223 - added Google-Play-Music-Desktop-Player
264 - Franz messenger profile 224 - added cyberfox profile
225jrabe (https://github.com/jrabe)
226 - disallow access to kdbx files
227 - Epiphany profile
228 - Polari profile
229 - qTox profile
230 - X11 fixes
231Kaan Genç (https://github.com/SeriousBug)
232 - dynamic allocation of noblacklist buffer
265KellerFuchs (https://github.com/KellerFuchs) 233KellerFuchs (https://github.com/KellerFuchs)
266 - nonewpriv support, extended profiles for this feature 234 - nonewpriv support, extended profiles for this feature
267 - make `restricted-network` prevent use of netfilter 235 - make `restricted-network` prevent use of netfilter
@@ -270,116 +238,45 @@ KellerFuchs (https://github.com/KellerFuchs)
270 - added support for .local profile files in /etc/firejail 238 - added support for .local profile files in /etc/firejail
271 - fixed Cryptocat profile 239 - fixed Cryptocat profile
272 - make ~/.local read-only 240 - make ~/.local read-only
273ValdikSS (https://github.com/ValdikSS) 241KOLANICH (https://github.com/KOLANICH)
274 - Psi+, Corebird, Konversation profiles 242 - added symlink fixer fix_private-bin.py in contrib section
275 - various profile fixes 243Lari Rauno (https://github.com/tuutti)
276avoidr (https://github.com/avoidr) 244 - qutebrowser profile fixes
277 - whitelist fix 245Laurent Declercq (https://github.com/nuxwin)
278 - recently-used.xbel fix 246 - fixed test for shell interpreter in chroots
279 - added parole profile 247Loïc Damien (https://github.com/dzamlo)
280 - blacklist ncat 248 - small fixes
281 - hostname support in profile file 249maces (https://github.com/maces)
282 - Google Chrome profile rework 250 - Franz messenger profile
283 - added cmus profile
284 - man page fixes
285 - add net iface support in profile files
286 - paths fix
287 - lots of profile fixes
288 - added mcabber profile
289 - fixed mpv profile
290 - various other fixes
291Ruan (https://github.com/ruany)
292 - fixed hexchat profile
293Matthew Gyurgyik (https://github.com/pyther)
294 - rpm spec and several fixes
295Joan Figueras (https://github.com/figue)
296 - added abrowser profile
297 - added Google-Play-Music-Desktop-Player
298 - added cyberfox profile
299Petter Reinholdtsen (pere@hungry.com)
300 - Opera profile patch
301n1trux (https://github.com/n1trux)
302 - fix flashpeak-slimjet profile typos
303Felipe Barriga Richards (https://github.com/fbarriga)
304 - --private-etc fix
305Alexander Stein (https://github.com/ajstein)
306 - added profile for qutebrowser
307Benjamin Kampmann (https://github.com/ligthyear)
308 - Forward exit code from child process
309dshmgh (https://github.com/dshmgh)
310 - overlayfs fix for systems with /home mounted on a separate partition
311yumkam (https://github.com/yumkam)
312 - add compile-time option to restrict --net= to root only
313 - man page fixes
314mahdi1234 (https://github.com/mahdi1234) 251mahdi1234 (https://github.com/mahdi1234)
315 - cherrytree profile 252 - cherrytree profile
316 - Seamonkey profiles 253 - Seamonkey profiles
317jrabe (https://github.com/jrabe)
318 - disallow access to kdbx files
319 - Epiphany profile
320 - Polari profile
321 - qTox profile
322 - X11 fixes
323jgriffiths (https://github.com/jgriffiths)
324 - make rpm packages support
325Tom Mellor (https://github.com/kalegrill)
326 - mupen64plus profile
327Martin Carpenter (https://github.com/mcarpenter) 254Martin Carpenter (https://github.com/mcarpenter)
328 - security audit and bug fixes 255 - security audit and bug fixes
329 - Centos 6.x support 256 - Centos 6.x support
330pszxzsd (https://github.com/pszxzsd)
331 -uGet profile
332Rahiel Kasim (https://github.com/rahiel)
333 - Mathematica profile
334 - whitelisted Dropbox profile
335 - whitelisted keysnail config for firefox
336creideiki (https://github.com/creideiki)
337 - make the sandbox process reap all children
338sinkuu (https://github.com/sinkuu)
339 - blacklisting kwalletd
340 - fix symlink invocation for programs placing symlinks in $PATH
341Bader Zaidan (https://github.com/BaderSZ)
342 - Telegram profile
343Holger Heinz (https://github.com/hheinz)
344 - manpage work
345Andrey Alekseenko (https://github.com/al42and)
346 - fixing lintian warnings
347 - fixed Skype profile
348Ivan Kozik (https://github.com/ivan)
349 - speed up sandbox exit
350Christian Stadelmann (https://github.com/genodeftest)
351 - profile fixes
352 - evolution profile fix
353pirate486743186 (https://github.com/pirate486743186)
354 - KMail profile
355Kaan Genç (https://github.com/SeriousBug)
356 - dynamic allocation of noblacklist buffer
357Veeti Paananen (https://github.com/veeti)
358 - fixed Spotify profile
359rogshdo (https://github.com/rogshdo)
360 - BitlBee profile
361Bruno Nova (https://github.com/brunonova)
362 - whitelist fix
363 - bash arguments fix
364Matt Parnell (https://github.com/ilikenwf) 257Matt Parnell (https://github.com/ilikenwf)
365 - whitelisting for core firefox related functionality 258 - whitelisting for core firefox related functionality
366Ondra Nekola (https://github.com/satai)
367 - allow firefox theming with non-global themes
368emacsomancer (https://github.com/emacsomancer)
369 - added profile for Conkeror browser
370Daan Bakker (https://github.com/dbakker)
371 - protect shell startup files
372Duncan Overbruck (https://github.com/Duncaen)
373 - musl libc fix
374 - utmp fix
375andrew160 (https://github.com/andrew160)
376 - profile and man pages fixes
377Loïc Damien (https://github.com/dzamlo)
378 - small fixes
379greigdp (https://github.com/greigdp)
380 - add Spotify profile
381Mattias Wadman (https://github.com/wader) 259Mattias Wadman (https://github.com/wader)
382 - seccomp errno filter support 260 - seccomp errno filter support
261Matthew Gyurgyik (https://github.com/pyther)
262 - rpm spec and several fixes
263Michael Haas (https://github.com/mhaas)
264 - bugfixes
265Mike Frysinger (vapier@gentoo.org)
266 - Gentoo compile patch
267mjudtmann (https://github.com/mjudtmann)
268 - lock firejail configuration in disable-mgmt.inc
269n1trux (https://github.com/n1trux)
270 - fix flashpeak-slimjet profile typos
271netblue30 (netblue30@yahoo.com)
272Niklas Haas (https://github.com/haasn)
273 - blacklisting for keybase.io's client
274Ondra Nekola (https://github.com/satai)
275 - allow firefox theming with non-global themes
276Patrick Toomey (http://sourceforge.net/u/ptoomey/profile/)
277 - user namespace implementation
278Paupiah Yash (https://github.com/CaffeinatedStud)
279 - gzip profile
383Peter Millerchip (https://github.com/pmillerchip) 280Peter Millerchip (https://github.com/pmillerchip)
384 - memory allocation fix 281 - memory allocation fix
385 - --private.keep to --private-home transition 282 - --private.keep to --private-home transition
@@ -387,30 +284,142 @@ Peter Millerchip (https://github.com/pmillerchip)
387 - support for files and directories with spaces in blacklist option 284 - support for files and directories with spaces in blacklist option
388 - lots of other fixes 285 - lots of other fixes
389 - implement the --allow-private-blacklist option 286 - implement the --allow-private-blacklist option
287Peter Hogg (https://github.com/pigmonkey)
288 - WeeChat profile
289 - rtorrent profile
290 - bitlbee profile fixes
291 - mutt profile fixes
292Petter Reinholdtsen (pere@hungry.com)
293 - Opera profile patch
294pirate486743186 (https://github.com/pirate486743186)
295 - KMail profile
296Pixel Fairy (https://github.com/xahare)
297 - added fjclip.py, fjdisplay.py and fjresize.py in contrib section
298pshpsh (https://github.com/pshpsh)
299 - added FossaMail profile
300pstn (https://github.com/pstn)
301 - added install-strip, make install without strip
302pszxzsd (https://github.com/pszxzsd)
303 -uGet profile
304pwnage-pineapple (https://github.com/pwnage-pineapple)
305 - update Okular profile
306Rafael Cavalcanti (https://github.com/rccavalcanti)
307 - chromium profile fixes for Arch Linux
308Rahiel Kasim (https://github.com/rahiel)
309 - Mathematica profile
310 - whitelisted Dropbox profile
311 - whitelisted keysnail config for firefox
312Rahul Golam (https://github.com/technoLord)
313 - strings profile
314Reiner Herrmann (https://github.com/reinerh)
315 - a number of build patches
316 - man page fixes
317 - Debian and Ubuntu integration
318 - clang-analyzer fixes
319 - Debian reproducible build
320 - unit testing framework
321 - moved build to .xz
322 - detached signatures for source archive
323 - recursive mkdir
324rogshdo (https://github.com/rogshdo)
325 - BitlBee profile
326Ruan (https://github.com/ruany)
327 - fixed hexchat profile
390sarneaud (https://github.com/sarneaud) 328sarneaud (https://github.com/sarneaud)
391 - rewrite globbing code to fix various minor issues 329 - rewrite globbing code to fix various minor issues
392 - added noblacklist command for profile files 330 - added noblacklist command for profile files
393 - various enhancements and bug fixes 331 - various enhancements and bug fixes
394Patrick Toomey (http://sourceforge.net/u/ptoomey/profile/) 332Sergey Alirzaev (https://github.com/l29ah)
395 - user namespace implementation 333 - firejail.h enum fix
334Simon Peter (https://github.com/probonopd)
335 - set $APPIMAGE and $APPDIR environment variables
336 - AppImage version detection
337 - Leafppad type v1 and v2 appimage packages in test/appimage
338sinkuu (https://github.com/sinkuu)
339 - blacklisting kwalletd
340 - fix symlink invocation for programs placing symlinks in $PATH
396sshirokov (http://sourceforge.net/u/yshirokov/profile/) 341sshirokov (http://sourceforge.net/u/yshirokov/profile/)
397 - Patch to output "Reading profile" to stderr instead of stdout 342 - Patch to output "Reading profile" to stderr instead of stdout
398G4JC (http://sourceforge.net/u/gaming4jc/profile/) 343SpotComms (https://github.com/SpotComms)
399 - ARM support 344 - added Bless, Gnome 2048, Gnome Calculator, Gnome Contacts, JD-GUI, Lollypop, MultiMC5 profiles
345 - added PDFSam, Pithos, and Xonotic profiles
346SYN-cook (https://github.com/SYN-cook)
347 - keepass/keepassx browser fixes
348 - disable-common.inc fixes
349 - blacklist GNOME keyring and Konqueror
350 - fixed Keepass(x) profiles
351 - Engrampa profile
352 - Scribus profile
353 - autostart blacklist for KDE
354thewisenerd (https://github.com/thewisenerd)
355 - allow multiple private-home commands
356 - use $SHELL variable if the shell is not specified
357 - appimage: pass commandline arguments
358Thomas Jarosch (https://github.com/thomasjfox)
359 - disable keepassx in disable-passwdmgr.inc
360 - added uudeview profile
361 - added tar (gtar), unzip and unrar profile
362 - added file profile
363 - improved profile list
364 - fixed small variable glitch in stat64() / lstat64() (libtracelog)
365 - added lstat() / lstat64() support to libtrace
366 - include mkuid.sh in make dist
367Tom Mellor (https://github.com/kalegrill)
368 - mupen64plus profile
369Tomasz Jan Góralczyk (https://github.com/tjg)
370 - fixed Steam profile
371valoq (https://github.com/valoq)
372 - lots of profile fixes
373 - added support for /srv in --whitelist feature
374 - Eye of GNOME, Evolution, display (imagemagik) and Wire profiles
375 - blacklist suid binaries in disable-common.inc
376 - fix man pages
377 - added keypass2, qemu profiles
378 - added amarok, ark, atool, bleachbit, brasero, dolphin, dragon, elinks, enchant, exiftool profiles
379 - added file-roller, gedit, gjs,gnome-books, gnome-documents, gnome-maps, gnome-music profiles
380 - added gnome-photos, gnome-weather, goobox, gpa, gpg, gpg-agent, highlight profiles
381 - added img2txt, k3b, kate, lynx, mediainfo, nautilus, odt2txt, pdftotext, simple-scan profiles
382 - added skanlite, ssh-agent, transmission-cli, tracker, transmission-show, w3m, xfburn, xpra profiles
383 - added wget profile
384 - disable gnupg and systemd directories under /run/user
385 - added iridium browser profile
386Vadim A. Misbakh-Soloviov (https://github.com/msva)
400 - profile fixes 387 - profile fixes
401dewbasaur (https://github.com/dewbasaur) 388ValdikSS (https://github.com/ValdikSS)
402 - block access to history files 389 - Psi+, Corebird, Konversation profiles
403 - Firefox PDF.js exploit (CVE-2015-4495) fixes 390 - various profile fixes
404 - Steam profile 391Vasya Novikov (https://github.com/vn971)
405Michael Haas (https://github.com/mhaas) 392 - Wesnoth profile
406 - bugfixes 393 - Hedegewars profile
407mjudtmann (https://github.com/mjudtmann) 394 - manpage fixes
408 - lock firejail configuration in disable-mgmt.inc 395 - fixed firecfg clean/clear issue
409iiotx (https://github.com/iiotx) 396 - found the ugliest bug so far
410 - use generic.profile by default 397 - seccomp debug description in man page
411pstn (https://github.com/pstn) 398Veeti Paananen (https://github.com/veeti)
412 - added install-strip, make install without strip 399 - fixed Spotify profile
413Alexey Kuznetsov (kuznet@ms2.inr.ac.ru) 400vismir2 (https://github.com/vismir2)
414 - src/lib/libnetlink.c extracted from iproute2 software package 401 - feh, ranger, 7z, keepass, keepassx and zathura profiles
415 402 - claws-mail, mutt, git, emacs, vim profiles
403 - lots of profile fixes
404 - support for truecrypt and zuluCrypt
405xee5ch (https://github.com/xee5ch)
406 - skypeforlinux profile
407yumkam (https://github.com/yumkam)
408 - add compile-time option to restrict --net= to root only
409 - man page fixes
410Zack Weinberg (https://github.com/zackw)
411 - added support for joining a persistent, named network namespace
412 - removed libconnect
413 - fixed memory corruption in noblacklist processing
414 - rework DISPLAY environment parsing
415 - rework masking X11 sockets in /tmp/.X11-unix directory
416 - rework xpra and xephyr detection
417 - rework abstract X11 socket detection
418 - rework X11 display number assignment
419 - rework X11 xorg processing
420 - rework fcopy, --follow-link support in fcopy
421 - follow link support in --private-bin
422 - wait_for_other function rewrite
423 - xvfb X11 server support
424
416Copyright (C) 2014-2017 Firejail Authors 425Copyright (C) 2014-2017 Firejail Authors
diff --git a/README.md b/README.md
index 0c4b7173a..bcdcc54ca 100644
--- a/README.md
+++ b/README.md
@@ -58,7 +58,7 @@ If you keep your Firejail profiles in a public repository, please give us a link
58 58
59* https://github.com/triceratops1/fe 59* https://github.com/triceratops1/fe
60 60
61Use this issue to request new profiles: https://github.com/netblue30/firejail/issues/825 61Use this issue to request new profiles: https://github.com/netblue30/firejail/issues/1139
62````` 62`````
63 63
64````` 64`````
diff --git a/etc/0ad.profile b/etc/0ad.profile
index 84addc229..d4f06f732 100644
--- a/etc/0ad.profile
+++ b/etc/0ad.profile
@@ -3,7 +3,6 @@
3include /etc/firejail/0ad.local 3include /etc/firejail/0ad.local
4 4
5# Firejail profile for 0ad. 5# Firejail profile for 0ad.
6noblacklist ~/.cache/0ad
7noblacklist ~/.config/0ad 6noblacklist ~/.config/0ad
8noblacklist ~/.local/share/0ad 7noblacklist ~/.local/share/0ad
9include /etc/firejail/disable-common.inc 8include /etc/firejail/disable-common.inc
@@ -12,9 +11,6 @@ include /etc/firejail/disable-passwdmgr.inc
12include /etc/firejail/disable-programs.inc 11include /etc/firejail/disable-programs.inc
13 12
14# Whitelists 13# Whitelists
15mkdir ~/.cache/0ad
16whitelist ~/.cache/0ad
17
18mkdir ~/.config/0ad 14mkdir ~/.config/0ad
19whitelist ~/.config/0ad 15whitelist ~/.config/0ad
20 16
diff --git a/etc/abrowser.profile b/etc/abrowser.profile
index b9a30d6bf..3b60750d5 100644
--- a/etc/abrowser.profile
+++ b/etc/abrowser.profile
@@ -4,7 +4,6 @@ include /etc/firejail/abrowser.local
4 4
5# Firejail profile for Abrowser 5# Firejail profile for Abrowser
6noblacklist ~/.mozilla 6noblacklist ~/.mozilla
7noblacklist ~/.cache/mozilla
8noblacklist ~/.pki 7noblacklist ~/.pki
9noblacklist ~/.lastpass 8noblacklist ~/.lastpass
10include /etc/firejail/disable-common.inc 9include /etc/firejail/disable-common.inc
@@ -22,8 +21,6 @@ tracelog
22whitelist ${DOWNLOADS} 21whitelist ${DOWNLOADS}
23mkdir ~/.mozilla 22mkdir ~/.mozilla
24whitelist ~/.mozilla 23whitelist ~/.mozilla
25mkdir ~/.cache/mozilla/abrowser
26whitelist ~/.cache/mozilla/abrowser
27whitelist ~/dwhelper 24whitelist ~/dwhelper
28whitelist ~/.zotero 25whitelist ~/.zotero
29whitelist ~/.vimperatorrc 26whitelist ~/.vimperatorrc
@@ -32,7 +29,6 @@ whitelist ~/.pentadactylrc
32whitelist ~/.pentadactyl 29whitelist ~/.pentadactyl
33whitelist ~/.keysnail.js 30whitelist ~/.keysnail.js
34whitelist ~/.config/gnome-mplayer 31whitelist ~/.config/gnome-mplayer
35whitelist ~/.cache/gnome-mplayer/plugin
36whitelist ~/.pki 32whitelist ~/.pki
37whitelist ~/.lastpass 33whitelist ~/.lastpass
38 34
diff --git a/etc/chromium.profile b/etc/chromium.profile
index 995c0001b..ce823e0db 100644
--- a/etc/chromium.profile
+++ b/etc/chromium.profile
@@ -4,7 +4,6 @@ include /etc/firejail/chromium.local
4 4
5# Chromium browser profile 5# Chromium browser profile
6noblacklist ~/.config/chromium 6noblacklist ~/.config/chromium
7noblacklist ~/.cache/chromium
8noblacklist ~/.pki 7noblacklist ~/.pki
9include /etc/firejail/disable-common.inc 8include /etc/firejail/disable-common.inc
10include /etc/firejail/disable-programs.inc 9include /etc/firejail/disable-programs.inc
@@ -18,8 +17,6 @@ netfilter
18whitelist ${DOWNLOADS} 17whitelist ${DOWNLOADS}
19mkdir ~/.config/chromium 18mkdir ~/.config/chromium
20whitelist ~/.config/chromium 19whitelist ~/.config/chromium
21mkdir ~/.cache/chromium
22whitelist ~/.cache/chromium
23mkdir ~/.pki 20mkdir ~/.pki
24whitelist ~/.pki 21whitelist ~/.pki
25 22
diff --git a/etc/cyberfox.profile b/etc/cyberfox.profile
index a79303f77..d9896e4a7 100644
--- a/etc/cyberfox.profile
+++ b/etc/cyberfox.profile
@@ -4,7 +4,6 @@ include /etc/firejail/cyberfox.local
4 4
5# Firejail profile for Cyberfox (based on Mozilla Firefox) 5# Firejail profile for Cyberfox (based on Mozilla Firefox)
6noblacklist ~/.8pecxstudios 6noblacklist ~/.8pecxstudios
7noblacklist ~/.cache/8pecxstudios
8noblacklist ~/.pki 7noblacklist ~/.pki
9noblacklist ~/.lastpass 8noblacklist ~/.lastpass
10include /etc/firejail/disable-common.inc 9include /etc/firejail/disable-common.inc
@@ -22,8 +21,6 @@ tracelog
22whitelist ${DOWNLOADS} 21whitelist ${DOWNLOADS}
23mkdir ~/.8pecxstudios 22mkdir ~/.8pecxstudios
24whitelist ~/.8pecxstudios 23whitelist ~/.8pecxstudios
25mkdir ~/.cache/8pecxstudios
26whitelist ~/.cache/8pecxstudios
27whitelist ~/dwhelper 24whitelist ~/dwhelper
28whitelist ~/.zotero 25whitelist ~/.zotero
29whitelist ~/.vimperatorrc 26whitelist ~/.vimperatorrc
@@ -32,7 +29,6 @@ whitelist ~/.pentadactylrc
32whitelist ~/.pentadactyl 29whitelist ~/.pentadactyl
33whitelist ~/.keysnail.js 30whitelist ~/.keysnail.js
34whitelist ~/.config/gnome-mplayer 31whitelist ~/.config/gnome-mplayer
35whitelist ~/.cache/gnome-mplayer/plugin
36whitelist ~/.pki 32whitelist ~/.pki
37whitelist ~/.lastpass 33whitelist ~/.lastpass
38 34
diff --git a/etc/disable-common.inc b/etc/disable-common.inc
index 49ba7bc15..be3144133 100644
--- a/etc/disable-common.inc
+++ b/etc/disable-common.inc
@@ -1,4 +1,4 @@
1# This file is overwritten during software install. 1# This file is overwritten during software install.
2# Persistent customizations should go in a .local file. 2# Persistent customizations should go in a .local file.
3include /etc/firejail/disable-common.local 3include /etc/firejail/disable-common.local
4 4
@@ -235,6 +235,7 @@ blacklist ${PATH}/pantheon-terminal
235blacklist ${PATH}/roxterm 235blacklist ${PATH}/roxterm
236blacklist ${PATH}/roxterm-config 236blacklist ${PATH}/roxterm-config
237blacklist ${PATH}/terminix 237blacklist ${PATH}/terminix
238blacklist ${PATH}/tilix
238blacklist ${PATH}/urxvtc 239blacklist ${PATH}/urxvtc
239blacklist ${PATH}/urxvtcd 240blacklist ${PATH}/urxvtcd
240#konsole doesn't seem to have this problem - last tested on Ubuntu 16.04 241#konsole doesn't seem to have this problem - last tested on Ubuntu 16.04
diff --git a/etc/disable-programs.inc b/etc/disable-programs.inc
index 12f40e062..e61715ea2 100644
--- a/etc/disable-programs.inc
+++ b/etc/disable-programs.inc
@@ -1,4 +1,4 @@
1# This file is overwritten during software install. 1# This file is overwritten during software install.
2# Persistent customizations should go in a .local file. 2# Persistent customizations should go in a .local file.
3include /etc/firejail/disable-programs.local 3include /etc/firejail/disable-programs.local
4 4
@@ -17,44 +17,6 @@ blacklist ${HOME}/.arduino15
17blacklist ${HOME}/.atom 17blacklist ${HOME}/.atom
18blacklist ${HOME}/.audacity-data 18blacklist ${HOME}/.audacity-data
19blacklist ${HOME}/.bcast5 19blacklist ${HOME}/.bcast5
20blacklist ${HOME}/.cache/0ad
21blacklist ${HOME}/.cache/8pecxstudios
22blacklist ${HOME}/.cache/Franz
23blacklist ${HOME}/.cache/INRIA
24blacklist ${HOME}/.cache/QuiteRss
25blacklist ${HOME}/.cache/champlain
26blacklist ${HOME}/.cache/chromium
27blacklist ${HOME}/.cache/qupzilla
28blacklist ${HOME}/.cache/chromium-dev
29blacklist ${HOME}/.cache/darktable
30blacklist ${HOME}/.cache/epiphany
31blacklist ${HOME}/.cache/evolution
32blacklist ${HOME}/.cache/gajim
33blacklist ${HOME}/.cache/geeqie
34blacklist ${HOME}/.cache/google-chrome
35blacklist ${HOME}/.cache/google-chrome-beta
36blacklist ${HOME}/.cache/google-chrome-unstable
37blacklist ${HOME}/.cache/icedove
38blacklist ${HOME}/.cache/inox
39blacklist ${HOME}/.cache/libgweather
40blacklist ${HOME}/.cache/midori
41blacklist ${HOME}/.cache/mozilla
42blacklist ${HOME}/.cache/mutt
43blacklist ${HOME}/.cache/netsurf
44blacklist ${HOME}/.cache/opera
45blacklist ${HOME}/.cache/opera-beta
46blacklist ${HOME}/.cache/org.gnome.Books
47blacklist ${HOME}/.cache/qutebrowser
48blacklist ${HOME}/.cache/simple-scan
49blacklist ${HOME}/.cache/slimjet
50blacklist ${HOME}/.cache/spotify
51blacklist ${HOME}/.cache/telepathy
52blacklist ${HOME}/.cache/thunderbird
53blacklist ${HOME}/.cache/torbrowser
54blacklist ${HOME}/.cache/transmission
55blacklist ${HOME}/.cache/vivaldi
56blacklist ${HOME}/.cache/wesnoth
57blacklist ${HOME}/.cache/xreader
58blacklist ${HOME}/.claws-mail 20blacklist ${HOME}/.claws-mail
59blacklist ${HOME}/.config/0ad 21blacklist ${HOME}/.config/0ad
60blacklist ${HOME}/.config/Atom 22blacklist ${HOME}/.config/Atom
@@ -280,7 +242,7 @@ blacklist ${HOME}/.thunderbird
280blacklist ${HOME}/.ts3client 242blacklist ${HOME}/.ts3client
281blacklist ${HOME}/.vst 243blacklist ${HOME}/.vst
282blacklist ${HOME}/.w3m 244blacklist ${HOME}/.w3m
283blacklist ${HOME}/.warzone2100-3.1 245blacklist ${HOME}/.warzone2100-3.*
284blacklist ${HOME}/.weechat 246blacklist ${HOME}/.weechat
285blacklist ${HOME}/.wine 247blacklist ${HOME}/.wine
286blacklist ${HOME}/.wine64 248blacklist ${HOME}/.wine64
diff --git a/etc/epiphany.profile b/etc/epiphany.profile
index 1bf259440..0b281c448 100644
--- a/etc/epiphany.profile
+++ b/etc/epiphany.profile
@@ -4,7 +4,6 @@ include /etc/firejail/epiphany.local
4 4
5# Epiphany browser profile 5# Epiphany browser profile
6noblacklist ${HOME}/.config/epiphany 6noblacklist ${HOME}/.config/epiphany
7noblacklist ${HOME}/.cache/epiphany
8noblacklist ${HOME}/.local/share/epiphany 7noblacklist ${HOME}/.local/share/epiphany
9 8
10include /etc/firejail/disable-common.inc 9include /etc/firejail/disable-common.inc
@@ -16,8 +15,6 @@ mkdir ${HOME}/.local/share/epiphany
16whitelist ${HOME}/.local/share/epiphany 15whitelist ${HOME}/.local/share/epiphany
17mkdir ${HOME}/.config/epiphany 16mkdir ${HOME}/.config/epiphany
18whitelist ${HOME}/.config/epiphany 17whitelist ${HOME}/.config/epiphany
19mkdir ${HOME}/.cache/epiphany
20whitelist ${HOME}/.cache/epiphany
21include /etc/firejail/whitelist-common.inc 18include /etc/firejail/whitelist-common.inc
22 19
23caps.drop all 20caps.drop all
diff --git a/etc/evolution.profile b/etc/evolution.profile
index cb6615716..637ac334a 100644
--- a/etc/evolution.profile
+++ b/etc/evolution.profile
@@ -5,7 +5,6 @@ include /etc/firejail/evolution.local
5# evolution profile 5# evolution profile
6noblacklist ~/.config/evolution 6noblacklist ~/.config/evolution
7noblacklist ~/.local/share/evolution 7noblacklist ~/.local/share/evolution
8noblacklist ~/.cache/evolution
9noblacklist ~/.pki 8noblacklist ~/.pki
10noblacklist ~/.pki/nssdb 9noblacklist ~/.pki/nssdb
11noblacklist ~/.gnupg 10noblacklist ~/.gnupg
diff --git a/etc/firefox.profile b/etc/firefox.profile
index e2cfb9138..20acde62a 100644
--- a/etc/firefox.profile
+++ b/etc/firefox.profile
@@ -4,7 +4,6 @@ include /etc/firejail/firefox.local
4 4
5# Firejail profile for Mozilla Firefox (Iceweasel in Debian) 5# Firejail profile for Mozilla Firefox (Iceweasel in Debian)
6noblacklist ~/.mozilla 6noblacklist ~/.mozilla
7noblacklist ~/.cache/mozilla
8noblacklist ~/.config/qpdfview 7noblacklist ~/.config/qpdfview
9noblacklist ~/.local/share/qpdfview 8noblacklist ~/.local/share/qpdfview
10noblacklist ~/.kde/share/apps/okular 9noblacklist ~/.kde/share/apps/okular
@@ -25,8 +24,6 @@ tracelog
25whitelist ${DOWNLOADS} 24whitelist ${DOWNLOADS}
26mkdir ~/.mozilla 25mkdir ~/.mozilla
27whitelist ~/.mozilla 26whitelist ~/.mozilla
28mkdir ~/.cache/mozilla/firefox
29whitelist ~/.cache/mozilla/firefox
30whitelist ~/dwhelper 27whitelist ~/dwhelper
31whitelist ~/.zotero 28whitelist ~/.zotero
32whitelist ~/.vimperatorrc 29whitelist ~/.vimperatorrc
@@ -35,7 +32,6 @@ whitelist ~/.pentadactylrc
35whitelist ~/.pentadactyl 32whitelist ~/.pentadactyl
36whitelist ~/.keysnail.js 33whitelist ~/.keysnail.js
37whitelist ~/.config/gnome-mplayer 34whitelist ~/.config/gnome-mplayer
38whitelist ~/.cache/gnome-mplayer/plugin
39mkdir ~/.pki 35mkdir ~/.pki
40whitelist ~/.pki 36whitelist ~/.pki
41whitelist ~/.lastpass 37whitelist ~/.lastpass
@@ -55,4 +51,4 @@ include /etc/firejail/whitelist-common.inc
55#private-bin firefox,which,sh,dbus-launch,dbus-send,env 51#private-bin firefox,which,sh,dbus-launch,dbus-send,env
56#private-etc passwd,group,hostname,hosts,localtime,nsswitch.conf,resolv.conf,xdg,gtk-2.0,gtk-3.0,X11,pango,fonts,firefox,mime.types,mailcap,asound.conf,pulse 52#private-etc passwd,group,hostname,hosts,localtime,nsswitch.conf,resolv.conf,xdg,gtk-2.0,gtk-3.0,X11,pango,fonts,firefox,mime.types,mailcap,asound.conf,pulse
57private-dev 53private-dev
58#private-tmp 54private-tmp
diff --git a/etc/flashpeak-slimjet.profile b/etc/flashpeak-slimjet.profile
index 4dc5b5cfc..a35aa7a33 100644
--- a/etc/flashpeak-slimjet.profile
+++ b/etc/flashpeak-slimjet.profile
@@ -10,7 +10,6 @@ include /etc/firejail/flashpeak-slimjet.local
10# firejail flashpeak-slimjet --no-sandbox 10# firejail flashpeak-slimjet --no-sandbox
11# 11#
12noblacklist ~/.config/slimjet 12noblacklist ~/.config/slimjet
13noblacklist ~/.cache/slimjet
14noblacklist ~/.pki 13noblacklist ~/.pki
15include /etc/firejail/disable-common.inc 14include /etc/firejail/disable-common.inc
16include /etc/firejail/disable-programs.inc 15include /etc/firejail/disable-programs.inc
@@ -29,8 +28,6 @@ seccomp
29whitelist ${DOWNLOADS} 28whitelist ${DOWNLOADS}
30mkdir ~/.config/slimjet 29mkdir ~/.config/slimjet
31whitelist ~/.config/slimjet 30whitelist ~/.config/slimjet
32mkdir ~/.cache/slimjet
33whitelist ~/.cache/slimjet
34mkdir ~/.pki 31mkdir ~/.pki
35whitelist ~/.pki 32whitelist ~/.pki
36 33
diff --git a/etc/fossamail.profile b/etc/fossamail.profile
index 3caaad71c..a33514c88 100644
--- a/etc/fossamail.profile
+++ b/etc/fossamail.profile
@@ -12,8 +12,5 @@ noblacklist ~/.fossamail
12mkdir ~/.fossamail 12mkdir ~/.fossamail
13whitelist ~/.fossamail 13whitelist ~/.fossamail
14 14
15noblacklist ~/.cache/fossamail
16mkdir ~/.cache/fossamail
17whitelist ~/.cache/fossamail
18 15
19include /etc/firejail/firefox.profile 16include /etc/firejail/firefox.profile
diff --git a/etc/franz.profile b/etc/franz.profile
index 05ff72a47..1692f4516 100644
--- a/etc/franz.profile
+++ b/etc/franz.profile
@@ -4,7 +4,6 @@ include /etc/firejail/franz.local
4 4
5# Franz profile 5# Franz profile
6noblacklist ~/.config/Franz 6noblacklist ~/.config/Franz
7noblacklist ~/.cache/Franz
8noblacklist ~/.pki 7noblacklist ~/.pki
9include /etc/firejail/disable-common.inc 8include /etc/firejail/disable-common.inc
10include /etc/firejail/disable-programs.inc 9include /etc/firejail/disable-programs.inc
@@ -21,8 +20,6 @@ seccomp
21whitelist ${DOWNLOADS} 20whitelist ${DOWNLOADS}
22mkdir ~/.config/Franz 21mkdir ~/.config/Franz
23whitelist ~/.config/Franz 22whitelist ~/.config/Franz
24mkdir ~/.cache/Franz
25whitelist ~/.cache/Franz
26mkdir ~/.pki 23mkdir ~/.pki
27whitelist ~/.pki 24whitelist ~/.pki
28 25
diff --git a/etc/gajim.profile b/etc/gajim.profile
index bac6cc466..f64d9241a 100644
--- a/etc/gajim.profile
+++ b/etc/gajim.profile
@@ -3,11 +3,9 @@
3include /etc/firejail/gajim.local 3include /etc/firejail/gajim.local
4 4
5# Firejail profile for Gajim 5# Firejail profile for Gajim
6noblacklist ${HOME}/.cache/gajim
7noblacklist ${HOME}/.local/share/gajim 6noblacklist ${HOME}/.local/share/gajim
8noblacklist ${HOME}/.config/gajim 7noblacklist ${HOME}/.config/gajim
9 8
10mkdir ${HOME}/.cache/gajim
11mkdir ${HOME}/.local/share/gajim 9mkdir ${HOME}/.local/share/gajim
12mkdir ${HOME}/.config/gajim 10mkdir ${HOME}/.config/gajim
13mkdir ${HOME}/Downloads 11mkdir ${HOME}/Downloads
@@ -17,7 +15,6 @@ mkdir ${HOME}/.local/lib/python2.7/site-packages/
17whitelist ${HOME}/.local/lib/python2.7/site-packages/ 15whitelist ${HOME}/.local/lib/python2.7/site-packages/
18read-only ${HOME}/.local/lib/python2.7/site-packages/ 16read-only ${HOME}/.local/lib/python2.7/site-packages/
19 17
20whitelist ${HOME}/.cache/gajim
21whitelist ${HOME}/.local/share/gajim 18whitelist ${HOME}/.local/share/gajim
22whitelist ${HOME}/.config/gajim 19whitelist ${HOME}/.config/gajim
23whitelist ${HOME}/Downloads 20whitelist ${HOME}/Downloads
diff --git a/etc/geeqie.profile b/etc/geeqie.profile
index 57f942a50..9f79e15b8 100644
--- a/etc/geeqie.profile
+++ b/etc/geeqie.profile
@@ -3,7 +3,6 @@
3include /etc/firejail/geeqie.local 3include /etc/firejail/geeqie.local
4 4
5# Firejail profile for Geeqie 5# Firejail profile for Geeqie
6noblacklist ~/.cache/geeqie
7noblacklist ~/.config/geeqie 6noblacklist ~/.config/geeqie
8noblacklist ~/.local/share/geeqie 7noblacklist ~/.local/share/geeqie
9include /etc/firejail/disable-common.inc 8include /etc/firejail/disable-common.inc
diff --git a/etc/gjs.profile b/etc/gjs.profile
index 24ec70e86..03dd7893c 100644
--- a/etc/gjs.profile
+++ b/etc/gjs.profile
@@ -6,10 +6,8 @@ include /etc/firejail/gjs.local
6 6
7# when gjs apps are started via gnome-shell, firejail is not applied because systemd will start them 7# when gjs apps are started via gnome-shell, firejail is not applied because systemd will start them
8 8
9noblacklist ~/.cache/org.gnome.Books
10noblacklist ~/.config/libreoffice 9noblacklist ~/.config/libreoffice
11noblacklist ~/.local/share/gnome-photos 10noblacklist ~/.local/share/gnome-photos
12noblacklist ~/.cache/libgweather
13 11
14include /etc/firejail/disable-common.inc 12include /etc/firejail/disable-common.inc
15include /etc/firejail/disable-programs.inc 13include /etc/firejail/disable-programs.inc
diff --git a/etc/gnome-books.profile b/etc/gnome-books.profile
index 692e32896..bf2a9f36f 100644
--- a/etc/gnome-books.profile
+++ b/etc/gnome-books.profile
@@ -6,8 +6,6 @@ include /etc/firejail/gnome-books.local
6 6
7# when gjs apps are started via gnome-shell, firejail is not applied because systemd will start them 7# when gjs apps are started via gnome-shell, firejail is not applied because systemd will start them
8 8
9noblacklist ~/.cache/org.gnome.Books
10
11include /etc/firejail/disable-common.inc 9include /etc/firejail/disable-common.inc
12include /etc/firejail/disable-programs.inc 10include /etc/firejail/disable-programs.inc
13include /etc/firejail/disable-devel.inc 11include /etc/firejail/disable-devel.inc
diff --git a/etc/gnome-weather.profile b/etc/gnome-weather.profile
index 925420a5a..3b6bdd130 100644
--- a/etc/gnome-weather.profile
+++ b/etc/gnome-weather.profile
@@ -6,8 +6,6 @@ include /etc/firejail/gnome-weather.local
6 6
7# when gjs apps are started via gnome-shell, firejail is not applied because systemd will start them 7# when gjs apps are started via gnome-shell, firejail is not applied because systemd will start them
8 8
9noblacklist ~/.cache/libgweather
10
11include /etc/firejail/disable-common.inc 9include /etc/firejail/disable-common.inc
12include /etc/firejail/disable-programs.inc 10include /etc/firejail/disable-programs.inc
13include /etc/firejail/disable-devel.inc 11include /etc/firejail/disable-devel.inc
diff --git a/etc/google-chrome-beta.profile b/etc/google-chrome-beta.profile
index 3bd16de4a..65bc42648 100644
--- a/etc/google-chrome-beta.profile
+++ b/etc/google-chrome-beta.profile
@@ -4,7 +4,6 @@ include /etc/firejail/google-chrome-beta.local
4 4
5# Google Chrome beta browser profile 5# Google Chrome beta browser profile
6noblacklist ~/.config/google-chrome-beta 6noblacklist ~/.config/google-chrome-beta
7noblacklist ~/.cache/google-chrome-beta
8noblacklist ~/.pki 7noblacklist ~/.pki
9include /etc/firejail/disable-common.inc 8include /etc/firejail/disable-common.inc
10include /etc/firejail/disable-programs.inc 9include /etc/firejail/disable-programs.inc
@@ -18,8 +17,6 @@ netfilter
18whitelist ${DOWNLOADS} 17whitelist ${DOWNLOADS}
19mkdir ~/.config/google-chrome-beta 18mkdir ~/.config/google-chrome-beta
20whitelist ~/.config/google-chrome-beta 19whitelist ~/.config/google-chrome-beta
21mkdir ~/.cache/google-chrome-beta
22whitelist ~/.cache/google-chrome-beta
23mkdir ~/.pki 20mkdir ~/.pki
24whitelist ~/.pki 21whitelist ~/.pki
25include /etc/firejail/whitelist-common.inc 22include /etc/firejail/whitelist-common.inc
diff --git a/etc/google-chrome-unstable.profile b/etc/google-chrome-unstable.profile
index d2def4f96..6f6fa1bf2 100644
--- a/etc/google-chrome-unstable.profile
+++ b/etc/google-chrome-unstable.profile
@@ -4,7 +4,6 @@ include /etc/firejail/google-chrome-unstable.local
4 4
5# Google Chrome unstable browser profile 5# Google Chrome unstable browser profile
6noblacklist ~/.config/google-chrome-unstable 6noblacklist ~/.config/google-chrome-unstable
7noblacklist ~/.cache/google-chrome-unstable
8noblacklist ~/.pki 7noblacklist ~/.pki
9include /etc/firejail/disable-common.inc 8include /etc/firejail/disable-common.inc
10include /etc/firejail/disable-programs.inc 9include /etc/firejail/disable-programs.inc
@@ -18,8 +17,6 @@ netfilter
18whitelist ${DOWNLOADS} 17whitelist ${DOWNLOADS}
19mkdir ~/.config/google-chrome-unstable 18mkdir ~/.config/google-chrome-unstable
20whitelist ~/.config/google-chrome-unstable 19whitelist ~/.config/google-chrome-unstable
21mkdir ~/.cache/google-chrome-unstable
22whitelist ~/.cache/google-chrome-unstable
23mkdir ~/.pki 20mkdir ~/.pki
24whitelist ~/.pki 21whitelist ~/.pki
25include /etc/firejail/whitelist-common.inc 22include /etc/firejail/whitelist-common.inc
diff --git a/etc/google-chrome.profile b/etc/google-chrome.profile
index 38feb12a5..131538dd9 100644
--- a/etc/google-chrome.profile
+++ b/etc/google-chrome.profile
@@ -4,7 +4,6 @@ include /etc/firejail/google-chrome.local
4 4
5# Google Chrome browser profile 5# Google Chrome browser profile
6noblacklist ~/.config/google-chrome 6noblacklist ~/.config/google-chrome
7noblacklist ~/.cache/google-chrome
8noblacklist ~/.pki 7noblacklist ~/.pki
9include /etc/firejail/disable-common.inc 8include /etc/firejail/disable-common.inc
10include /etc/firejail/disable-programs.inc 9include /etc/firejail/disable-programs.inc
@@ -18,8 +17,6 @@ netfilter
18whitelist ${DOWNLOADS} 17whitelist ${DOWNLOADS}
19mkdir ~/.config/google-chrome 18mkdir ~/.config/google-chrome
20whitelist ~/.config/google-chrome 19whitelist ~/.config/google-chrome
21mkdir ~/.cache/google-chrome
22whitelist ~/.cache/google-chrome
23mkdir ~/.pki 20mkdir ~/.pki
24whitelist ~/.pki 21whitelist ~/.pki
25include /etc/firejail/whitelist-common.inc 22include /etc/firejail/whitelist-common.inc
diff --git a/etc/icecat.profile b/etc/icecat.profile
index 64401efe8..4bd3f3047 100644
--- a/etc/icecat.profile
+++ b/etc/icecat.profile
@@ -4,7 +4,6 @@ include /etc/firejail/icecat.local
4 4
5# Firejail profile for GNU Icecat 5# Firejail profile for GNU Icecat
6noblacklist ~/.mozilla 6noblacklist ~/.mozilla
7noblacklist ~/.cache/mozilla
8noblacklist ~/.pki 7noblacklist ~/.pki
9noblacklist ~/.lastpass 8noblacklist ~/.lastpass
10include /etc/firejail/disable-common.inc 9include /etc/firejail/disable-common.inc
@@ -22,8 +21,6 @@ tracelog
22whitelist ${DOWNLOADS} 21whitelist ${DOWNLOADS}
23mkdir ~/.mozilla 22mkdir ~/.mozilla
24whitelist ~/.mozilla 23whitelist ~/.mozilla
25mkdir ~/.cache/mozilla/icecat
26whitelist ~/.cache/mozilla/icecat
27whitelist ~/dwhelper 24whitelist ~/dwhelper
28whitelist ~/.zotero 25whitelist ~/.zotero
29whitelist ~/.vimperatorrc 26whitelist ~/.vimperatorrc
@@ -32,7 +29,6 @@ whitelist ~/.pentadactylrc
32whitelist ~/.pentadactyl 29whitelist ~/.pentadactyl
33whitelist ~/.keysnail.js 30whitelist ~/.keysnail.js
34whitelist ~/.config/gnome-mplayer 31whitelist ~/.config/gnome-mplayer
35whitelist ~/.cache/gnome-mplayer/plugin
36whitelist ~/.pki 32whitelist ~/.pki
37whitelist ~/.lastpass 33whitelist ~/.lastpass
38 34
diff --git a/etc/icedove.profile b/etc/icedove.profile
index b5265e992..aae0e3bf5 100644
--- a/etc/icedove.profile
+++ b/etc/icedove.profile
@@ -14,10 +14,6 @@ noblacklist ~/.icedove
14mkdir ~/.icedove 14mkdir ~/.icedove
15whitelist ~/.icedove 15whitelist ~/.icedove
16 16
17noblacklist ~/.cache/icedove
18mkdir ~/.cache/icedove
19whitelist ~/.cache/icedove
20
21# allow browsers 17# allow browsers
22ignore private-tmp 18ignore private-tmp
23include /etc/firejail/firefox.profile 19include /etc/firejail/firefox.profile
diff --git a/etc/inox.profile b/etc/inox.profile
index 0b2e4ee5e..6043ded8a 100644
--- a/etc/inox.profile
+++ b/etc/inox.profile
@@ -4,7 +4,6 @@ include /etc/firejail/inox.local
4 4
5# Inox browser profile 5# Inox browser profile
6noblacklist ~/.config/inox 6noblacklist ~/.config/inox
7noblacklist ~/.cache/inox
8noblacklist ~/.pki 7noblacklist ~/.pki
9include /etc/firejail/disable-common.inc 8include /etc/firejail/disable-common.inc
10include /etc/firejail/disable-programs.inc 9include /etc/firejail/disable-programs.inc
@@ -14,8 +13,6 @@ netfilter
14whitelist ${DOWNLOADS} 13whitelist ${DOWNLOADS}
15mkdir ~/.config/inox 14mkdir ~/.config/inox
16whitelist ~/.config/inox 15whitelist ~/.config/inox
17mkdir ~/.cache/inox
18whitelist ~/.cache/inox
19mkdir ~/.pki 16mkdir ~/.pki
20whitelist ~/.pki 17whitelist ~/.pki
21 18
diff --git a/etc/iridium.profile b/etc/iridium.profile
index 2d79a3935..dcbd0b84b 100644
--- a/etc/iridium.profile
+++ b/etc/iridium.profile
@@ -4,7 +4,6 @@ include /etc/firejail/iridium.local
4 4
5# Iridium browser profile 5# Iridium browser profile
6noblacklist ~/.config/iridium 6noblacklist ~/.config/iridium
7noblacklist ~/.cache/iridium
8include /etc/firejail/disable-common.inc 7include /etc/firejail/disable-common.inc
9include /etc/firejail/disable-programs.inc 8include /etc/firejail/disable-programs.inc
10 9
@@ -17,8 +16,6 @@ netfilter
17whitelist ${DOWNLOADS} 16whitelist ${DOWNLOADS}
18mkdir ~/.config/iridium 17mkdir ~/.config/iridium
19whitelist ~/.config/iridium 18whitelist ~/.config/iridium
20mkdir ~/.cache/iridium
21whitelist ~/.cache/iridium
22mkdir ~/.pki 19mkdir ~/.pki
23whitelist ~/.pki 20whitelist ~/.pki
24 21
diff --git a/etc/mutt.profile b/etc/mutt.profile
index 2f0809f02..f9d537779 100644
--- a/etc/mutt.profile
+++ b/etc/mutt.profile
@@ -14,7 +14,6 @@ noblacklist ~/mail
14noblacklist ~/Mail 14noblacklist ~/Mail
15noblacklist ~/sent 15noblacklist ~/sent
16noblacklist ~/postponed 16noblacklist ~/postponed
17noblacklist ~/.cache/mutt
18noblacklist ~/.w3m 17noblacklist ~/.w3m
19noblacklist ~/.elinks 18noblacklist ~/.elinks
20noblacklist ~/.vim 19noblacklist ~/.vim
diff --git a/etc/netsurf.profile b/etc/netsurf.profile
index c217346de..a3c360c1e 100644
--- a/etc/netsurf.profile
+++ b/etc/netsurf.profile
@@ -4,7 +4,6 @@ include /etc/firejail/netsurf.local
4 4
5# Firejail profile for Mozilla Firefox (Iceweasel in Debian) 5# Firejail profile for Mozilla Firefox (Iceweasel in Debian)
6noblacklist ~/.config/netsurf 6noblacklist ~/.config/netsurf
7noblacklist ~/.cache/netsurf
8include /etc/firejail/disable-common.inc 7include /etc/firejail/disable-common.inc
9include /etc/firejail/disable-programs.inc 8include /etc/firejail/disable-programs.inc
10include /etc/firejail/disable-devel.inc 9include /etc/firejail/disable-devel.inc
@@ -20,7 +19,5 @@ tracelog
20whitelist ${DOWNLOADS} 19whitelist ${DOWNLOADS}
21mkdir ~/.config/netsurf 20mkdir ~/.config/netsurf
22whitelist ~/.config/netsurf 21whitelist ~/.config/netsurf
23mkdir ~/.cache/netsurf
24whitelist ~/.cache/netsurf
25 22
26include /etc/firejail/whitelist-common.inc 23include /etc/firejail/whitelist-common.inc
diff --git a/etc/opera-beta.profile b/etc/opera-beta.profile
index 92624f334..5a0d54744 100644
--- a/etc/opera-beta.profile
+++ b/etc/opera-beta.profile
@@ -4,7 +4,6 @@ include /etc/firejail/opera-beta.local
4 4
5# Opera-beta browser profile 5# Opera-beta browser profile
6noblacklist ~/.config/opera-beta 6noblacklist ~/.config/opera-beta
7noblacklist ~/.cache/opera-beta
8noblacklist ~/.pki 7noblacklist ~/.pki
9include /etc/firejail/disable-common.inc 8include /etc/firejail/disable-common.inc
10include /etc/firejail/disable-programs.inc 9include /etc/firejail/disable-programs.inc
@@ -15,8 +14,6 @@ netfilter
15whitelist ${DOWNLOADS} 14whitelist ${DOWNLOADS}
16mkdir ~/.config/opera-beta 15mkdir ~/.config/opera-beta
17whitelist ~/.config/opera-beta 16whitelist ~/.config/opera-beta
18mkdir ~/.cache/opera-beta
19whitelist ~/.cache/opera-beta
20mkdir ~/.pki 17mkdir ~/.pki
21whitelist ~/.pki 18whitelist ~/.pki
22include /etc/firejail/whitelist-common.inc 19include /etc/firejail/whitelist-common.inc
diff --git a/etc/opera.profile b/etc/opera.profile
index 57835f2f2..4af502060 100644
--- a/etc/opera.profile
+++ b/etc/opera.profile
@@ -4,7 +4,6 @@ include /etc/firejail/opera.local
4 4
5# Opera browser profile 5# Opera browser profile
6noblacklist ~/.config/opera 6noblacklist ~/.config/opera
7noblacklist ~/.cache/opera
8noblacklist ~/.opera 7noblacklist ~/.opera
9noblacklist ~/.pki 8noblacklist ~/.pki
10include /etc/firejail/disable-common.inc 9include /etc/firejail/disable-common.inc
@@ -16,8 +15,6 @@ netfilter
16whitelist ${DOWNLOADS} 15whitelist ${DOWNLOADS}
17mkdir ~/.config/opera 16mkdir ~/.config/opera
18whitelist ~/.config/opera 17whitelist ~/.config/opera
19mkdir ~/.cache/opera
20whitelist ~/.cache/opera
21mkdir ~/.opera 18mkdir ~/.opera
22whitelist ~/.opera 19whitelist ~/.opera
23mkdir ~/.pki 20mkdir ~/.pki
diff --git a/etc/palemoon.profile b/etc/palemoon.profile
index 8cac00e03..472d58cee 100644
--- a/etc/palemoon.profile
+++ b/etc/palemoon.profile
@@ -4,7 +4,6 @@ include /etc/firejail/palemoon.local
4 4
5# Firejail profile for Pale Moon 5# Firejail profile for Pale Moon
6noblacklist ~/.moonchild productions/pale moon 6noblacklist ~/.moonchild productions/pale moon
7noblacklist ~/.cache/moonchild productions/pale moon
8include /etc/firejail/disable-common.inc 7include /etc/firejail/disable-common.inc
9include /etc/firejail/disable-programs.inc 8include /etc/firejail/disable-programs.inc
10include /etc/firejail/disable-devel.inc 9include /etc/firejail/disable-devel.inc
@@ -13,8 +12,6 @@ include /etc/firejail/whitelist-common.inc
13whitelist ${DOWNLOADS} 12whitelist ${DOWNLOADS}
14mkdir ~/.moonchild productions 13mkdir ~/.moonchild productions
15whitelist ~/.moonchild productions 14whitelist ~/.moonchild productions
16mkdir ~/.cache/moonchild productions/pale moon
17whitelist ~/.cache/moonchild productions/pale moon
18 15
19caps.drop all 16caps.drop all
20netfilter 17netfilter
@@ -40,7 +37,6 @@ private-tmp
40#whitelist ~/.pentadactyl 37#whitelist ~/.pentadactyl
41#whitelist ~/.keysnail.js 38#whitelist ~/.keysnail.js
42#whitelist ~/.config/gnome-mplayer 39#whitelist ~/.config/gnome-mplayer
43#whitelist ~/.cache/gnome-mplayer/plugin
44#whitelist ~/.pki 40#whitelist ~/.pki
45#whitelist ~/.lastpass 41#whitelist ~/.lastpass
46 42
diff --git a/etc/polari.profile b/etc/polari.profile
index 834a8b3d6..52a58322e 100644
--- a/etc/polari.profile
+++ b/etc/polari.profile
@@ -15,8 +15,6 @@ mkdir ${HOME}/.local/share/TpLogger
15whitelist ${HOME}/.local/share/TpLogger 15whitelist ${HOME}/.local/share/TpLogger
16mkdir ${HOME}/.config/telepathy-account-widgets 16mkdir ${HOME}/.config/telepathy-account-widgets
17whitelist ${HOME}/.config/telepathy-account-widgets 17whitelist ${HOME}/.config/telepathy-account-widgets
18mkdir ${HOME}/.cache/telepathy
19whitelist ${HOME}/.cache/telepathy
20mkdir ${HOME}/.purple 18mkdir ${HOME}/.purple
21whitelist ${HOME}/.purple 19whitelist ${HOME}/.purple
22include /etc/firejail/whitelist-common.inc 20include /etc/firejail/whitelist-common.inc
diff --git a/etc/psi-plus.profile b/etc/psi-plus.profile
index 45cb22ee4..5106fccb2 100644
--- a/etc/psi-plus.profile
+++ b/etc/psi-plus.profile
@@ -14,8 +14,6 @@ mkdir ~/.config/psi+
14whitelist ~/.config/psi+ 14whitelist ~/.config/psi+
15mkdir ~/.local/share/psi+ 15mkdir ~/.local/share/psi+
16whitelist ~/.local/share/psi+ 16whitelist ~/.local/share/psi+
17mkdir ~/.cache/psi+
18whitelist ~/.cache/psi+
19 17
20caps.drop all 18caps.drop all
21netfilter 19netfilter
diff --git a/etc/quiterss.profile b/etc/quiterss.profile
index f4e4f96d3..158425e18 100644
--- a/etc/quiterss.profile
+++ b/etc/quiterss.profile
@@ -2,7 +2,6 @@
2# Persistent customizations should go in a .local file. 2# Persistent customizations should go in a .local file.
3include /etc/firejail/quiterss.local 3include /etc/firejail/quiterss.local
4 4
5noblacklist ${HOME}/.cache/QuiteRss
6noblacklist ${HOME}/.config/QuiteRss 5noblacklist ${HOME}/.config/QuiteRss
7noblacklist ${HOME}/.config/QuiteRssrc 6noblacklist ${HOME}/.config/QuiteRssrc
8noblacklist ${HOME}/.local/share/QuiteRss 7noblacklist ${HOME}/.local/share/QuiteRss
@@ -19,8 +18,6 @@ whitelist ${HOME}/.config/QuiteRssrc
19mkdir ~/.local/share/data 18mkdir ~/.local/share/data
20mkdir ~/.local/share/data/QuiteRss 19mkdir ~/.local/share/data/QuiteRss
21whitelist ${HOME}/.local/share/data/QuiteRss 20whitelist ${HOME}/.local/share/data/QuiteRss
22mkdir ~/.cache/QuiteRss
23whitelist ${HOME}/.cache/QuiteRss
24 21
25caps.drop all 22caps.drop all
26netfilter 23netfilter
diff --git a/etc/qupzilla.profile b/etc/qupzilla.profile
index 3f5cb60c0..783bc516d 100644
--- a/etc/qupzilla.profile
+++ b/etc/qupzilla.profile
@@ -4,7 +4,6 @@ include /etc/firejail/qupzilla.local
4 4
5# Firejail profile for Qupzilla web browser 5# Firejail profile for Qupzilla web browser
6noblacklist ${HOME}/.config/qupzilla 6noblacklist ${HOME}/.config/qupzilla
7noblacklist ${HOME}/.cache/qupzilla
8include /etc/firejail/disable-mgmt.inc 7include /etc/firejail/disable-mgmt.inc
9include /etc/firejail/disable-secret.inc 8include /etc/firejail/disable-secret.inc
10include /etc/firejail/disable-common.inc 9include /etc/firejail/disable-common.inc
@@ -17,7 +16,6 @@ tracelog
17noroot 16noroot
18whitelist ${DOWNLOADS} 17whitelist ${DOWNLOADS}
19whitelist ~/.config/qupzilla 18whitelist ~/.config/qupzilla
20whitelist ~/.cache/qupzilla
21include /etc/firejail/whitelist-common.inc 19include /etc/firejail/whitelist-common.inc
22 20
23# experimental features 21# experimental features
diff --git a/etc/qutebrowser.profile b/etc/qutebrowser.profile
index f43307ef9..53be1178c 100644
--- a/etc/qutebrowser.profile
+++ b/etc/qutebrowser.profile
@@ -4,7 +4,6 @@ include /etc/firejail/qutebrowser.local
4 4
5# Firejail profile for Qutebrowser (Qt5-Webkit+Python) browser 5# Firejail profile for Qutebrowser (Qt5-Webkit+Python) browser
6noblacklist ~/.config/qutebrowser 6noblacklist ~/.config/qutebrowser
7noblacklist ~/.cache/qutebrowser
8include /etc/firejail/disable-common.inc 7include /etc/firejail/disable-common.inc
9include /etc/firejail/disable-programs.inc 8include /etc/firejail/disable-programs.inc
10include /etc/firejail/disable-devel.inc 9include /etc/firejail/disable-devel.inc
@@ -20,8 +19,6 @@ tracelog
20whitelist ${DOWNLOADS} 19whitelist ${DOWNLOADS}
21mkdir ~/.config/qutebrowser 20mkdir ~/.config/qutebrowser
22whitelist ~/.config/qutebrowser 21whitelist ~/.config/qutebrowser
23mkdir ~/.cache/qutebrowser
24whitelist ~/.cache/qutebrowser
25mkdir ~/.local/share/qutebrowser 22mkdir ~/.local/share/qutebrowser
26whitelist ~/.local/share/qutebrowser 23whitelist ~/.local/share/qutebrowser
27include /etc/firejail/whitelist-common.inc 24include /etc/firejail/whitelist-common.inc
diff --git a/etc/seamonkey.profile b/etc/seamonkey.profile
index df1910469..756700c2f 100644
--- a/etc/seamonkey.profile
+++ b/etc/seamonkey.profile
@@ -4,7 +4,6 @@ include /etc/firejail/seamonkey.local
4 4
5# Firejail profile for Seamoneky based off Mozilla Firefox 5# Firejail profile for Seamoneky based off Mozilla Firefox
6noblacklist ~/.mozilla 6noblacklist ~/.mozilla
7noblacklist ~/.cache/mozilla
8noblacklist ~/.pki 7noblacklist ~/.pki
9noblacklist ~/.lastpass 8noblacklist ~/.lastpass
10include /etc/firejail/disable-common.inc 9include /etc/firejail/disable-common.inc
@@ -22,8 +21,6 @@ tracelog
22whitelist ${DOWNLOADS} 21whitelist ${DOWNLOADS}
23mkdir ~/.mozilla/seamonkey 22mkdir ~/.mozilla/seamonkey
24whitelist ~/.mozilla/seamonkey 23whitelist ~/.mozilla/seamonkey
25mkdir ~/.cache/mozilla/seamonkey
26whitelist ~/.cache/mozilla/seamonkey
27whitelist ~/dwhelper 24whitelist ~/dwhelper
28whitelist ~/.zotero 25whitelist ~/.zotero
29whitelist ~/.vimperatorrc 26whitelist ~/.vimperatorrc
@@ -32,7 +29,6 @@ whitelist ~/.pentadactylrc
32whitelist ~/.pentadactyl 29whitelist ~/.pentadactyl
33whitelist ~/.keysnail.js 30whitelist ~/.keysnail.js
34whitelist ~/.config/gnome-mplayer 31whitelist ~/.config/gnome-mplayer
35whitelist ~/.cache/gnome-mplayer/plugin
36whitelist ~/.pki 32whitelist ~/.pki
37whitelist ~/.lastpass 33whitelist ~/.lastpass
38include /etc/firejail/whitelist-common.inc 34include /etc/firejail/whitelist-common.inc
diff --git a/etc/simple-scan.profile b/etc/simple-scan.profile
index ee7e50ba7..0f6d626a5 100644
--- a/etc/simple-scan.profile
+++ b/etc/simple-scan.profile
@@ -3,8 +3,6 @@
3include /etc/firejail/simple-scan.local 3include /etc/firejail/simple-scan.local
4 4
5# simple-scan profile 5# simple-scan profile
6noblacklist ~/.cache/simple-scan
7
8include /etc/firejail/disable-common.inc 6include /etc/firejail/disable-common.inc
9include /etc/firejail/disable-programs.inc 7include /etc/firejail/disable-programs.inc
10include /etc/firejail/disable-devel.inc 8include /etc/firejail/disable-devel.inc
diff --git a/etc/spotify.profile b/etc/spotify.profile
index 843038a2b..23ef75b71 100644
--- a/etc/spotify.profile
+++ b/etc/spotify.profile
@@ -4,7 +4,6 @@ include /etc/firejail/spotify.local
4 4
5# Spotify media player profile 5# Spotify media player profile
6noblacklist ${HOME}/.config/spotify 6noblacklist ${HOME}/.config/spotify
7noblacklist ${HOME}/.cache/spotify
8noblacklist ${HOME}/.local/share/spotify 7noblacklist ${HOME}/.local/share/spotify
9include /etc/firejail/disable-common.inc 8include /etc/firejail/disable-common.inc
10include /etc/firejail/disable-programs.inc 9include /etc/firejail/disable-programs.inc
@@ -16,8 +15,6 @@ mkdir ${HOME}/.config/spotify
16whitelist ${HOME}/.config/spotify 15whitelist ${HOME}/.config/spotify
17mkdir ${HOME}/.local/share/spotify 16mkdir ${HOME}/.local/share/spotify
18whitelist ${HOME}/.local/share/spotify 17whitelist ${HOME}/.local/share/spotify
19mkdir ${HOME}/.cache/spotify
20whitelist ${HOME}/.cache/spotify
21 18
22caps.drop all 19caps.drop all
23netfilter 20netfilter
diff --git a/etc/thunderbird.profile b/etc/thunderbird.profile
index 88ab7501e..1dc8b15c7 100644
--- a/etc/thunderbird.profile
+++ b/etc/thunderbird.profile
@@ -14,10 +14,6 @@ noblacklist ~/.thunderbird
14mkdir ~/.thunderbird 14mkdir ~/.thunderbird
15whitelist ~/.thunderbird 15whitelist ~/.thunderbird
16 16
17noblacklist ~/.cache/thunderbird
18mkdir ~/.cache/thunderbird
19whitelist ~/.cache/thunderbird
20
21# allow browsers 17# allow browsers
22ignore private-tmp 18ignore private-tmp
23include /etc/firejail/firefox.profile 19include /etc/firejail/firefox.profile
diff --git a/etc/transmission-cli.profile b/etc/transmission-cli.profile
index dbcc8d041..5b6bec4c1 100644
--- a/etc/transmission-cli.profile
+++ b/etc/transmission-cli.profile
@@ -4,7 +4,6 @@ include /etc/firejail/transmission-cli.local
4 4
5# transmission-cli bittorrent profile 5# transmission-cli bittorrent profile
6noblacklist ${HOME}/.config/transmission 6noblacklist ${HOME}/.config/transmission
7noblacklist ${HOME}/.cache/transmission
8 7
9include /etc/firejail/disable-common.inc 8include /etc/firejail/disable-common.inc
10include /etc/firejail/disable-programs.inc 9include /etc/firejail/disable-programs.inc
diff --git a/etc/transmission-gtk.profile b/etc/transmission-gtk.profile
index dcd3317ef..78ce5fba2 100644
--- a/etc/transmission-gtk.profile
+++ b/etc/transmission-gtk.profile
@@ -4,7 +4,6 @@ include /etc/firejail/transmission-gtk.local
4 4
5# transmission-gtk bittorrent profile 5# transmission-gtk bittorrent profile
6noblacklist ${HOME}/.config/transmission 6noblacklist ${HOME}/.config/transmission
7noblacklist ${HOME}/.cache/transmission
8 7
9include /etc/firejail/disable-common.inc 8include /etc/firejail/disable-common.inc
10include /etc/firejail/disable-programs.inc 9include /etc/firejail/disable-programs.inc
diff --git a/etc/transmission-qt.profile b/etc/transmission-qt.profile
index ed63f7cff..2f7fe0714 100644
--- a/etc/transmission-qt.profile
+++ b/etc/transmission-qt.profile
@@ -4,7 +4,6 @@ include /etc/firejail/transmission-qt.local
4 4
5# transmission-qt bittorrent profile 5# transmission-qt bittorrent profile
6noblacklist ${HOME}/.config/transmission 6noblacklist ${HOME}/.config/transmission
7noblacklist ${HOME}/.cache/transmission
8 7
9include /etc/firejail/disable-common.inc 8include /etc/firejail/disable-common.inc
10include /etc/firejail/disable-programs.inc 9include /etc/firejail/disable-programs.inc
diff --git a/etc/transmission-show.profile b/etc/transmission-show.profile
index 0b88789b1..052843882 100644
--- a/etc/transmission-show.profile
+++ b/etc/transmission-show.profile
@@ -4,7 +4,6 @@ include /etc/firejail/transmission-show.local
4 4
5# transmission-show profile 5# transmission-show profile
6noblacklist ${HOME}/.config/transmission 6noblacklist ${HOME}/.config/transmission
7noblacklist ${HOME}/.cache/transmission
8 7
9include /etc/firejail/disable-common.inc 8include /etc/firejail/disable-common.inc
10include /etc/firejail/disable-programs.inc 9include /etc/firejail/disable-programs.inc
diff --git a/etc/vivaldi.profile b/etc/vivaldi.profile
index 2c2fbd9f0..bf6af3926 100644
--- a/etc/vivaldi.profile
+++ b/etc/vivaldi.profile
@@ -4,7 +4,6 @@ include /etc/firejail/vivaldi.local
4 4
5# Vivaldi browser profile 5# Vivaldi browser profile
6noblacklist ~/.config/vivaldi 6noblacklist ~/.config/vivaldi
7noblacklist ~/.cache/vivaldi
8include /etc/firejail/disable-common.inc 7include /etc/firejail/disable-common.inc
9include /etc/firejail/disable-programs.inc 8include /etc/firejail/disable-programs.inc
10include /etc/firejail/disable-devel.inc 9include /etc/firejail/disable-devel.inc
@@ -14,6 +13,4 @@ netfilter
14whitelist ${DOWNLOADS} 13whitelist ${DOWNLOADS}
15mkdir ~/.config/vivaldi 14mkdir ~/.config/vivaldi
16whitelist ~/.config/vivaldi 15whitelist ~/.config/vivaldi
17mkdir ~/.cache/vivaldi
18whitelist ~/.cache/vivaldi
19include /etc/firejail/whitelist-common.inc 16include /etc/firejail/whitelist-common.inc
diff --git a/etc/warzone2100.profile b/etc/warzone2100.profile
index 702097d98..2f4055887 100644
--- a/etc/warzone2100.profile
+++ b/etc/warzone2100.profile
@@ -3,16 +3,17 @@
3include /etc/firejail/warzone2100.local 3include /etc/firejail/warzone2100.local
4 4
5# Firejail profile for warzone2100 5# Firejail profile for warzone2100
6# Currently supports warzone2100-3.1 6noblacklist ~/.warzone2100-3.*
7noblacklist ~/.warzone2100-3.1
8include /etc/firejail/disable-common.inc 7include /etc/firejail/disable-common.inc
9include /etc/firejail/disable-devel.inc 8include /etc/firejail/disable-devel.inc
10include /etc/firejail/disable-passwdmgr.inc 9include /etc/firejail/disable-passwdmgr.inc
11include /etc/firejail/disable-programs.inc 10include /etc/firejail/disable-programs.inc
12 11
13# Whitelist 12# Whitelist
14mkdir ~/.warzone2100-3.1 13#mkdir ~/.warzone2100-3.1
15whitelist ~/.warzone2100-3.1 14whitelist ~/.warzone2100-3.1
15#mkdir ~/.warzone2100-3.2
16whitelist ~/.warzone2100-3.2
16 17
17# Call these options 18# Call these options
18caps.drop all 19caps.drop all
diff --git a/etc/wesnoth.profile b/etc/wesnoth.profile
index 212466f5a..fbb381a86 100644
--- a/etc/wesnoth.profile
+++ b/etc/wesnoth.profile
@@ -4,7 +4,6 @@ include /etc/firejail/wesnoth.local
4 4
5# Whitelist-based profile for "Battle for Wesnoth" (game). 5# Whitelist-based profile for "Battle for Wesnoth" (game).
6noblacklist ${HOME}/.config/wesnoth 6noblacklist ${HOME}/.config/wesnoth
7noblacklist ${HOME}/.cache/wesnoth
8noblacklist ${HOME}/.local/share/wesnoth 7noblacklist ${HOME}/.local/share/wesnoth
9 8
10include /etc/firejail/disable-common.inc 9include /etc/firejail/disable-common.inc
@@ -23,8 +22,6 @@ private-tmp
23 22
24mkdir ${HOME}/.local/share/wesnoth 23mkdir ${HOME}/.local/share/wesnoth
25mkdir ${HOME}/.config/wesnoth 24mkdir ${HOME}/.config/wesnoth
26mkdir ${HOME}/.cache/wesnoth
27whitelist ${HOME}/.local/share/wesnoth 25whitelist ${HOME}/.local/share/wesnoth
28whitelist ${HOME}/.config/wesnoth 26whitelist ${HOME}/.config/wesnoth
29whitelist ${HOME}/.cache/wesnoth
30include /etc/firejail/whitelist-common.inc 27include /etc/firejail/whitelist-common.inc
diff --git a/etc/whitelist-common.inc b/etc/whitelist-common.inc
index cf7797100..516f47041 100644
--- a/etc/whitelist-common.inc
+++ b/etc/whitelist-common.inc
@@ -19,7 +19,6 @@ whitelist ~/.fonts.conf
19whitelist ~/.fonts.conf.d 19whitelist ~/.fonts.conf.d
20whitelist ~/.local/share/fonts 20whitelist ~/.local/share/fonts
21whitelist ~/.config/fontconfig 21whitelist ~/.config/fontconfig
22whitelist ~/.cache/fontconfig
23 22
24# gtk 23# gtk
25whitelist ~/.gtkrc 24whitelist ~/.gtkrc
diff --git a/etc/xreader.profile b/etc/xreader.profile
index 2e6015aef..51dbcad51 100644
--- a/etc/xreader.profile
+++ b/etc/xreader.profile
@@ -4,7 +4,6 @@ include /etc/firejail/xreader.local
4 4
5# Xreader profile 5# Xreader profile
6noblacklist ~/.config/xreader 6noblacklist ~/.config/xreader
7noblacklist ~/.cache/xreader
8noblacklist ~/.local/share 7noblacklist ~/.local/share
9 8
10include /etc/firejail/disable-common.inc 9include /etc/firejail/disable-common.inc
diff --git a/platform/debian/control b/platform/debian/control
index 991abb656..4287d6561 100644
--- a/platform/debian/control
+++ b/platform/debian/control
@@ -4,6 +4,7 @@ Architecture: amd64
4Maintainer: netblue30 <netblue30@yahoo.com> 4Maintainer: netblue30 <netblue30@yahoo.com>
5Installed-Size: 272 5Installed-Size: 272
6Depends: libc6 6Depends: libc6
7Suggests: python, python3
7Section: admin 8Section: admin
8Priority: extra 9Priority: extra
9Homepage: http://github.com/netblue30/firejail 10Homepage: http://github.com/netblue30/firejail
@@ -17,4 +18,3 @@ Description: Linux namepaces sandbox program.
17 Firejail also expands the restricted shell facility found in bash by 18 Firejail also expands the restricted shell facility found in bash by
18 adding Linux namespace support. It also supports sandboxing SSH users 19 adding Linux namespace support. It also supports sandboxing SSH users
19 upon login. 20 upon login.
20
diff --git a/platform/debian/copyright b/platform/debian/copyright
index 4fd3a15d1..83952080f 100644
--- a/platform/debian/copyright
+++ b/platform/debian/copyright
@@ -7,7 +7,7 @@ This is the Debian/Ubuntu prepackaged version of firejail.
7 and networking stack isolation, and it runs on any recent Linux system. It 7 and networking stack isolation, and it runs on any recent Linux system. It
8 includes a sandbox profile for Mozilla Firefox. 8 includes a sandbox profile for Mozilla Firefox.
9 9
10 Copyright (C) 2014,2015 Firejail Authors (see README file for more details) 10 Copyright (C) 2014-2017 Firejail Authors (see README file for more details)
11 11
12 This program is free software; you can redistribute it and/or modify 12 This program is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by 13 it under the terms of the GNU General Public License as published by
@@ -27,4 +27,3 @@ The complete text of the GNU General Public License can be found
27in /usr/share/common-licenses/GPL-2. 27in /usr/share/common-licenses/GPL-2.
28 28
29Homepage: http://github.com/netblue30/firejail. 29Homepage: http://github.com/netblue30/firejail.
30
diff --git a/src/firejail/firejail.h b/src/firejail/firejail.h
index fa6ba5c6a..f85560588 100644
--- a/src/firejail/firejail.h
+++ b/src/firejail/firejail.h
@@ -407,6 +407,7 @@ void fs_overlayfs(void);
407// chroot into an existing directory; mount exiting /dev and update /etc/resolv.conf 407// chroot into an existing directory; mount exiting /dev and update /etc/resolv.conf
408void fs_chroot(const char *rootdir); 408void fs_chroot(const char *rootdir);
409void fs_check_chroot_dir(const char *rootdir); 409void fs_check_chroot_dir(const char *rootdir);
410void fs_cache(void);
410 411
411// profile.c 412// profile.c
412// find and read the profile specified by name from dir directory 413// find and read the profile specified by name from dir directory
diff --git a/src/firejail/main.c b/src/firejail/main.c
index aead29957..db9a9c8cb 100644
--- a/src/firejail/main.c
+++ b/src/firejail/main.c
@@ -2472,32 +2472,34 @@ int main(int argc, char **argv) {
2472 sprintf(ptr, "%d %d 1\n", gid, gid); 2472 sprintf(ptr, "%d %d 1\n", gid, gid);
2473 ptr += strlen(ptr); 2473 ptr += strlen(ptr);
2474 2474
2475 // add tty group 2475 if (!arg_nogroups) {
2476 gid_t g = get_group_id("tty"); 2476 // add tty group
2477 if (g) { 2477 gid_t g = get_group_id("tty");
2478 sprintf(ptr, "%d %d 1\n", g, g); 2478 if (g) {
2479 ptr += strlen(ptr); 2479 sprintf(ptr, "%d %d 1\n", g, g);
2480 } 2480 ptr += strlen(ptr);
2481 2481 }
2482 // add audio group 2482
2483 g = get_group_id("audio"); 2483 // add audio group
2484 if (g) { 2484 g = get_group_id("audio");
2485 sprintf(ptr, "%d %d 1\n", g, g); 2485 if (g) {
2486 ptr += strlen(ptr); 2486 sprintf(ptr, "%d %d 1\n", g, g);
2487 } 2487 ptr += strlen(ptr);
2488 2488 }
2489 // add video group 2489
2490 g = get_group_id("video"); 2490 // add video group
2491 if (g) { 2491 g = get_group_id("video");
2492 sprintf(ptr, "%d %d 1\n", g, g); 2492 if (g) {
2493 ptr += strlen(ptr); 2493 sprintf(ptr, "%d %d 1\n", g, g);
2494 } 2494 ptr += strlen(ptr);
2495 2495 }
2496 // add games group 2496
2497 g = get_group_id("games"); 2497 // add games group
2498 if (g) { 2498 g = get_group_id("games");
2499 sprintf(ptr, "%d %d 1\n", g, g); 2499 if (g) {
2500 } 2500 sprintf(ptr, "%d %d 1\n", g, g);
2501 }
2502 }
2501 2503
2502 EUID_ROOT(); 2504 EUID_ROOT();
2503 update_map(gidmap, map_path); 2505 update_map(gidmap, map_path);
diff --git a/src/firejail/restrict_users.c b/src/firejail/restrict_users.c
index 774e2908f..f759e7333 100644
--- a/src/firejail/restrict_users.c
+++ b/src/firejail/restrict_users.c
@@ -167,7 +167,7 @@ static void sanitize_passwd(void) {
167 int rv = sscanf(ptr, "%d:", &uid); 167 int rv = sscanf(ptr, "%d:", &uid);
168 if (rv == 0 || uid < 0) 168 if (rv == 0 || uid < 0)
169 goto errout; 169 goto errout;
170 if (uid < UID_MIN) { 170 if (uid < UID_MIN || uid == 65534) { // on Debian platforms user nobody is 65534
171 fprintf(fpout, "%s", buf); 171 fprintf(fpout, "%s", buf);
172 continue; 172 continue;
173 } 173 }
@@ -299,7 +299,7 @@ static void sanitize_group(void) {
299 int rv = sscanf(ptr, "%d:", &gid); 299 int rv = sscanf(ptr, "%d:", &gid);
300 if (rv == 0 || gid < 0) 300 if (rv == 0 || gid < 0)
301 goto errout; 301 goto errout;
302 if (gid < GID_MIN) { 302 if (gid < GID_MIN || gid == 65534) { // on Debian platforms 65534 is group nogroup
303 if (copy_line(fpout, buf, ptr)) 303 if (copy_line(fpout, buf, ptr))
304 goto errout; 304 goto errout;
305 continue; 305 continue;
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c
index f26f8b06a..d1557e8b2 100644
--- a/src/firejail/sandbox.c
+++ b/src/firejail/sandbox.c
@@ -742,6 +742,20 @@ int sandbox(void* sandbox_arg) {
742 else { 742 else {
743 // private-tmp is implemented as a whitelist 743 // private-tmp is implemented as a whitelist
744 EUID_USER(); 744 EUID_USER();
745 // check XAUTHORITY file, KDE keeps it under /tmp
746 char *xauth = getenv("XAUTHORITY");
747 if (xauth) {
748 char *rp = realpath(xauth, NULL);
749 if (rp && strncmp(rp, "/tmp/", 5) == 0) {
750 char *cmd;
751 if (asprintf(&cmd, "whitelist %s", rp) == -1)
752 errExit("asprintf");
753 profile_add(cmd); // profile_add does not duplicate the string
754 }
755 if (rp)
756 free(rp);
757 }
758 // whitelist x11 directory
745 profile_add("whitelist /tmp/.X11-unix"); 759 profile_add("whitelist /tmp/.X11-unix");
746 EUID_ROOT(); 760 EUID_ROOT();
747 } 761 }