diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/apparmor/firejail-local | 3 | ||||
-rw-r--r-- | etc/inc/disable-common.inc | 1 | ||||
-rw-r--r-- | etc/inc/disable-programs.inc | 4 | ||||
-rw-r--r-- | etc/profile-a-l/apostrophe.profile | 14 | ||||
-rw-r--r-- | etc/profile-a-l/brave.profile | 5 | ||||
-rw-r--r-- | etc/profile-a-l/dbus-send.profile | 2 | ||||
-rw-r--r-- | etc/profile-a-l/discord-canary.profile | 2 | ||||
-rw-r--r-- | etc/profile-a-l/etr.profile | 2 | ||||
-rw-r--r-- | etc/profile-a-l/exfalso.profile | 54 | ||||
-rw-r--r-- | etc/profile-a-l/file-roller.profile | 4 | ||||
-rw-r--r-- | etc/profile-a-l/firedragon.profile | 26 | ||||
-rw-r--r-- | etc/profile-a-l/flameshot.profile | 8 | ||||
-rw-r--r-- | etc/profile-a-l/librewolf-nightly.profile | 3 | ||||
-rw-r--r-- | etc/profile-a-l/librewolf.profile | 34 | ||||
-rw-r--r-- | etc/profile-a-l/sway.profile | 19 | ||||
-rw-r--r-- | etc/profile-m-z/mumble.profile | 1 | ||||
-rw-r--r-- | etc/profile-m-z/qrencode.profile | 2 | ||||
-rw-r--r-- | etc/profile-m-z/quodlibet.profile | 66 | ||||
-rw-r--r-- | etc/profile-m-z/tmux.profile | 45 | ||||
-rw-r--r-- | etc/templates/profile.template | 3 |
20 files changed, 234 insertions, 64 deletions
diff --git a/etc/apparmor/firejail-local b/etc/apparmor/firejail-local index 7f2a778ab..3dfd3d0ea 100644 --- a/etc/apparmor/firejail-local +++ b/etc/apparmor/firejail-local | |||
@@ -8,5 +8,8 @@ | |||
8 | #owner @HOME/bin/** ix | 8 | #owner @HOME/bin/** ix |
9 | #owner @HOME/.local/bin/** ix | 9 | #owner @HOME/.local/bin/** ix |
10 | 10 | ||
11 | # Uncomment to opt-in to apparmor for brave + tor | ||
12 | #owner @{HOME}/.config/BraveSoftware/Brave-Browser/biahpgbdmdkfgndcmfiipgcebobojjkp/*/** ix, | ||
13 | |||
11 | # Uncomment to opt-in to apparmor for torbrowser-launcher | 14 | # Uncomment to opt-in to apparmor for torbrowser-launcher |
12 | #owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/** ix, | 15 | #owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/** ix, |
diff --git a/etc/inc/disable-common.inc b/etc/inc/disable-common.inc index 52534a9e9..35f89e11b 100644 --- a/etc/inc/disable-common.inc +++ b/etc/inc/disable-common.inc | |||
@@ -34,6 +34,7 @@ blacklist ${HOME}/.config/autostart | |||
34 | blacklist ${HOME}/.config/autostart-scripts | 34 | blacklist ${HOME}/.config/autostart-scripts |
35 | blacklist ${HOME}/.config/awesome | 35 | blacklist ${HOME}/.config/awesome |
36 | blacklist ${HOME}/.config/i3 | 36 | blacklist ${HOME}/.config/i3 |
37 | blacklist ${HOME}/.config/sway | ||
37 | blacklist ${HOME}/.config/lxsession/LXDE/autostart | 38 | blacklist ${HOME}/.config/lxsession/LXDE/autostart |
38 | blacklist ${HOME}/.config/openbox | 39 | blacklist ${HOME}/.config/openbox |
39 | blacklist ${HOME}/.config/plasma-workspace | 40 | blacklist ${HOME}/.config/plasma-workspace |
diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc index 828b5c546..0ca8817cb 100644 --- a/etc/inc/disable-programs.inc +++ b/etc/inc/disable-programs.inc | |||
@@ -380,6 +380,7 @@ blacklist ${HOME}/.config/qBittorrent | |||
380 | blacklist ${HOME}/.config/qBittorrentrc | 380 | blacklist ${HOME}/.config/qBittorrentrc |
381 | blacklist ${HOME}/.config/qnapi.ini | 381 | blacklist ${HOME}/.config/qnapi.ini |
382 | blacklist ${HOME}/.config/qpdfview | 382 | blacklist ${HOME}/.config/qpdfview |
383 | blacklist ${HOME}/.config/quodlibet | ||
383 | blacklist ${HOME}/.config/qupzilla | 384 | blacklist ${HOME}/.config/qupzilla |
384 | blacklist ${HOME}/.config/qutebrowser | 385 | blacklist ${HOME}/.config/qutebrowser |
385 | blacklist ${HOME}/.config/ranger | 386 | blacklist ${HOME}/.config/ranger |
@@ -478,6 +479,7 @@ blacklist ${HOME}/.equalx | |||
478 | blacklist ${HOME}/.ethereum | 479 | blacklist ${HOME}/.ethereum |
479 | blacklist ${HOME}/.etr | 480 | blacklist ${HOME}/.etr |
480 | blacklist ${HOME}/.filezilla | 481 | blacklist ${HOME}/.filezilla |
482 | blacklist ${HOME}/.firedragon | ||
481 | blacklist ${HOME}/.flowblade | 483 | blacklist ${HOME}/.flowblade |
482 | blacklist ${HOME}/.fltk | 484 | blacklist ${HOME}/.fltk |
483 | blacklist ${HOME}/.fossamail | 485 | blacklist ${HOME}/.fossamail |
@@ -921,6 +923,7 @@ blacklist ${HOME}/.cache/Otter | |||
921 | blacklist ${HOME}/.cache/PawelStolowski | 923 | blacklist ${HOME}/.cache/PawelStolowski |
922 | blacklist ${HOME}/.cache/Psi | 924 | blacklist ${HOME}/.cache/Psi |
923 | blacklist ${HOME}/.cache/QuiteRss | 925 | blacklist ${HOME}/.cache/QuiteRss |
926 | blacklist ${HOME}/.cache/quodlibet | ||
924 | blacklist ${HOME}/.cache/Quotient/quaternion | 927 | blacklist ${HOME}/.cache/Quotient/quaternion |
925 | blacklist ${HOME}/.cache/Shortwave | 928 | blacklist ${HOME}/.cache/Shortwave |
926 | blacklist ${HOME}/.cache/Tox | 929 | blacklist ${HOME}/.cache/Tox |
@@ -950,6 +953,7 @@ blacklist ${HOME}/.cache/epiphany | |||
950 | blacklist ${HOME}/.cache/evolution | 953 | blacklist ${HOME}/.cache/evolution |
951 | blacklist ${HOME}/.cache/falkon | 954 | blacklist ${HOME}/.cache/falkon |
952 | blacklist ${HOME}/.cache/feedreader | 955 | blacklist ${HOME}/.cache/feedreader |
956 | blacklist ${HOME}/.cache/firedragon | ||
953 | blacklist ${HOME}/.cache/flaska.net/trojita | 957 | blacklist ${HOME}/.cache/flaska.net/trojita |
954 | blacklist ${HOME}/.cache/folks | 958 | blacklist ${HOME}/.cache/folks |
955 | blacklist ${HOME}/.cache/font-manager | 959 | blacklist ${HOME}/.cache/font-manager |
diff --git a/etc/profile-a-l/apostrophe.profile b/etc/profile-a-l/apostrophe.profile index 4986ac63a..f265c8406 100644 --- a/etc/profile-a-l/apostrophe.profile +++ b/etc/profile-a-l/apostrophe.profile | |||
@@ -6,15 +6,22 @@ include apostrophe.local | |||
6 | # Persistent global definitions | 6 | # Persistent global definitions |
7 | include globals.local | 7 | include globals.local |
8 | 8 | ||
9 | noblacklist ${HOME}/.texlive20* | ||
9 | noblacklist ${DOCUMENTS} | 10 | noblacklist ${DOCUMENTS} |
10 | noblacklist ${PICTURES} | 11 | noblacklist ${PICTURES} |
11 | 12 | ||
12 | # Allow lua (blacklisted by disable-interpreters.inc) | 13 | # Allow lua (blacklisted by disable-interpreters.inc) |
13 | include allow-lua.inc | 14 | include allow-lua.inc |
14 | 15 | ||
16 | # Allow perl (blacklisted by disable-interpreters.inc) | ||
17 | include allow-perl.inc | ||
18 | |||
15 | # Allow python (blacklisted by disable-interpreters.inc) | 19 | # Allow python (blacklisted by disable-interpreters.inc) |
16 | include allow-python3.inc | 20 | include allow-python3.inc |
17 | 21 | ||
22 | # Allow /bin/sh (blacklisted by disable-shell.inc) | ||
23 | include allow-bin-sh.inc | ||
24 | |||
18 | include disable-common.inc | 25 | include disable-common.inc |
19 | include disable-devel.inc | 26 | include disable-devel.inc |
20 | include disable-exec.inc | 27 | include disable-exec.inc |
@@ -25,7 +32,10 @@ include disable-shell.inc | |||
25 | include disable-xdg.inc | 32 | include disable-xdg.inc |
26 | 33 | ||
27 | whitelist /usr/share/apostrophe | 34 | whitelist /usr/share/apostrophe |
35 | whitelist /usr/share/texlive | ||
36 | whitelist /usr/share/texmf | ||
28 | whitelist /usr/share/pandoc-* | 37 | whitelist /usr/share/pandoc-* |
38 | whitelist /usr/share/perl5 | ||
29 | include whitelist-runuser-common.inc | 39 | include whitelist-runuser-common.inc |
30 | include whitelist-usr-share-common.inc | 40 | include whitelist-usr-share-common.inc |
31 | include whitelist-var-common.inc | 41 | include whitelist-var-common.inc |
@@ -49,10 +59,10 @@ shell none | |||
49 | tracelog | 59 | tracelog |
50 | 60 | ||
51 | disable-mnt | 61 | disable-mnt |
52 | private-bin apostrophe,pandoc,python3* | 62 | private-bin apostrophe,fmtutil,kpsewhich,mktexfmt,pandoc,pdftex,perl,python3*,sh,xdvipdfmx,xelatex,xetex |
53 | private-cache | 63 | private-cache |
54 | private-dev | 64 | private-dev |
55 | private-etc alternatives,dconf,fonts,gtk-3.0,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,pango,X11 | 65 | private-etc alternatives,dconf,fonts,gtk-3.0,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,pango,texlive,X11 |
56 | private-tmp | 66 | private-tmp |
57 | 67 | ||
58 | dbus-user filter | 68 | dbus-user filter |
diff --git a/etc/profile-a-l/brave.profile b/etc/profile-a-l/brave.profile index 5a5e9eacd..09548c761 100644 --- a/etc/profile-a-l/brave.profile +++ b/etc/profile-a-l/brave.profile | |||
@@ -8,7 +8,10 @@ include globals.local | |||
8 | 8 | ||
9 | # noexec /tmp is included in chromium-common.profile and breaks Brave | 9 | # noexec /tmp is included in chromium-common.profile and breaks Brave |
10 | ignore noexec /tmp | 10 | ignore noexec /tmp |
11 | # TOR is installed in ${HOME} | 11 | # TOR is installed in ${HOME}. |
12 | # NOTE: chromium-common.profile enables apparmor. To keep that intact | ||
13 | # you will need to uncomment the 'brave + tor' rule in /etc/apparmor.d/local/firejail-default. | ||
14 | # Alternatively you can add 'ignore apparmor' to your brave.local. | ||
12 | ignore noexec ${HOME} | 15 | ignore noexec ${HOME} |
13 | 16 | ||
14 | noblacklist ${HOME}/.cache/BraveSoftware | 17 | noblacklist ${HOME}/.cache/BraveSoftware |
diff --git a/etc/profile-a-l/dbus-send.profile b/etc/profile-a-l/dbus-send.profile index 76a14d99b..0000de441 100644 --- a/etc/profile-a-l/dbus-send.profile +++ b/etc/profile-a-l/dbus-send.profile | |||
@@ -52,7 +52,7 @@ private-bin dbus-send | |||
52 | private-cache | 52 | private-cache |
53 | private-dev | 53 | private-dev |
54 | private-etc alternatives,dbus-1 | 54 | private-etc alternatives,dbus-1 |
55 | private-lib libpcre2-8.so.0 | 55 | private-lib libpcre* |
56 | private-tmp | 56 | private-tmp |
57 | 57 | ||
58 | memory-deny-write-execute | 58 | memory-deny-write-execute |
diff --git a/etc/profile-a-l/discord-canary.profile b/etc/profile-a-l/discord-canary.profile index 3e9dacd1e..43db95b8a 100644 --- a/etc/profile-a-l/discord-canary.profile +++ b/etc/profile-a-l/discord-canary.profile | |||
@@ -10,7 +10,7 @@ noblacklist ${HOME}/.config/discordcanary | |||
10 | mkdir ${HOME}/.config/discordcanary | 10 | mkdir ${HOME}/.config/discordcanary |
11 | whitelist ${HOME}/.config/discordcanary | 11 | whitelist ${HOME}/.config/discordcanary |
12 | 12 | ||
13 | private-bin discord-canary | 13 | private-bin discord-canary,electron,electron[0-9],electron[0-9][0-9] |
14 | private-opt discord-canary | 14 | private-opt discord-canary |
15 | 15 | ||
16 | # Redirect | 16 | # Redirect |
diff --git a/etc/profile-a-l/etr.profile b/etc/profile-a-l/etr.profile index 1c34335d2..f55d23778 100644 --- a/etc/profile-a-l/etr.profile +++ b/etc/profile-a-l/etr.profile | |||
@@ -44,7 +44,7 @@ disable-mnt | |||
44 | private-bin etr | 44 | private-bin etr |
45 | private-cache | 45 | private-cache |
46 | private-dev | 46 | private-dev |
47 | # private-etc alternatives,drirc,machine-id,openal | 47 | # private-etc alternatives,drirc,machine-id,openal,passwd |
48 | private-tmp | 48 | private-tmp |
49 | 49 | ||
50 | dbus-user none | 50 | dbus-user none |
diff --git a/etc/profile-a-l/exfalso.profile b/etc/profile-a-l/exfalso.profile index 192858304..92e4395c5 100644 --- a/etc/profile-a-l/exfalso.profile +++ b/etc/profile-a-l/exfalso.profile | |||
@@ -4,58 +4,12 @@ | |||
4 | # Persistent local customizations | 4 | # Persistent local customizations |
5 | include exfalso.local | 5 | include exfalso.local |
6 | # Persistent global definitions | 6 | # Persistent global definitions |
7 | include globals.local | 7 | # added by included profile |
8 | #include globals.local | ||
8 | 9 | ||
9 | noblacklist ${HOME}/.quodlibet | ||
10 | noblacklist ${MUSIC} | ||
11 | |||
12 | # Allow python (blacklisted by disable-interpreters.inc) | ||
13 | include allow-python2.inc | ||
14 | include allow-python3.inc | ||
15 | |||
16 | whitelist ${DOWNLOADS} | ||
17 | whitelist ${MUSIC} | ||
18 | |||
19 | include disable-common.inc | ||
20 | include disable-devel.inc | ||
21 | include disable-exec.inc | ||
22 | include disable-interpreters.inc | ||
23 | include disable-passwdmgr.inc | ||
24 | include disable-programs.inc | ||
25 | include disable-shell.inc | ||
26 | include disable-xdg.inc | ||
27 | |||
28 | mkdir ${HOME}/.quodlibet | ||
29 | whitelist ${HOME}/.quodlibet | ||
30 | include whitelist-common.inc | ||
31 | include whitelist-usr-share-common.inc | ||
32 | include whitelist-var-common.inc | ||
33 | |||
34 | caps.drop all | ||
35 | ipc-namespace | ||
36 | machine-id | ||
37 | netfilter | ||
38 | no3d | ||
39 | nodvd | ||
40 | nogroups | ||
41 | nonewprivs | ||
42 | noroot | ||
43 | nosound | ||
44 | notv | ||
45 | nou2f | ||
46 | novideo | ||
47 | protocol unix,inet,inet6 | ||
48 | seccomp | ||
49 | shell none | ||
50 | |||
51 | private-bin exfalso,python* | ||
52 | private-cache | ||
53 | private-dev | ||
54 | private-etc alternatives,fonts,group,passwd | ||
55 | private-lib libatk-1.0.so.*,libgdk-3.so.*,libgdk_pixbuf-2.0.so.*,libgirepository-1.0.so.*,libgstreamer-1.0.so.*,libgtk-3.so.*,libgtksourceview-3.0.so.*,libpango-1.0.so.*,libpython*,libreadline.so.*,libsoup-2.4.so.*,libssl.so.1.*,python2*,python3* | 10 | private-lib libatk-1.0.so.*,libgdk-3.so.*,libgdk_pixbuf-2.0.so.*,libgirepository-1.0.so.*,libgstreamer-1.0.so.*,libgtk-3.so.*,libgtksourceview-3.0.so.*,libpango-1.0.so.*,libpython*,libreadline.so.*,libsoup-2.4.so.*,libssl.so.1.*,python2*,python3* |
56 | private-tmp | ||
57 | 11 | ||
58 | dbus-user none | 12 | dbus-user none |
59 | dbus-system none | ||
60 | 13 | ||
61 | #memory-deny-write-execute - breaks on Arch (see issue #1803) | 14 | # Redirect |
15 | include quodlibet.profile | ||
diff --git a/etc/profile-a-l/file-roller.profile b/etc/profile-a-l/file-roller.profile index 2a1eb2001..50d2b923b 100644 --- a/etc/profile-a-l/file-roller.profile +++ b/etc/profile-a-l/file-roller.profile | |||
@@ -20,9 +20,9 @@ include whitelist-var-common.inc | |||
20 | 20 | ||
21 | apparmor | 21 | apparmor |
22 | caps.drop all | 22 | caps.drop all |
23 | #ipc-namespace - causing issues launching on archlinux | ||
24 | machine-id | 23 | machine-id |
25 | # net none - breaks on older Ubuntu versions | 24 | # net none - breaks on older Ubuntu versions |
25 | netfilter | ||
26 | no3d | 26 | no3d |
27 | nodvd | 27 | nodvd |
28 | nogroups | 28 | nogroups |
@@ -38,7 +38,7 @@ seccomp.block-secondary | |||
38 | shell none | 38 | shell none |
39 | tracelog | 39 | tracelog |
40 | 40 | ||
41 | private-bin 7z,7za,7zr,ar,arj,bash,brotli,bzip2,compress,cpio,dpkg-deb,file-roller,gtar,gzip,isoinfo,lha,lrzip,lsar,lz4,lzip,lzma,lzop,p7zip,rar,rzip,sh,tar,unace,unalz,unar,uncompress,unrar,unsquashfs,unstuff,unzip,xz,zip,zoo | 41 | private-bin 7z,7za,7zr,ar,arj,atool,bash,brotli,bsdtar,bzip2,compress,cp,cpio,dpkg-deb,file-roller,gtar,gzip,isoinfo,lha,lrzip,lsar,lz4,lzip,lzma,lzop,mv,p7zip,rar,rm,rzip,sh,tar,unace,unalz,unar,uncompress,unrar,unsquashfs,unstuff,unzip,unzstd,xz,xzdec,zip,zoo,zstd |
42 | private-cache | 42 | private-cache |
43 | private-dev | 43 | private-dev |
44 | private-etc dconf,fonts,gtk-3.0,xdg | 44 | private-etc dconf,fonts,gtk-3.0,xdg |
diff --git a/etc/profile-a-l/firedragon.profile b/etc/profile-a-l/firedragon.profile new file mode 100644 index 000000000..77487161e --- /dev/null +++ b/etc/profile-a-l/firedragon.profile | |||
@@ -0,0 +1,26 @@ | |||
1 | # Firejail profile for FireDragon | ||
2 | # Description: Librewolf fork with enhanced KDE integration | ||
3 | # This file is overwritten after every install/update | ||
4 | # Persistent local customizations | ||
5 | include firedragon.local | ||
6 | # Persistent global definitions | ||
7 | include globals.local | ||
8 | |||
9 | noblacklist ${HOME}/.cache/firedragon | ||
10 | noblacklist ${HOME}/.firedragon | ||
11 | |||
12 | mkdir ${HOME}/.cache/firedragon | ||
13 | mkdir ${HOME}/.firedragon | ||
14 | whitelist ${HOME}/.cache/firedragon | ||
15 | whitelist ${HOME}/.firedragon | ||
16 | |||
17 | # Add the next lines to your firedragon.local if you want to use the migration wizard. | ||
18 | #noblacklist ${HOME}/.mozilla | ||
19 | #whitelist ${HOME}/.mozilla | ||
20 | |||
21 | # FireDragon requires a shell to launch on Arch. We can possibly remove sh though. | ||
22 | # Add the next line to your firedragon.local to enable private-bin. | ||
23 | #private-bin bash,dbus-launch,dbus-send,env,firedragon,python*,sh,which | ||
24 | |||
25 | # Redirect | ||
26 | include firefox-common.profile | ||
diff --git a/etc/profile-a-l/flameshot.profile b/etc/profile-a-l/flameshot.profile index 851a7c747..d1c18e690 100644 --- a/etc/profile-a-l/flameshot.profile +++ b/etc/profile-a-l/flameshot.profile | |||
@@ -54,9 +54,15 @@ private-bin flameshot | |||
54 | private-cache | 54 | private-cache |
55 | private-etc alternatives,ca-certificates,crypto-policies,fonts,ld.so.conf,machine-id,pki,resolv.conf,ssl | 55 | private-etc alternatives,ca-certificates,crypto-policies,fonts,ld.so.conf,machine-id,pki,resolv.conf,ssl |
56 | private-dev | 56 | private-dev |
57 | private-tmp | 57 | #private-tmp |
58 | 58 | ||
59 | dbus-user filter | 59 | dbus-user filter |
60 | dbus-user.own org.dharkael.Flameshot | 60 | dbus-user.own org.dharkael.Flameshot |
61 | dbus-user.own org.flameshot.Flameshot | 61 | dbus-user.own org.flameshot.Flameshot |
62 | dbus-user.talk org.freedesktop.Notifications | ||
63 | dbus-user.talk org.freedesktop.portal.Desktop | ||
64 | dbus-user.talk org.gnome.Shell | ||
65 | dbus-user.talk org.kde.KWin | ||
66 | dbus-user.talk org.kde.StatusNotifierWatcher | ||
67 | dbus-user.own org.kde.* | ||
62 | dbus-system none | 68 | dbus-system none |
diff --git a/etc/profile-a-l/librewolf-nightly.profile b/etc/profile-a-l/librewolf-nightly.profile index e6c3da608..72df5a52a 100644 --- a/etc/profile-a-l/librewolf-nightly.profile +++ b/etc/profile-a-l/librewolf-nightly.profile | |||
@@ -6,5 +6,8 @@ include librewolf-nightly.local | |||
6 | # added by included profile | 6 | # added by included profile |
7 | #include globals.local | 7 | #include globals.local |
8 | 8 | ||
9 | # Add the next line to your librewolf-nightly.local to enable private-bin. | ||
10 | #private-bin librewolf-nightly | ||
11 | |||
9 | # Redirect | 12 | # Redirect |
10 | include librewolf.profile | 13 | include librewolf.profile |
diff --git a/etc/profile-a-l/librewolf.profile b/etc/profile-a-l/librewolf.profile index 8e891a930..0934e1271 100644 --- a/etc/profile-a-l/librewolf.profile +++ b/etc/profile-a-l/librewolf.profile | |||
@@ -18,12 +18,40 @@ whitelist ${HOME}/.librewolf | |||
18 | #noblacklist ${HOME}/.mozilla | 18 | #noblacklist ${HOME}/.mozilla |
19 | #whitelist ${HOME}/.mozilla | 19 | #whitelist ${HOME}/.mozilla |
20 | 20 | ||
21 | # librewolf requires a shell to launch on Arch. We can possibly remove sh though. | 21 | # Uncomment or put in your librewolf.local one of the following whitelist to enable KeePassXC Plugin |
22 | # Add the next line to your librewolf.local to enable private-bin. | 22 | # NOTE: start KeePassXC before Librewolf and keep it open to allow communication between them |
23 | #private-bin bash,dbus-launch,dbus-send,env,librewolf,python*,sh,which | 23 | #whitelist ${RUNUSER}/kpxc_server |
24 | #whitelist ${RUNUSER}/org.keepassxc.KeePassXC.BrowserServer | ||
25 | |||
26 | whitelist /usr/share/doc | ||
27 | whitelist /usr/share/gtk-doc/html | ||
28 | whitelist /usr/share/mozilla | ||
29 | whitelist /usr/share/webext | ||
30 | include whitelist-usr-share-common.inc | ||
31 | |||
32 | # Add the next line to your librewolf.local to enable private-bin (Arch Linux). | ||
33 | #private-bin dbus-launch,dbus-send,librewolf,sh | ||
24 | # Add the next line to your librewolf.local to enable private-etc. Note | 34 | # Add the next line to your librewolf.local to enable private-etc. Note |
25 | # that private-etc must first be enabled in firefox-common.local. | 35 | # that private-etc must first be enabled in firefox-common.local. |
26 | #private-etc librewolf | 36 | #private-etc librewolf |
27 | 37 | ||
38 | dbus-user filter | ||
39 | # Uncomment or put in your librewolf.local to enable native notifications. | ||
40 | #dbus-user.talk org.freedesktop.Notifications | ||
41 | # Uncomment or put in your librewolf.local to allow to inhibit screensavers | ||
42 | #dbus-user.talk org.freedesktop.ScreenSaver | ||
43 | # Uncomment or put in your librewolf.local for plasma browser integration | ||
44 | #dbus-user.own org.mpris.MediaPlayer2.plasma-browser-integration | ||
45 | #dbus-user.talk org.kde.JobViewServer | ||
46 | #dbus-user.talk org.kde.kuiserver | ||
47 | # Uncomment or put in your librewolf.local to allow screen sharing under wayland. | ||
48 | #whitelist ${RUNUSER}/pipewire-0 | ||
49 | #dbus-user.talk org.freedesktop.portal.* | ||
50 | # Also uncomment or put in your librewolf.local if screen sharing sharing still | ||
51 | # does not work with the above lines (might depend on the portal | ||
52 | # implementation) | ||
53 | #ignore noroot | ||
54 | ignore dbus-user none | ||
55 | |||
28 | # Redirect | 56 | # Redirect |
29 | include firefox-common.profile | 57 | include firefox-common.profile |
diff --git a/etc/profile-a-l/sway.profile b/etc/profile-a-l/sway.profile new file mode 100644 index 000000000..4637419bf --- /dev/null +++ b/etc/profile-a-l/sway.profile | |||
@@ -0,0 +1,19 @@ | |||
1 | # Firejail profile for Sway | ||
2 | # Description: i3-compatible Wayland compositor | ||
3 | # This file is overwritten after every install/update | ||
4 | # Persistent local customizations | ||
5 | include sway.local | ||
6 | # Persistent global definitions | ||
7 | include globals.local | ||
8 | |||
9 | # all applications started in sway will run in this profile | ||
10 | noblacklist ${HOME}/.config/sway | ||
11 | # sway uses ~/.config/i3 as fallback if there is no ~/.config/sway | ||
12 | noblacklist ${HOME}/.config/i3 | ||
13 | include disable-common.inc | ||
14 | |||
15 | caps.drop all | ||
16 | netfilter | ||
17 | noroot | ||
18 | protocol unix,inet,inet6 | ||
19 | seccomp | ||
diff --git a/etc/profile-m-z/mumble.profile b/etc/profile-m-z/mumble.profile index 0c4efc3d3..c7f59c5ee 100644 --- a/etc/profile-m-z/mumble.profile +++ b/etc/profile-m-z/mumble.profile | |||
@@ -29,7 +29,6 @@ include whitelist-var-common.inc | |||
29 | 29 | ||
30 | caps.drop all | 30 | caps.drop all |
31 | netfilter | 31 | netfilter |
32 | no3d | ||
33 | nodvd | 32 | nodvd |
34 | nogroups | 33 | nogroups |
35 | nonewprivs | 34 | nonewprivs |
diff --git a/etc/profile-m-z/qrencode.profile b/etc/profile-m-z/qrencode.profile index 952e9f5f3..6480651b2 100644 --- a/etc/profile-m-z/qrencode.profile +++ b/etc/profile-m-z/qrencode.profile | |||
@@ -48,7 +48,7 @@ private-bin qrencode | |||
48 | private-cache | 48 | private-cache |
49 | private-dev | 49 | private-dev |
50 | private-etc none | 50 | private-etc none |
51 | private-lib libpcre2-8.so.0 | 51 | private-lib libpcre* |
52 | private-tmp | 52 | private-tmp |
53 | 53 | ||
54 | dbus-user none | 54 | dbus-user none |
diff --git a/etc/profile-m-z/quodlibet.profile b/etc/profile-m-z/quodlibet.profile new file mode 100644 index 000000000..e3680dcf1 --- /dev/null +++ b/etc/profile-m-z/quodlibet.profile | |||
@@ -0,0 +1,66 @@ | |||
1 | # Firejail profile for quodlibet | ||
2 | # Description: Music player and music library manager | ||
3 | # This file is overwritten after every install/update | ||
4 | # Persistent local customizations | ||
5 | include quodlibet.local | ||
6 | # Persistent global definitions | ||
7 | include globals.local | ||
8 | |||
9 | noblacklist ${HOME}/.cache/quodlibet | ||
10 | noblacklist ${HOME}/.config/quodlibet | ||
11 | noblacklist ${HOME}/.quodlibet | ||
12 | noblacklist ${MUSIC} | ||
13 | |||
14 | include allow-bin-sh.inc | ||
15 | |||
16 | # Allow python (blacklisted by disable-interpreters.inc) | ||
17 | include allow-python2.inc | ||
18 | include allow-python3.inc | ||
19 | |||
20 | include disable-common.inc | ||
21 | include disable-devel.inc | ||
22 | include disable-exec.inc | ||
23 | include disable-interpreters.inc | ||
24 | include disable-passwdmgr.inc | ||
25 | include disable-programs.inc | ||
26 | include disable-shell.inc | ||
27 | include disable-xdg.inc | ||
28 | |||
29 | mkdir ${HOME}/.cache/quodlibet | ||
30 | mkdir ${HOME}/.config/quodlibet | ||
31 | mkdir ${HOME}/.quodlibet | ||
32 | |||
33 | whitelist ${HOME}/.cache/quodlibet | ||
34 | whitelist ${HOME}/.config/quodlibet | ||
35 | whitelist ${HOME}/.quodlibet | ||
36 | whitelist ${DOWNLOADS} | ||
37 | whitelist ${MUSIC} | ||
38 | include whitelist-common.inc | ||
39 | include whitelist-runuser-common.inc | ||
40 | include whitelist-usr-share-common.inc | ||
41 | include whitelist-var-common.inc | ||
42 | |||
43 | apparmor | ||
44 | caps.drop all | ||
45 | netfilter | ||
46 | no3d | ||
47 | nodvd | ||
48 | nogroups | ||
49 | nonewprivs | ||
50 | noroot | ||
51 | notv | ||
52 | nou2f | ||
53 | novideo | ||
54 | protocol unix,inet,inet6 | ||
55 | seccomp | ||
56 | seccomp.block-secondary | ||
57 | shell none | ||
58 | tracelog | ||
59 | |||
60 | private-bin exfalso,operon,python*,quodlibet,sh | ||
61 | private-cache | ||
62 | private-dev | ||
63 | private-etc alsa,alternatives,asound.conf,ca-certificates,crypto-policies,dconf,fonts,gtk-3.0,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,passwd,pki,pulse,resolv.conf,ssl | ||
64 | private-tmp | ||
65 | |||
66 | dbus-system none | ||
diff --git a/etc/profile-m-z/tmux.profile b/etc/profile-m-z/tmux.profile new file mode 100644 index 000000000..706f39f24 --- /dev/null +++ b/etc/profile-m-z/tmux.profile | |||
@@ -0,0 +1,45 @@ | |||
1 | # Firejail profile for tmux | ||
2 | # Description: terminal multiplexer | ||
3 | # This file is overwritten after every install/update | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include tmux.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | blacklist /tmp/.X11-unix | ||
11 | blacklist ${RUNUSER} | ||
12 | |||
13 | noblacklist /tmp/tmux-* | ||
14 | |||
15 | # include disable-common.inc | ||
16 | # include disable-devel.inc | ||
17 | # include disable-exec.inc | ||
18 | include disable-passwdmgr.inc | ||
19 | # include disable-programs.inc | ||
20 | |||
21 | caps.drop all | ||
22 | ipc-namespace | ||
23 | machine-id | ||
24 | netfilter | ||
25 | no3d | ||
26 | nodvd | ||
27 | nogroups | ||
28 | nonewprivs | ||
29 | noroot | ||
30 | nosound | ||
31 | notv | ||
32 | nou2f | ||
33 | novideo | ||
34 | protocol unix,inet,inet6,netlink | ||
35 | seccomp | ||
36 | seccomp.block-secondary | ||
37 | shell none | ||
38 | tracelog | ||
39 | |||
40 | # private-cache | ||
41 | private-dev | ||
42 | # private-tmp | ||
43 | |||
44 | dbus-user none | ||
45 | dbus-system none | ||
diff --git a/etc/templates/profile.template b/etc/templates/profile.template index 065245a63..043e83c58 100644 --- a/etc/templates/profile.template +++ b/etc/templates/profile.template | |||
@@ -103,6 +103,9 @@ include globals.local | |||
103 | # Allow ruby (blacklisted by disable-interpreters.inc) | 103 | # Allow ruby (blacklisted by disable-interpreters.inc) |
104 | #include allow-ruby.inc | 104 | #include allow-ruby.inc |
105 | 105 | ||
106 | # Allow /bin/sh (blacklisted by disable-shell.inc) | ||
107 | #include allow-bin-sh.inc | ||
108 | |||
106 | # Allow ssh (blacklisted by disable-common.inc) | 109 | # Allow ssh (blacklisted by disable-common.inc) |
107 | #include allow-ssh.inc | 110 | #include allow-ssh.inc |
108 | 111 | ||