diff options
author | 2023-01-04 18:51:36 +0000 | |
---|---|---|
committer | 2023-01-04 18:51:36 +0000 | |
commit | 86b4561ffbb27fc943a1ceb95ea7eecf149d36a7 (patch) | |
tree | f5380e6c00f8ce5a0aa6832f07813bd556304428 /etc | |
parent | linuxqq: drop comment (diff) | |
parent | Merge pull request #5564 from glitsj16/claws-mail+sylpheed (diff) | |
download | firejail-86b4561ffbb27fc943a1ceb95ea7eecf149d36a7.tar.gz firejail-86b4561ffbb27fc943a1ceb95ea7eecf149d36a7.tar.zst firejail-86b4561ffbb27fc943a1ceb95ea7eecf149d36a7.zip |
Merge branch 'netblue30:master' into linuxqq
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/disable-programs.inc | 5 | ||||
-rw-r--r-- | etc/profile-a-l/chatterino.profile | 92 | ||||
-rw-r--r-- | etc/profile-a-l/claws-mail.profile | 10 | ||||
-rw-r--r-- | etc/profile-a-l/electron-hardened.inc.profile | 10 | ||||
-rw-r--r-- | etc/profile-a-l/electron.profile | 4 | ||||
-rw-r--r-- | etc/profile-a-l/firefox-common.profile | 2 | ||||
-rw-r--r-- | etc/profile-m-z/sylpheed.profile | 5 | ||||
-rw-r--r-- | etc/profile-m-z/ytmdesktop.profile | 2 |
8 files changed, 123 insertions, 7 deletions
diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc index 1ea77495b..7d7f84d4b 100644 --- a/etc/inc/disable-programs.inc +++ b/etc/inc/disable-programs.inc | |||
@@ -116,6 +116,7 @@ blacklist ${HOME}/.cache/fossamail | |||
116 | blacklist ${HOME}/.cache/fractal | 116 | blacklist ${HOME}/.cache/fractal |
117 | blacklist ${HOME}/.cache/freecol | 117 | blacklist ${HOME}/.cache/freecol |
118 | blacklist ${HOME}/.cache/gajim | 118 | blacklist ${HOME}/.cache/gajim |
119 | blacklist ${HOME}/.cache/gdfuse | ||
119 | blacklist ${HOME}/.cache/geary | 120 | blacklist ${HOME}/.cache/geary |
120 | blacklist ${HOME}/.cache/geeqie | 121 | blacklist ${HOME}/.cache/geeqie |
121 | blacklist ${HOME}/.cache/gegl-0.4 | 122 | blacklist ${HOME}/.cache/gegl-0.4 |
@@ -437,6 +438,7 @@ blacklist ${HOME}/.config/gajim | |||
437 | blacklist ${HOME}/.config/galculator | 438 | blacklist ${HOME}/.config/galculator |
438 | blacklist ${HOME}/.config/gallery-dl | 439 | blacklist ${HOME}/.config/gallery-dl |
439 | blacklist ${HOME}/.config/gconf | 440 | blacklist ${HOME}/.config/gconf |
441 | blacklist ${HOME}/.config/gdfuse | ||
440 | blacklist ${HOME}/.config/geany | 442 | blacklist ${HOME}/.config/geany |
441 | blacklist ${HOME}/.config/geary | 443 | blacklist ${HOME}/.config/geary |
442 | blacklist ${HOME}/.config/gedit | 444 | blacklist ${HOME}/.config/gedit |
@@ -709,6 +711,7 @@ blacklist ${HOME}/.frozen-bubble | |||
709 | blacklist ${HOME}/.funnyboat | 711 | blacklist ${HOME}/.funnyboat |
710 | blacklist ${HOME}/.g8 | 712 | blacklist ${HOME}/.g8 |
711 | blacklist ${HOME}/.gallery-dl.conf | 713 | blacklist ${HOME}/.gallery-dl.conf |
714 | blacklist ${HOME}/.gdfuse | ||
712 | blacklist ${HOME}/.geekbench5 | 715 | blacklist ${HOME}/.geekbench5 |
713 | blacklist ${HOME}/.gimp* | 716 | blacklist ${HOME}/.gimp* |
714 | blacklist ${HOME}/.gist | 717 | blacklist ${HOME}/.gist |
@@ -877,6 +880,7 @@ blacklist ${HOME}/.local/share/caja-python | |||
877 | blacklist ${HOME}/.local/share/calligragemini | 880 | blacklist ${HOME}/.local/share/calligragemini |
878 | blacklist ${HOME}/.local/share/cantata | 881 | blacklist ${HOME}/.local/share/cantata |
879 | blacklist ${HOME}/.local/share/cdprojektred | 882 | blacklist ${HOME}/.local/share/cdprojektred |
883 | blacklist ${HOME}/.local/share/chatterino | ||
880 | blacklist ${HOME}/.local/share/clipit | 884 | blacklist ${HOME}/.local/share/clipit |
881 | blacklist ${HOME}/.local/share/com.github.johnfactotum.Foliate | 885 | blacklist ${HOME}/.local/share/com.github.johnfactotum.Foliate |
882 | blacklist ${HOME}/.local/share/contacts | 886 | blacklist ${HOME}/.local/share/contacts |
@@ -898,6 +902,7 @@ blacklist ${HOME}/.local/share/feral-interactive | |||
898 | blacklist ${HOME}/.local/share/five-or-more | 902 | blacklist ${HOME}/.local/share/five-or-more |
899 | blacklist ${HOME}/.local/share/freecol | 903 | blacklist ${HOME}/.local/share/freecol |
900 | blacklist ${HOME}/.local/share/gajim | 904 | blacklist ${HOME}/.local/share/gajim |
905 | blacklist ${HOME}/.local/share/gdfuse | ||
901 | blacklist ${HOME}/.local/share/geary | 906 | blacklist ${HOME}/.local/share/geary |
902 | blacklist ${HOME}/.local/share/geeqie | 907 | blacklist ${HOME}/.local/share/geeqie |
903 | blacklist ${HOME}/.local/share/ghostwriter | 908 | blacklist ${HOME}/.local/share/ghostwriter |
diff --git a/etc/profile-a-l/chatterino.profile b/etc/profile-a-l/chatterino.profile new file mode 100644 index 000000000..4dfd85740 --- /dev/null +++ b/etc/profile-a-l/chatterino.profile | |||
@@ -0,0 +1,92 @@ | |||
1 | # Firejail profile for Chatterino | ||
2 | # Description: Chat client for https://twitch.tv | ||
3 | # This file is overwritten after every install/update | ||
4 | # Persistent local customizations | ||
5 | include chatterino.local | ||
6 | # Persistent global definitions | ||
7 | include globals.local | ||
8 | |||
9 | # To upload images, whitelist/noblacklist their path in chatterino.local. | ||
10 | #whitelist ${PICTURES} | ||
11 | # For custom notification sounds, whitelist/noblacklist their path in chatterino.local. | ||
12 | #whitelist ${MUSIC} | ||
13 | |||
14 | # Also allow access to mpv/vlc, they're usable via streamlink. | ||
15 | noblacklist ${HOME}/.config/mpv | ||
16 | noblacklist ${HOME}/.config/pulse | ||
17 | noblacklist ${HOME}/.config/vlc | ||
18 | noblacklist ${HOME}/.local/share/chatterino | ||
19 | noblacklist ${HOME}/.local/share/vlc | ||
20 | |||
21 | # Allow Lua for mpv (blacklisted by disable-interpreters.inc) | ||
22 | include allow-lua.inc | ||
23 | |||
24 | # Allow Python for Streamlink integration (blacklisted by disable-interpreters.inc) | ||
25 | include allow-python3.inc | ||
26 | |||
27 | include disable-common.inc | ||
28 | include disable-devel.inc | ||
29 | include disable-exec.inc | ||
30 | include disable-interpreters.inc | ||
31 | include disable-proc.inc | ||
32 | include disable-programs.inc | ||
33 | include disable-xdg.inc | ||
34 | |||
35 | # Also allow read-only access to mpv/VLC, they're usable via streamlink. | ||
36 | mkdir ${HOME}/.local/share/chatterino | ||
37 | # VLC preferences will fail to save with read-only set. | ||
38 | whitelist ${HOME}/.local/share/chatterino | ||
39 | whitelist-ro ${HOME}/.config/mpv | ||
40 | whitelist-ro ${HOME}/.config/pulse | ||
41 | whitelist-ro ${HOME}/.config/vlc | ||
42 | whitelist-ro ${HOME}/.local/share/vlc | ||
43 | include whitelist-common.inc | ||
44 | include whitelist-run-common.inc | ||
45 | include whitelist-runuser-common.inc | ||
46 | include whitelist-usr-share-common.inc | ||
47 | include whitelist-var-common.inc | ||
48 | |||
49 | # Streamlink+VLC doesn't seem to close properly with apparmor enabled. | ||
50 | #apparmor | ||
51 | caps.drop all | ||
52 | netfilter | ||
53 | nodvd | ||
54 | nogroups | ||
55 | nonewprivs | ||
56 | noprinters | ||
57 | noroot | ||
58 | notv | ||
59 | nou2f | ||
60 | # Netlink is required for streamlink integration. | ||
61 | protocol unix,inet,inet6,netlink | ||
62 | # Seccomp may break browser integration. | ||
63 | seccomp | ||
64 | seccomp.block-secondary | ||
65 | tracelog | ||
66 | |||
67 | disable-mnt | ||
68 | # Add more private-bin lines for browsers or video players to chatterino.local if wanted. | ||
69 | private-bin chatterino,cvlc,env,ffmpeg,mpv,nvlc,pgrep,python*,qvlc,rvlc,streamlink,svlc,vlc | ||
70 | # private-cache may cause issues with mpv (see #2838) | ||
71 | private-cache | ||
72 | private-dev | ||
73 | private-etc alsa,alternatives,asound.conf,ca-certificates,dbus-1,fonts,hostname,hosts,kde4rc,kde5rc,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,machine-id,nvidia,passwd,pulse,resolv.conf,rpc,services,ssl,Trolltech.conf,X11 | ||
74 | private-srv none | ||
75 | private-tmp | ||
76 | |||
77 | dbus-user filter | ||
78 | dbus-user.own com.chatterino.* | ||
79 | # Allow notifications. | ||
80 | dbus-user.talk org.freedesktop.Notifications | ||
81 | # For media player integration. | ||
82 | dbus-user.talk org.freedesktop.ScreenSaver | ||
83 | ?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher | ||
84 | dbus-user.own org.mpris.MediaPlayer2.chatterino | ||
85 | dbus-user.talk org.mpris.MediaPlayer2.Player | ||
86 | dbus-system none | ||
87 | |||
88 | # Prevents browsers/players from lingering after Chatterino is closed. | ||
89 | #deterministic-shutdown | ||
90 | # memory-deny-write-execute may break streamlink and browser integration. | ||
91 | #memory-deny-write-execute | ||
92 | restrict-namespaces | ||
diff --git a/etc/profile-a-l/claws-mail.profile b/etc/profile-a-l/claws-mail.profile index 691657fa0..ce7b30122 100644 --- a/etc/profile-a-l/claws-mail.profile +++ b/etc/profile-a-l/claws-mail.profile | |||
@@ -1,5 +1,5 @@ | |||
1 | # Firejail profile for claws-mail | 1 | # Firejail profile for claws-mail |
2 | # Description: Fast, lightweight and user-friendly GTK+2 based email client | 2 | # Description: Fast, lightweight and user-friendly GTK based email client |
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 claws-mail.local | 5 | include claws-mail.local |
@@ -22,9 +22,15 @@ whitelist /usr/share/doc/claws-mail | |||
22 | 22 | ||
23 | dbus-user filter | 23 | dbus-user filter |
24 | dbus-user.talk ca.desrt.dconf | 24 | dbus-user.talk ca.desrt.dconf |
25 | dbus-user.talk org.gnome.keyring.SystemPrompter | ||
26 | # Add the next line to your claws-mail.local if you use the notification plugin. | 25 | # Add the next line to your claws-mail.local if you use the notification plugin. |
27 | # dbus-user.talk org.freedesktop.Notifications | 26 | # dbus-user.talk org.freedesktop.Notifications |
27 | dbus-user.talk org.freedesktop.secrets | ||
28 | dbus-user.talk org.gnome.keyring | ||
29 | dbus-user.talk org.gnome.keyring.PrivatePrompter | ||
30 | dbus-user.talk org.gnome.keyring.SystemPrompter | ||
31 | dbus-user.talk org.gnome.seahorse | ||
32 | dbus-user.talk org.gnome.seahorse.Application | ||
33 | dbus-user.talk org.mozilla.* | ||
28 | 34 | ||
29 | # Redirect | 35 | # Redirect |
30 | include email-common.profile | 36 | include email-common.profile |
diff --git a/etc/profile-a-l/electron-hardened.inc.profile b/etc/profile-a-l/electron-hardened.inc.profile new file mode 100644 index 000000000..eacf5cebe --- /dev/null +++ b/etc/profile-a-l/electron-hardened.inc.profile | |||
@@ -0,0 +1,10 @@ | |||
1 | # Firejail profile alias for chrome-common-hardened.inc | ||
2 | # This file is overwritten after every install/update | ||
3 | # Persistent local customizations | ||
4 | include electron-hardened.inc.local | ||
5 | # Persistent global definitions | ||
6 | # added by caller profile | ||
7 | #include globals.local | ||
8 | |||
9 | # Redirect | ||
10 | include chrome-common-hardened.inc.profile | ||
diff --git a/etc/profile-a-l/electron.profile b/etc/profile-a-l/electron.profile index c1d337abd..c15e43399 100644 --- a/etc/profile-a-l/electron.profile +++ b/etc/profile-a-l/electron.profile | |||
@@ -22,8 +22,8 @@ include whitelist-runuser-common.inc | |||
22 | include whitelist-usr-share-common.inc | 22 | include whitelist-usr-share-common.inc |
23 | include whitelist-var-common.inc | 23 | include whitelist-var-common.inc |
24 | 24 | ||
25 | # Add the next line to your chromium-common.local if your kernel allows unprivileged userns clone. | 25 | # Add the next line to your electron.local if your kernel allows unprivileged userns clone. |
26 | #include chromium-common-hardened.inc.profile | 26 | #include electron-hardened.inc.profile |
27 | 27 | ||
28 | apparmor | 28 | apparmor |
29 | caps.keep sys_admin,sys_chroot | 29 | caps.keep sys_admin,sys_chroot |
diff --git a/etc/profile-a-l/firefox-common.profile b/etc/profile-a-l/firefox-common.profile index 13313cb67..60d64736e 100644 --- a/etc/profile-a-l/firefox-common.profile +++ b/etc/profile-a-l/firefox-common.profile | |||
@@ -35,6 +35,8 @@ include whitelist-runuser-common.inc | |||
35 | include whitelist-var-common.inc | 35 | include whitelist-var-common.inc |
36 | 36 | ||
37 | apparmor | 37 | apparmor |
38 | # Fixme! | ||
39 | apparmor-replace | ||
38 | caps.drop all | 40 | caps.drop all |
39 | # machine-id breaks pulse audio; add it to your firefox-common.local if sound is not required. | 41 | # machine-id breaks pulse audio; add it to your firefox-common.local if sound is not required. |
40 | #machine-id | 42 | #machine-id |
diff --git a/etc/profile-m-z/sylpheed.profile b/etc/profile-m-z/sylpheed.profile index 328812b04..483ff39a8 100644 --- a/etc/profile-m-z/sylpheed.profile +++ b/etc/profile-m-z/sylpheed.profile | |||
@@ -17,10 +17,11 @@ whitelist /usr/share/sylpheed | |||
17 | 17 | ||
18 | dbus-user filter | 18 | dbus-user filter |
19 | dbus-user.talk ca.desrt.dconf | 19 | dbus-user.talk ca.desrt.dconf |
20 | dbus-user.talk org.freedesktop.secrets | ||
21 | dbus-user.talk org.gnome.keyring.SystemPrompter | ||
22 | # Add the next line to your sylpheed.local to enable notifications. | 20 | # Add the next line to your sylpheed.local to enable notifications. |
23 | # dbus-user.talk org.freedesktop.Notifications | 21 | # dbus-user.talk org.freedesktop.Notifications |
22 | dbus-user.talk org.freedesktop.secrets | ||
23 | dbus-user.talk org.gnome.keyring.SystemPrompter | ||
24 | dbus-user.talk org.mozilla.* | ||
24 | 25 | ||
25 | # Redirect | 26 | # Redirect |
26 | include email-common.profile | 27 | include email-common.profile |
diff --git a/etc/profile-m-z/ytmdesktop.profile b/etc/profile-m-z/ytmdesktop.profile index 59b6e2543..aa466871c 100644 --- a/etc/profile-m-z/ytmdesktop.profile +++ b/etc/profile-m-z/ytmdesktop.profile | |||
@@ -1,5 +1,5 @@ | |||
1 | # Firejail profile for ytmdesktop | 1 | # Firejail profile for ytmdesktop |
2 | # Description: Unofficial electron based desktop warpper for YouTube Music | 2 | # Description: Unofficial electron based desktop wrapper for YouTube Music |
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 youtube.local | 5 | include youtube.local |