diff options
author | 2020-09-14 12:23:34 +0200 | |
---|---|---|
committer | 2020-09-14 12:23:34 +0200 | |
commit | 8d9b12d1c61000af20eb3ff39af712939ca8788a (patch) | |
tree | 876d1577d024f0a786531e59f3a90b8197dbb680 /etc | |
parent | make rpms: really fix man file inclusion (diff) | |
download | firejail-8d9b12d1c.tar.gz firejail-8d9b12d1c.tar.zst firejail-8d9b12d1c.zip |
New profiles + fixes + hardening
- blacklist ~/.rustup in disable-devel.inc
- add note to mpv (See #3628)
- harden warsow
- update relnotes
- new profile qrencode, dbus-send, notify-send
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/disable-devel.inc | 1 | ||||
-rw-r--r-- | etc/profile-a-l/dbus-send.profile | 59 | ||||
-rw-r--r-- | etc/profile-m-z/mpv.profile | 13 | ||||
-rw-r--r-- | etc/profile-m-z/notify-send.profile | 60 | ||||
-rw-r--r-- | etc/profile-m-z/qrencode.profile | 58 | ||||
-rw-r--r-- | etc/profile-m-z/warsow.profile | 3 |
6 files changed, 194 insertions, 0 deletions
diff --git a/etc/inc/disable-devel.inc b/etc/inc/disable-devel.inc index e1ba13380..e74b1b40b 100644 --- a/etc/inc/disable-devel.inc +++ b/etc/inc/disable-devel.inc | |||
@@ -49,6 +49,7 @@ blacklist ${PATH}/openssl-1.0 | |||
49 | blacklist ${PATH}/rust-gdb | 49 | blacklist ${PATH}/rust-gdb |
50 | blacklist ${PATH}/rust-lldb | 50 | blacklist ${PATH}/rust-lldb |
51 | blacklist ${PATH}/rustc | 51 | blacklist ${PATH}/rustc |
52 | blacklist ${HOME}/.rustup | ||
52 | 53 | ||
53 | # tcc - Tiny C Compiler | 54 | # tcc - Tiny C Compiler |
54 | blacklist ${PATH}/tcc | 55 | blacklist ${PATH}/tcc |
diff --git a/etc/profile-a-l/dbus-send.profile b/etc/profile-a-l/dbus-send.profile new file mode 100644 index 000000000..76a14d99b --- /dev/null +++ b/etc/profile-a-l/dbus-send.profile | |||
@@ -0,0 +1,59 @@ | |||
1 | # Firejail profile for dbus-send | ||
2 | # Description: Send a message to a message bus | ||
3 | # This file is overwritten after every install/update | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include dbus-send.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | blacklist /tmp/.X11-unix | ||
11 | blacklist ${RUNUSER}/wayland-* | ||
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 | include whitelist-common.inc | ||
24 | include whitelist-runuser-common.inc | ||
25 | include whitelist-usr-share-common.inc | ||
26 | include whitelist-var-common.inc | ||
27 | |||
28 | apparmor | ||
29 | caps.drop all | ||
30 | ipc-namespace | ||
31 | machine-id | ||
32 | # Breaks abstract sockets | ||
33 | #net none | ||
34 | netfilter | ||
35 | no3d | ||
36 | nodvd | ||
37 | nogroups | ||
38 | nonewprivs | ||
39 | noroot | ||
40 | nosound | ||
41 | notv | ||
42 | nou2f | ||
43 | novideo | ||
44 | protocol unix | ||
45 | seccomp | ||
46 | shell none | ||
47 | tracelog | ||
48 | |||
49 | disable-mnt | ||
50 | private | ||
51 | private-bin dbus-send | ||
52 | private-cache | ||
53 | private-dev | ||
54 | private-etc alternatives,dbus-1 | ||
55 | private-lib libpcre2-8.so.0 | ||
56 | private-tmp | ||
57 | |||
58 | memory-deny-write-execute | ||
59 | read-only ${HOME} | ||
diff --git a/etc/profile-m-z/mpv.profile b/etc/profile-m-z/mpv.profile index 7ca57334d..08318d08e 100644 --- a/etc/profile-m-z/mpv.profile +++ b/etc/profile-m-z/mpv.profile | |||
@@ -11,6 +11,19 @@ include globals.local | |||
11 | # edit ~/.config/mpv/foobar.conf: | 11 | # edit ~/.config/mpv/foobar.conf: |
12 | # screenshot-directory=~/Pictures | 12 | # screenshot-directory=~/Pictures |
13 | 13 | ||
14 | # Mpv has a powerfull lua-API, some off these lua-scripts interact | ||
15 | # with external resources which are blocked by firejail. In such cases | ||
16 | # you need to allow these resources by | ||
17 | # - adding additional binaries to private-bin | ||
18 | # - whitelisting additional paths | ||
19 | # - noblacklisting paths | ||
20 | # - weaking the dbus-policy | ||
21 | # - ... | ||
22 | # | ||
23 | # Often these scripts require a shell: | ||
24 | #noblacklist ${PATH}/sh | ||
25 | #private-bin sh | ||
26 | |||
14 | noblacklist ${HOME}/.config/mpv | 27 | noblacklist ${HOME}/.config/mpv |
15 | noblacklist ${HOME}/.config/youtube-dl | 28 | noblacklist ${HOME}/.config/youtube-dl |
16 | noblacklist ${HOME}/.netrc | 29 | noblacklist ${HOME}/.netrc |
diff --git a/etc/profile-m-z/notify-send.profile b/etc/profile-m-z/notify-send.profile new file mode 100644 index 000000000..ff292f409 --- /dev/null +++ b/etc/profile-m-z/notify-send.profile | |||
@@ -0,0 +1,60 @@ | |||
1 | # Firejail profile for notify-send | ||
2 | # Description: a program to send desktop notifications | ||
3 | # This file is overwritten after every install/update | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include notify-send.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | blacklist ${RUNUSER}/wayland-* | ||
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 | include whitelist-common.inc | ||
23 | include whitelist-runuser-common.inc | ||
24 | include whitelist-usr-share-common.inc | ||
25 | include whitelist-var-common.inc | ||
26 | |||
27 | apparmor | ||
28 | caps.drop all | ||
29 | ipc-namespace | ||
30 | machine-id | ||
31 | net none | ||
32 | no3d | ||
33 | nodvd | ||
34 | nogroups | ||
35 | nonewprivs | ||
36 | noroot | ||
37 | nosound | ||
38 | notv | ||
39 | nou2f | ||
40 | novideo | ||
41 | protocol unix | ||
42 | seccomp | ||
43 | shell none | ||
44 | tracelog | ||
45 | x11 none | ||
46 | |||
47 | disable-mnt | ||
48 | private | ||
49 | private-bin notify-send | ||
50 | private-cache | ||
51 | private-dev | ||
52 | private-etc none | ||
53 | private-tmp | ||
54 | |||
55 | dbus-user filter | ||
56 | dbus-user.talk org.freedesktop.Notifications | ||
57 | dbus-system none | ||
58 | |||
59 | memory-deny-write-execute | ||
60 | read-only ${HOME} | ||
diff --git a/etc/profile-m-z/qrencode.profile b/etc/profile-m-z/qrencode.profile new file mode 100644 index 000000000..5e49a342a --- /dev/null +++ b/etc/profile-m-z/qrencode.profile | |||
@@ -0,0 +1,58 @@ | |||
1 | # Firejail profile for qrencode | ||
2 | # Description: Encode input data in a QR Code and save as a PNG or EPS image. | ||
3 | # This file is overwritten after every install/update | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include qrencode.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | blacklist ${RUNUSER}/wayland-* | ||
11 | blacklist ${RUNUSER} | ||
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 | include whitelist-runuser-common.inc | ||
24 | include whitelist-usr-share-common.inc | ||
25 | include whitelist-var-common.inc | ||
26 | |||
27 | apparmor | ||
28 | caps.drop all | ||
29 | ipc-namespace | ||
30 | machine-id | ||
31 | net none | ||
32 | no3d | ||
33 | nodvd | ||
34 | nogroups | ||
35 | nonewprivs | ||
36 | noroot | ||
37 | nosound | ||
38 | notv | ||
39 | nou2f | ||
40 | novideo | ||
41 | protocol unix | ||
42 | seccomp | ||
43 | shell none | ||
44 | tracelog | ||
45 | x11 none | ||
46 | |||
47 | disable-mnt | ||
48 | private-bin qrencode | ||
49 | private-cache | ||
50 | private-dev | ||
51 | private-etc none | ||
52 | private-lib libpcre2-8.so.0 | ||
53 | private-tmp | ||
54 | |||
55 | dbus-user none | ||
56 | dbus-system none | ||
57 | |||
58 | memory-deny-write-execute | ||
diff --git a/etc/profile-m-z/warsow.profile b/etc/profile-m-z/warsow.profile index d8cd5557e..178e0c7b1 100644 --- a/etc/profile-m-z/warsow.profile +++ b/etc/profile-m-z/warsow.profile | |||
@@ -24,7 +24,10 @@ mkdir ${HOME}/.cache/warsow-2.1 | |||
24 | mkdir ${HOME}/.local/share/warsow-2.1 | 24 | mkdir ${HOME}/.local/share/warsow-2.1 |
25 | whitelist ${HOME}/.cache/warsow-2.1 | 25 | whitelist ${HOME}/.cache/warsow-2.1 |
26 | whitelist ${HOME}/.local/share/warsow-2.1 | 26 | whitelist ${HOME}/.local/share/warsow-2.1 |
27 | whitelist /usr/share/warsow | ||
27 | include whitelist-common.inc | 28 | include whitelist-common.inc |
29 | include whitelist-runuser-common.inc | ||
30 | include whitelist-usr-share-common.inc | ||
28 | include whitelist-var-common.inc | 31 | include whitelist-var-common.inc |
29 | 32 | ||
30 | caps.drop all | 33 | caps.drop all |