diff options
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | RELNOTES | 3 | ||||
-rw-r--r-- | etc/inc/disable-programs.inc | 6 | ||||
-rw-r--r-- | etc/profile-a-l/bcompare.profile | 62 | ||||
-rw-r--r-- | etc/profile-a-l/dolphin-emu.profile | 1 | ||||
-rw-r--r-- | etc/profile-a-l/jami-gnome.profile | 42 | ||||
-rw-r--r-- | etc/profile-m-z/PCSX2.profile | 57 | ||||
-rw-r--r-- | etc/profile-m-z/PPSSPPSDL.profile | 9 | ||||
-rw-r--r-- | etc/profile-m-z/man.profile | 2 | ||||
-rw-r--r-- | etc/profile-m-z/nodejs-common.profile | 4 | ||||
-rw-r--r-- | etc/profile-m-z/openmw-launcher.profile | 7 | ||||
-rw-r--r-- | etc/profile-m-z/openmw.profile | 61 | ||||
-rw-r--r-- | etc/profile-m-z/pcsxr.profile | 57 | ||||
-rw-r--r-- | etc/profile-m-z/ppsspp.profile | 14 | ||||
-rw-r--r-- | src/firecfg/firecfg.config | 6 | ||||
-rw-r--r-- | src/firejail/sandbox.c | 10 |
16 files changed, 334 insertions, 12 deletions
@@ -330,5 +330,6 @@ Stats: | |||
330 | 330 | ||
331 | ### New profiles: | 331 | ### New profiles: |
332 | 332 | ||
333 | vmware-view, display-im6.q16, ipcalc, ipcalc-ng, ebook-convert, ebook-edit, ebook-meta, ebook-polish, lzop. | 333 | vmware-view, display-im6.q16, ipcalc, ipcalc-ng, ebook-convert, ebook-edit, ebook-meta, ebook-polish, lzop, |
334 | avidemux, calligragemini, vmware-player, vmware-workstation, gget, com.github.phase1geo.minder, nextcloud-desktop | 334 | avidemux, calligragemini, vmware-player, vmware-workstation, gget, com.github.phase1geo.minder, nextcloud-desktop, |
335 | pcsxr, PPSSPPSDL, openmw, openmw-launcher, jami-gnome, PCSX2 | ||
@@ -15,7 +15,8 @@ firejail (0.9.65) baseline; urgency=low | |||
15 | * new profiles: vmware-view, display-im6.q16, ipcalc, ipcalc-ng | 15 | * new profiles: vmware-view, display-im6.q16, ipcalc, ipcalc-ng |
16 | * ebook-convert, ebook-edit, ebook-meta, ebook-polish, lzop, | 16 | * ebook-convert, ebook-edit, ebook-meta, ebook-polish, lzop, |
17 | * avidemux, calligragemini, vmware-player, vmware-workstation | 17 | * avidemux, calligragemini, vmware-player, vmware-workstation |
18 | * gget, com.github.phase1geo.minder, nextcloud-desktop | 18 | * gget, com.github.phase1geo.minder, nextcloud-desktop, pcsxr |
19 | * PPSSPPSDL, openmw, openmw-launcher, jami-gnome, PCSX2 | ||
19 | -- netblue30 <netblue30@yahoo.com> Tue, 9 Feb 2021 09:00:00 -0500 | 20 | -- netblue30 <netblue30@yahoo.com> Tue, 9 Feb 2021 09:00:00 -0500 |
20 | 21 | ||
21 | firejail (0.9.64.4) baseline; urgency=low | 22 | firejail (0.9.64.4) baseline; urgency=low |
diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc index 7a37c9fb4..ca3fcd216 100644 --- a/etc/inc/disable-programs.inc +++ b/etc/inc/disable-programs.inc | |||
@@ -166,6 +166,7 @@ blacklist ${HOME}/.config/aweather | |||
166 | blacklist ${HOME}/.config/backintime | 166 | blacklist ${HOME}/.config/backintime |
167 | blacklist ${HOME}/.config/baloofilerc | 167 | blacklist ${HOME}/.config/baloofilerc |
168 | blacklist ${HOME}/.config/baloorc | 168 | blacklist ${HOME}/.config/baloorc |
169 | blacklist ${HOME}/.config/bcompare | ||
169 | blacklist ${HOME}/.config/blender | 170 | blacklist ${HOME}/.config/blender |
170 | blacklist ${HOME}/.config/bless | 171 | blacklist ${HOME}/.config/bless |
171 | blacklist ${HOME}/.config/bnox | 172 | blacklist ${HOME}/.config/bnox |
@@ -267,6 +268,7 @@ blacklist ${HOME}/.config/inkscape | |||
267 | blacklist ${HOME}/.config/inox | 268 | blacklist ${HOME}/.config/inox |
268 | blacklist ${HOME}/.config/iridium | 269 | blacklist ${HOME}/.config/iridium |
269 | blacklist ${HOME}/.config/itch | 270 | blacklist ${HOME}/.config/itch |
271 | blacklist ${HOME}/.config/jami | ||
270 | blacklist ${HOME}/.config/jd-gui.cfg | 272 | blacklist ${HOME}/.config/jd-gui.cfg |
271 | blacklist ${HOME}/.config/k3brc | 273 | blacklist ${HOME}/.config/k3brc |
272 | blacklist ${HOME}/.config/kaffeinerc | 274 | blacklist ${HOME}/.config/kaffeinerc |
@@ -346,6 +348,7 @@ blacklist ${HOME}/.config/okularrc | |||
346 | blacklist ${HOME}/.config/onboard | 348 | blacklist ${HOME}/.config/onboard |
347 | blacklist ${HOME}/.config/onionshare | 349 | blacklist ${HOME}/.config/onionshare |
348 | blacklist ${HOME}/.config/onlyoffice | 350 | blacklist ${HOME}/.config/onlyoffice |
351 | blacklist ${HOME}/.config/openmw | ||
349 | blacklist ${HOME}/.config/opera | 352 | blacklist ${HOME}/.config/opera |
350 | blacklist ${HOME}/.config/opera-beta | 353 | blacklist ${HOME}/.config/opera-beta |
351 | blacklist ${HOME}/.config/orage | 354 | blacklist ${HOME}/.config/orage |
@@ -662,6 +665,7 @@ blacklist ${HOME}/.local/share/gradio | |||
662 | blacklist ${HOME}/.local/share/gwenview | 665 | blacklist ${HOME}/.local/share/gwenview |
663 | blacklist ${HOME}/.local/share/i2p | 666 | blacklist ${HOME}/.local/share/i2p |
664 | blacklist ${HOME}/.local/share/IntoTheBreach | 667 | blacklist ${HOME}/.local/share/IntoTheBreach |
668 | blacklist ${HOME}/.local/share/jami | ||
665 | blacklist ${HOME}/.local/share/kaffeine | 669 | blacklist ${HOME}/.local/share/kaffeine |
666 | blacklist ${HOME}/.local/share/kalgebra | 670 | blacklist ${HOME}/.local/share/kalgebra |
667 | blacklist ${HOME}/.local/share/kate | 671 | blacklist ${HOME}/.local/share/kate |
@@ -711,6 +715,7 @@ blacklist ${HOME}/.local/share/notes | |||
711 | blacklist ${HOME}/.local/share/ocenaudio | 715 | blacklist ${HOME}/.local/share/ocenaudio |
712 | blacklist ${HOME}/.local/share/okular | 716 | blacklist ${HOME}/.local/share/okular |
713 | blacklist ${HOME}/.local/share/onlyoffice | 717 | blacklist ${HOME}/.local/share/onlyoffice |
718 | blacklist ${HOME}/.local/share/openmw | ||
714 | blacklist ${HOME}/.local/share/orage | 719 | blacklist ${HOME}/.local/share/orage |
715 | blacklist ${HOME}/.local/share/org.kde.gwenview | 720 | blacklist ${HOME}/.local/share/org.kde.gwenview |
716 | blacklist ${HOME}/.local/share/Paradox Interactive | 721 | blacklist ${HOME}/.local/share/Paradox Interactive |
@@ -794,6 +799,7 @@ blacklist ${HOME}/.opera-beta | |||
794 | blacklist ${HOME}/.ostrichriders | 799 | blacklist ${HOME}/.ostrichriders |
795 | blacklist ${HOME}/.paradoxinteractive | 800 | blacklist ${HOME}/.paradoxinteractive |
796 | blacklist ${HOME}/.parallelrealities/blobwars | 801 | blacklist ${HOME}/.parallelrealities/blobwars |
802 | blacklist ${HOME}/.pcsxr | ||
797 | blacklist ${HOME}/.penguin-command | 803 | blacklist ${HOME}/.penguin-command |
798 | blacklist ${HOME}/.pingus | 804 | blacklist ${HOME}/.pingus |
799 | blacklist ${HOME}/.pioneer | 805 | blacklist ${HOME}/.pioneer |
diff --git a/etc/profile-a-l/bcompare.profile b/etc/profile-a-l/bcompare.profile new file mode 100644 index 000000000..178e2dc9f --- /dev/null +++ b/etc/profile-a-l/bcompare.profile | |||
@@ -0,0 +1,62 @@ | |||
1 | # Firejail profile for Beyond Compare by Scooter Software | ||
2 | # Description: directory and file compare utility | ||
3 | # Disables the network, which only impacts checking for updates. | ||
4 | # This file is overwritten after every install/update | ||
5 | # Persistent local customizations | ||
6 | include bcompare.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | noblacklist ${HOME}/.config/bcompare | ||
11 | # In case the user decides to include disable-programs.inc, still allow | ||
12 | # KDE's Gwenview to view images via right click -> Open With -> Associated Application | ||
13 | noblacklist ${HOME}/.config/gwenviewrc | ||
14 | |||
15 | # Uncomment the next line (or put it into your bcompare.local) if you don't need to compare files in disable-common.inc | ||
16 | #include disable-common.inc | ||
17 | include disable-devel.inc | ||
18 | include disable-exec.inc | ||
19 | include disable-interpreters.inc | ||
20 | include disable-passwdmgr.inc | ||
21 | # Uncomment the next line (or put it into your bcompare.local) if you don't need to compare files in disable-programs.inc | ||
22 | #include disable-programs.inc | ||
23 | # Uncommenting this breaks launch | ||
24 | # include disable-shell.inc | ||
25 | include disable-write-mnt.inc | ||
26 | # Don't disable ${DOCUMENTS}, ${MUSIC}, ${PICTURES}, ${VIDEOS} | ||
27 | # include disable-xdg.inc | ||
28 | |||
29 | # include whitelist-common.inc | ||
30 | # include whitelist-runuser-common.inc | ||
31 | # include whitelist-usr-share-common.inc | ||
32 | # include whitelist-var-common.inc | ||
33 | |||
34 | apparmor | ||
35 | caps.drop all | ||
36 | # Uncommenting might break Pulse Audio | ||
37 | #machine-id | ||
38 | net none | ||
39 | no3d | ||
40 | nodvd | ||
41 | nogroups | ||
42 | nonewprivs | ||
43 | noroot | ||
44 | # Allow applications launched on sound files to play them | ||
45 | #nosound | ||
46 | notv | ||
47 | nou2f | ||
48 | novideo | ||
49 | protocol unix | ||
50 | seccomp | ||
51 | shell none | ||
52 | tracelog | ||
53 | |||
54 | private-cache | ||
55 | private-dev | ||
56 | # see /usr/share/doc/firejail/profile.template for more common private-etc paths. | ||
57 | # private-etc alternatives,fonts,machine-id | ||
58 | # Necessary because of the `include disable-exec.inc` line. Prevents error "Error fstat: fs.c:504 fs_remount_simple: Transport endpoint is not connected ... cannot sync with peer: unexpected EOF Peer [...] unexpectedly exited with status 1" | ||
59 | private-tmp | ||
60 | |||
61 | dbus-user none | ||
62 | dbus-system none | ||
diff --git a/etc/profile-a-l/dolphin-emu.profile b/etc/profile-a-l/dolphin-emu.profile index 13d830b55..fc920a065 100644 --- a/etc/profile-a-l/dolphin-emu.profile +++ b/etc/profile-a-l/dolphin-emu.profile | |||
@@ -18,6 +18,7 @@ include disable-exec.inc | |||
18 | include disable-interpreters.inc | 18 | include disable-interpreters.inc |
19 | include disable-passwdmgr.inc | 19 | include disable-passwdmgr.inc |
20 | include disable-programs.inc | 20 | include disable-programs.inc |
21 | include disable-write-mnt.inc | ||
21 | include disable-xdg.inc | 22 | include disable-xdg.inc |
22 | 23 | ||
23 | mkdir ${HOME}/.cache/dolphin-emu | 24 | mkdir ${HOME}/.cache/dolphin-emu |
diff --git a/etc/profile-a-l/jami-gnome.profile b/etc/profile-a-l/jami-gnome.profile new file mode 100644 index 000000000..226bb0008 --- /dev/null +++ b/etc/profile-a-l/jami-gnome.profile | |||
@@ -0,0 +1,42 @@ | |||
1 | # Firejail profile for jami-gnome | ||
2 | # Description: An encrypted peer-to-peer messenger | ||
3 | # This file is overwritten after every install/update | ||
4 | # Persistent local customizations | ||
5 | include jami-gnome.local | ||
6 | # Persistent global definitions | ||
7 | include globals.local | ||
8 | |||
9 | noblacklist ${HOME}/.config/jami | ||
10 | noblacklist ${HOME}/.local/share/jami | ||
11 | |||
12 | include disable-common.inc | ||
13 | include disable-devel.inc | ||
14 | include disable-exec.inc | ||
15 | #include disable-interpreters.inc | ||
16 | include disable-passwdmgr.inc | ||
17 | include disable-programs.inc | ||
18 | |||
19 | mkdir ${HOME}/.config/jami | ||
20 | mkdir ${HOME}/.local/share/jami | ||
21 | whitelist ${HOME}/.config/jami | ||
22 | whitelist ${HOME}/.local/share/jami | ||
23 | include whitelist-common.inc | ||
24 | include whitelist-var-common.inc | ||
25 | |||
26 | caps.drop all | ||
27 | ipc-namespace | ||
28 | netfilter | ||
29 | nodvd | ||
30 | nogroups | ||
31 | nonewprivs | ||
32 | noroot | ||
33 | notv | ||
34 | protocol unix,inet,inet6,netlink | ||
35 | seccomp | ||
36 | shell none | ||
37 | |||
38 | disable-mnt | ||
39 | private-dev | ||
40 | private-tmp | ||
41 | |||
42 | env QT_QPA_PLATFORM=xcb | ||
diff --git a/etc/profile-m-z/PCSX2.profile b/etc/profile-m-z/PCSX2.profile new file mode 100644 index 000000000..b2687ba3c --- /dev/null +++ b/etc/profile-m-z/PCSX2.profile | |||
@@ -0,0 +1,57 @@ | |||
1 | # Firejail profile for PCSX2 | ||
2 | # Description: A PlayStation 2 emulator | ||
3 | # This file is overwritten after every install/update | ||
4 | # Persistent local customizations | ||
5 | include PCSX2.local | ||
6 | # Persistent global definitions | ||
7 | include globals.local | ||
8 | |||
9 | # Note: you must whitelist your games folder in a PCSX2.local | ||
10 | |||
11 | noblacklist ${HOME}/.config/PCSX2 | ||
12 | |||
13 | include disable-common.inc | ||
14 | include disable-devel.inc | ||
15 | include disable-exec.inc | ||
16 | include disable-interpreters.inc | ||
17 | include disable-passwdmgr.inc | ||
18 | include disable-programs.inc | ||
19 | include disable-shell.inc | ||
20 | include disable-write-mnt.inc | ||
21 | include disable-xdg.inc | ||
22 | |||
23 | mkdir ${HOME}/.config/PCSX2 | ||
24 | whitelist ${HOME}/.config/PCSX2 | ||
25 | include whitelist-common.inc | ||
26 | include whitelist-runuser-common.inc | ||
27 | include whitelist-usr-share-common.inc | ||
28 | include whitelist-var-common.inc | ||
29 | |||
30 | apparmor | ||
31 | caps.drop all | ||
32 | ipc-namespace | ||
33 | net none | ||
34 | netfilter | ||
35 | # Uncomment the following line if not loading games from disc | ||
36 | #nodvd | ||
37 | nogroups | ||
38 | nonewprivs | ||
39 | noroot | ||
40 | notv | ||
41 | nou2f | ||
42 | novideo | ||
43 | protocol unix,netlink | ||
44 | #seccomp - breaks loading with no logs | ||
45 | shell none | ||
46 | #tracelog - 32/64 bit incompatibility | ||
47 | |||
48 | private-bin PCSX2 | ||
49 | private-cache | ||
50 | # uncomment the following line if you do not need controller support | ||
51 | #private-dev | ||
52 | private-etc alsa,alternatives,asound.conf,bumblebee,ca-certificates,crypto-policies,dconf,drirc,fonts,gconf,glvnd,gtk-2.0,gtk-3.0,host.conf,hostname,hosts,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,machine-id,mime.types,nsswitch.conf,nvidia,pango,pki,protocols,pulse,resolv.conf,rpc,services,ssl,X11,xdg | ||
53 | private-opt none | ||
54 | private-tmp | ||
55 | |||
56 | dbus-user none | ||
57 | dbus-system none | ||
diff --git a/etc/profile-m-z/PPSSPPSDL.profile b/etc/profile-m-z/PPSSPPSDL.profile new file mode 100644 index 000000000..deb00a436 --- /dev/null +++ b/etc/profile-m-z/PPSSPPSDL.profile | |||
@@ -0,0 +1,9 @@ | |||
1 | # Firejail profile for PPSSPPSDL | ||
2 | # This file is overwritten after every install/update | ||
3 | # Persistent local customizations | ||
4 | include PPSSPPSDL.local | ||
5 | # added by included profile | ||
6 | #include globals.local | ||
7 | |||
8 | # Redirect | ||
9 | include ppsspp.profile | ||
diff --git a/etc/profile-m-z/man.profile b/etc/profile-m-z/man.profile index c6c50cf47..965750bf0 100644 --- a/etc/profile-m-z/man.profile +++ b/etc/profile-m-z/man.profile | |||
@@ -57,7 +57,7 @@ disable-mnt | |||
57 | #private-bin apropos,bash,cat,catman,col,gpreconv,groff,grotty,gunzip,gzip,less,man,most,nroff,preconv,sed,sh,tbl,tr,troff,whatis,which,xtotroff,zcat,zsoelim | 57 | #private-bin apropos,bash,cat,catman,col,gpreconv,groff,grotty,gunzip,gzip,less,man,most,nroff,preconv,sed,sh,tbl,tr,troff,whatis,which,xtotroff,zcat,zsoelim |
58 | private-cache | 58 | private-cache |
59 | private-dev | 59 | private-dev |
60 | private-etc alternatives,fonts,locale,locale.alias,locale.conf,man_db.conf,manpath.config,selinux,sysless,xdg | 60 | private-etc alternatives,fonts,groff,locale,locale.alias,locale.conf,man_db.conf,manpath.config,selinux,sysless,xdg |
61 | private-tmp | 61 | private-tmp |
62 | 62 | ||
63 | dbus-user none | 63 | dbus-user none |
diff --git a/etc/profile-m-z/nodejs-common.profile b/etc/profile-m-z/nodejs-common.profile index c12fc9a78..202905631 100644 --- a/etc/profile-m-z/nodejs-common.profile +++ b/etc/profile-m-z/nodejs-common.profile | |||
@@ -1,5 +1,5 @@ | |||
1 | # Firejail profile for Node.js | 1 | # Firejail profile for Node.js |
2 | # Description: Common profile for npm/yarn | 2 | # Description: Asynchronous event-driven JavaScript runtime |
3 | # This file is overwritten after every install/update | 3 | # This file is overwritten after every install/update |
4 | # Persistent local customizations | 4 | # Persistent local customizations |
5 | include nodejs-common.local | 5 | include nodejs-common.local |
@@ -45,7 +45,9 @@ shell none | |||
45 | 45 | ||
46 | disable-mnt | 46 | disable-mnt |
47 | private-dev | 47 | private-dev |
48 | # May need to add `passwd` to `private-etc` below to enable debugging with some IDEs | ||
48 | private-etc alternatives,ca-certificates,crypto-policies,host.conf,hostname,hosts,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,login.defs,mime.types,nsswitch.conf,pki,protocols,resolv.conf,rpc,services,ssl,xdg | 49 | private-etc alternatives,ca-certificates,crypto-policies,host.conf,hostname,hosts,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,login.defs,mime.types,nsswitch.conf,pki,protocols,resolv.conf,rpc,services,ssl,xdg |
50 | # May need to be commented out in order to enable debugging with some IDEs | ||
49 | private-tmp | 51 | private-tmp |
50 | 52 | ||
51 | dbus-user none | 53 | dbus-user none |
diff --git a/etc/profile-m-z/openmw-launcher.profile b/etc/profile-m-z/openmw-launcher.profile new file mode 100644 index 000000000..c9cc144e4 --- /dev/null +++ b/etc/profile-m-z/openmw-launcher.profile | |||
@@ -0,0 +1,7 @@ | |||
1 | # Firejail profile for openmw-launcher | ||
2 | # This file is overwritten after every install/update | ||
3 | # Persistent local customizations | ||
4 | include openmw-launcher.local | ||
5 | |||
6 | # Redirect | ||
7 | include openmw.profile | ||
diff --git a/etc/profile-m-z/openmw.profile b/etc/profile-m-z/openmw.profile new file mode 100644 index 000000000..270d64c1e --- /dev/null +++ b/etc/profile-m-z/openmw.profile | |||
@@ -0,0 +1,61 @@ | |||
1 | # Firejail profile for openmw | ||
2 | # Description: Open source engine re-implementation for Morrowind | ||
3 | # This file is overwritten after every install/update | ||
4 | # Persistent local customizations | ||
5 | include openmw.local | ||
6 | # Persistent global definitions | ||
7 | include globals.local | ||
8 | |||
9 | noblacklist ${HOME}/.config/openmw | ||
10 | noblacklist ${HOME}/.local/share/openmw | ||
11 | |||
12 | include disable-common.inc | ||
13 | include disable-devel.inc | ||
14 | include disable-exec.inc | ||
15 | include disable-interpreters.inc | ||
16 | include disable-passwdmgr.inc | ||
17 | include disable-programs.inc | ||
18 | include disable-shell.inc | ||
19 | include disable-write-mnt.inc | ||
20 | include disable-xdg.inc | ||
21 | |||
22 | mkdir ${HOME}/.config/openmw | ||
23 | mkdir ${HOME}/.local/share/openmw | ||
24 | whitelist ${HOME}/.config/openmw | ||
25 | # Copy Morrowind data files into the following directory or load it from /mnt | ||
26 | # or whitelist it in a openmw.local | ||
27 | whitelist ${HOME}/.local/share/openmw | ||
28 | whitelist /usr/share/openmw | ||
29 | include whitelist-common.inc | ||
30 | include whitelist-runuser-common.inc | ||
31 | include whitelist-usr-share-common.inc | ||
32 | include whitelist-var-common.inc | ||
33 | |||
34 | apparmor | ||
35 | caps.drop all | ||
36 | ipc-namespace | ||
37 | net none | ||
38 | netfilter | ||
39 | # Uncomment the following line if installing from disc | ||
40 | nodvd | ||
41 | nogroups | ||
42 | nonewprivs | ||
43 | noroot | ||
44 | notv | ||
45 | nou2f | ||
46 | novideo | ||
47 | protocol unix,netlink | ||
48 | seccomp | ||
49 | seccomp.block-secondary | ||
50 | shell none | ||
51 | tracelog | ||
52 | |||
53 | private-bin bsatool,esmtool,niftest,openmw,openmw-cs,openmw-essimporter,openmw-iniimporter,openmw-launcher,openmw-wizard | ||
54 | private-cache | ||
55 | private-dev | ||
56 | private-etc alsa,alternatives,asound.conf,bumblebee,drirc,fonts,glvnd,group,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,machine-id,mime.types,nvidia,openmw,pango,passwd,pulse,Trolltech.conf,X11,xdg | ||
57 | private-opt none | ||
58 | private-tmp | ||
59 | |||
60 | dbus-user none | ||
61 | dbus-system none | ||
diff --git a/etc/profile-m-z/pcsxr.profile b/etc/profile-m-z/pcsxr.profile new file mode 100644 index 000000000..c25c4ae66 --- /dev/null +++ b/etc/profile-m-z/pcsxr.profile | |||
@@ -0,0 +1,57 @@ | |||
1 | # Firejail profile for pcsxr | ||
2 | # Description: A PlayStation emulator | ||
3 | # This file is overwritten after every install/update | ||
4 | # Persistent local customizations | ||
5 | include pcsxr.local | ||
6 | # Persistent global definitions | ||
7 | include globals.local | ||
8 | |||
9 | # Note: you must whitelist your games folder in a pcsxr.local | ||
10 | |||
11 | noblacklist ${HOME}/.pcsxr | ||
12 | |||
13 | include disable-common.inc | ||
14 | include disable-devel.inc | ||
15 | include disable-exec.inc | ||
16 | include disable-interpreters.inc | ||
17 | include disable-passwdmgr.inc | ||
18 | include disable-programs.inc | ||
19 | include disable-shell.inc | ||
20 | include disable-write-mnt.inc | ||
21 | include disable-xdg.inc | ||
22 | |||
23 | mkdir ${HOME}/.pcsxr | ||
24 | whitelist ${HOME}/.pcsxr | ||
25 | include whitelist-common.inc | ||
26 | include whitelist-runuser-common.inc | ||
27 | include whitelist-usr-share-common.inc | ||
28 | include whitelist-var-common.inc | ||
29 | |||
30 | apparmor | ||
31 | caps.drop all | ||
32 | ipc-namespace | ||
33 | net none | ||
34 | netfilter | ||
35 | # Uncomment the following line if not loading games from disc | ||
36 | #nodvd | ||
37 | nogroups | ||
38 | nonewprivs | ||
39 | noroot | ||
40 | notv | ||
41 | nou2f | ||
42 | novideo | ||
43 | protocol unix,netlink | ||
44 | seccomp | ||
45 | shell none | ||
46 | tracelog | ||
47 | |||
48 | private-bin pcsxr | ||
49 | private-cache | ||
50 | # uncomment the following line if you do not need controller support | ||
51 | #private-dev | ||
52 | private-etc alsa,alternatives,asound.conf,bumblebee,ca-certificates,crypto-policies,dconf,drirc,fonts,gconf,glvnd,gtk-2.0,gtk-3.0,host.conf,hostname,hosts,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,machine-id,mime.types,nsswitch.conf,nvidia,pango,pki,protocols,pulse,resolv.conf,rpc,services,ssl,X11,xdg | ||
53 | private-opt none | ||
54 | private-tmp | ||
55 | |||
56 | dbus-user none | ||
57 | dbus-system none | ||
diff --git a/etc/profile-m-z/ppsspp.profile b/etc/profile-m-z/ppsspp.profile index c71553bcd..263d99c83 100644 --- a/etc/profile-m-z/ppsspp.profile +++ b/etc/profile-m-z/ppsspp.profile | |||
@@ -1,13 +1,14 @@ | |||
1 | # Firejail profile for ppsspp | 1 | # Firejail profile for ppsspp |
2 | # Description: A PSP emulator written in C++ | 2 | # Description: A PSP emulator |
3 | # This file is overwritten after every install/update | 3 | # This file is overwritten after every install/update |
4 | # Persistent local customizations | 4 | # Persistent local customizations |
5 | include ppsspp.local | 5 | include ppsspp.local |
6 | # Persistent global definitions | 6 | # Persistent global definitions |
7 | include globals.local | 7 | include globals.local |
8 | 8 | ||
9 | # Note: you must whitelist your games folder in a ppsspp.local | ||
10 | |||
9 | noblacklist ${HOME}/.config/ppsspp | 11 | noblacklist ${HOME}/.config/ppsspp |
10 | noblacklist ${DOCUMENTS} | ||
11 | 12 | ||
12 | include disable-common.inc | 13 | include disable-common.inc |
13 | include disable-devel.inc | 14 | include disable-devel.inc |
@@ -15,8 +16,15 @@ include disable-exec.inc | |||
15 | include disable-interpreters.inc | 16 | include disable-interpreters.inc |
16 | include disable-passwdmgr.inc | 17 | include disable-passwdmgr.inc |
17 | include disable-programs.inc | 18 | include disable-programs.inc |
19 | include disable-write-mnt.inc | ||
18 | include disable-xdg.inc | 20 | include disable-xdg.inc |
19 | 21 | ||
22 | mkdir ${HOME}/.config/ppsspp | ||
23 | whitelist ${HOME}/.config/ppsspp | ||
24 | whitelist /usr/share/ppsspp | ||
25 | include whitelist-common.inc | ||
26 | include whitelist-runuser-common.inc | ||
27 | include whitelist-usr-share-common.inc | ||
20 | include whitelist-var-common.inc | 28 | include whitelist-var-common.inc |
21 | 29 | ||
22 | caps.drop all | 30 | caps.drop all |
@@ -27,11 +35,13 @@ nogroups | |||
27 | nonewprivs | 35 | nonewprivs |
28 | noroot | 36 | noroot |
29 | notv | 37 | notv |
38 | nou2f | ||
30 | novideo | 39 | novideo |
31 | protocol unix,netlink | 40 | protocol unix,netlink |
32 | seccomp | 41 | seccomp |
33 | shell none | 42 | shell none |
34 | 43 | ||
44 | private-bin ppsspp,PPSSPP,PPSSPPQt,PPSSPPSDL | ||
35 | # uncomment the following line if you do not need controller support | 45 | # uncomment the following line if you do not need controller support |
36 | #private-dev | 46 | #private-dev |
37 | private-etc alternatives,asound.conf,ca-certificates,crypto-policies,drirc,fonts,group,host.conf,hostname,hosts,ld.so.cache,ld.so.preload,localtime,machine-id,nsswitch.conf,passwd,pki,pulse,resolv.conf,ssl | 47 | private-etc alternatives,asound.conf,ca-certificates,crypto-policies,drirc,fonts,group,host.conf,hostname,hosts,ld.so.cache,ld.so.preload,localtime,machine-id,nsswitch.conf,passwd,pki,pulse,resolv.conf,ssl |
diff --git a/src/firecfg/firecfg.config b/src/firecfg/firecfg.config index 3da415b70..6cef32249 100644 --- a/src/firecfg/firecfg.config +++ b/src/firecfg/firecfg.config | |||
@@ -20,7 +20,9 @@ Maelstrom | |||
20 | Maps | 20 | Maps |
21 | Mathematica | 21 | Mathematica |
22 | Natron | 22 | Natron |
23 | PCSX2 | ||
23 | PPSSPPQt | 24 | PPSSPPQt |
25 | PPSSPPSDL | ||
24 | QMediathekView | 26 | QMediathekView |
25 | QOwnNotes | 27 | QOwnNotes |
26 | Screenshot | 28 | Screenshot |
@@ -77,6 +79,7 @@ balsa | |||
77 | baobab | 79 | baobab |
78 | barrier | 80 | barrier |
79 | basilisk | 81 | basilisk |
82 | bcompare | ||
80 | beaker | 83 | beaker |
81 | bibletime | 84 | bibletime |
82 | bijiben | 85 | bijiben |
@@ -582,6 +585,8 @@ openarena | |||
582 | openarena_ded | 585 | openarena_ded |
583 | opencity | 586 | opencity |
584 | openclonk | 587 | openclonk |
588 | openmw | ||
589 | openmw-launcher | ||
585 | openoffice.org | 590 | openoffice.org |
586 | openshot | 591 | openshot |
587 | openshot-qt | 592 | openshot-qt |
@@ -598,6 +603,7 @@ parole | |||
598 | patch | 603 | patch |
599 | pavucontrol | 604 | pavucontrol |
600 | pavucontrol-qt | 605 | pavucontrol-qt |
606 | pcsxr | ||
601 | pdfchain | 607 | pdfchain |
602 | pdfmod | 608 | pdfmod |
603 | pdfsam | 609 | pdfsam |
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c index 60c097cf2..743d84b43 100644 --- a/src/firejail/sandbox.c +++ b/src/firejail/sandbox.c | |||
@@ -630,8 +630,6 @@ int sandbox(void* sandbox_arg) { | |||
630 | errExit("mounting " RUN_FIREJAIL_LIB_DIR); | 630 | errExit("mounting " RUN_FIREJAIL_LIB_DIR); |
631 | // keep a copy of dhclient executable before the filesystem is modified | 631 | // keep a copy of dhclient executable before the filesystem is modified |
632 | dhcp_store_exec(); | 632 | dhcp_store_exec(); |
633 | // mount appimage before the filesystem is modified | ||
634 | appimage_mount(); | ||
635 | 633 | ||
636 | //**************************** | 634 | //**************************** |
637 | // log sandbox data | 635 | // log sandbox data |
@@ -827,6 +825,11 @@ int sandbox(void* sandbox_arg) { | |||
827 | fs_basic_fs(); | 825 | fs_basic_fs(); |
828 | 826 | ||
829 | //**************************** | 827 | //**************************** |
828 | // appimage | ||
829 | //**************************** | ||
830 | appimage_mount(); | ||
831 | |||
832 | //**************************** | ||
830 | // private mode | 833 | // private mode |
831 | //**************************** | 834 | //**************************** |
832 | if (arg_private) { | 835 | if (arg_private) { |
@@ -1155,14 +1158,12 @@ int sandbox(void* sandbox_arg) { | |||
1155 | //**************************** | 1158 | //**************************** |
1156 | // continue security filters | 1159 | // continue security filters |
1157 | //**************************** | 1160 | //**************************** |
1158 | |||
1159 | // set capabilities | 1161 | // set capabilities |
1160 | set_caps(); | 1162 | set_caps(); |
1161 | 1163 | ||
1162 | //**************************************** | 1164 | //**************************************** |
1163 | // relay status information to join option | 1165 | // relay status information to join option |
1164 | //**************************************** | 1166 | //**************************************** |
1165 | |||
1166 | char *set_sandbox_status = create_join_file(); | 1167 | char *set_sandbox_status = create_join_file(); |
1167 | 1168 | ||
1168 | //**************************************** | 1169 | //**************************************** |
@@ -1223,7 +1224,6 @@ int sandbox(void* sandbox_arg) { | |||
1223 | //**************************************** | 1224 | //**************************************** |
1224 | // set cpu affinity | 1225 | // set cpu affinity |
1225 | //**************************************** | 1226 | //**************************************** |
1226 | |||
1227 | if (cfg.cpus) | 1227 | if (cfg.cpus) |
1228 | set_cpu_affinity(); | 1228 | set_cpu_affinity(); |
1229 | 1229 | ||