diff options
author | glitsj16 <glitsj16@users.noreply.github.com> | 2022-02-23 11:17:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-23 11:17:26 +0000 |
commit | 0d5d2e192971847420d9291fa0780c12add7fe8d (patch) | |
tree | 15be7f5a2715572dafc4680b084b069c79e10e76 | |
parent | evince fix (diff) | |
download | firejail-0d5d2e192971847420d9291fa0780c12add7fe8d.tar.gz firejail-0d5d2e192971847420d9291fa0780c12add7fe8d.tar.zst firejail-0d5d2e192971847420d9291fa0780c12add7fe8d.zip |
hardening zeal.profile (#4970)
-rw-r--r-- | etc/profile-m-z/zeal.profile | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/etc/profile-m-z/zeal.profile b/etc/profile-m-z/zeal.profile index 33bd2ae1b..eaf06b66a 100644 --- a/etc/profile-m-z/zeal.profile +++ b/etc/profile-m-z/zeal.profile | |||
@@ -6,18 +6,25 @@ include zeal.local | |||
6 | # Persistent global definitions | 6 | # Persistent global definitions |
7 | include globals.local | 7 | include globals.local |
8 | 8 | ||
9 | noblacklist ${HOME}/.config/Zeal | ||
10 | noblacklist ${HOME}/.cache/Zeal | 9 | noblacklist ${HOME}/.cache/Zeal |
10 | noblacklist ${HOME}/.config/Zeal | ||
11 | noblacklist ${HOME}/.local/share/Zeal | 11 | noblacklist ${HOME}/.local/share/Zeal |
12 | 12 | ||
13 | include disable-common.inc | 13 | include disable-common.inc |
14 | include disable-devel.inc | 14 | include disable-devel.inc |
15 | include disable-exec.inc | 15 | include disable-exec.inc |
16 | include disable-interpreters.inc | 16 | include disable-interpreters.inc |
17 | include disable-proc.inc | ||
17 | include disable-programs.inc | 18 | include disable-programs.inc |
18 | include disable-shell.inc | 19 | include disable-shell.inc |
19 | include disable-xdg.inc | 20 | include disable-xdg.inc |
20 | 21 | ||
22 | # Allow zeal to open links in Firefox. | ||
23 | # This also requires dbus-user filtering (see below). | ||
24 | noblacklist ${HOME}/.mozilla | ||
25 | whitelist ${HOME}/.mozilla/firefox/profiles.ini | ||
26 | read-only ${HOME}/.mozilla/firefox/profiles.ini | ||
27 | |||
21 | mkdir ${HOME}/.cache/Zeal | 28 | mkdir ${HOME}/.cache/Zeal |
22 | mkdir ${HOME}/.config/Zeal | 29 | mkdir ${HOME}/.config/Zeal |
23 | mkdir ${HOME}/.local/share/Zeal | 30 | mkdir ${HOME}/.local/share/Zeal |
@@ -25,6 +32,9 @@ whitelist ${HOME}/.cache/Zeal | |||
25 | whitelist ${HOME}/.config/Zeal | 32 | whitelist ${HOME}/.config/Zeal |
26 | whitelist ${HOME}/.local/share/Zeal | 33 | whitelist ${HOME}/.local/share/Zeal |
27 | include whitelist-common.inc | 34 | include whitelist-common.inc |
35 | include whitelist-run-common.inc | ||
36 | include whitelist-runuser-common.inc | ||
37 | include whitelist-usr-share-common.inc | ||
28 | include whitelist-var-common.inc | 38 | include whitelist-var-common.inc |
29 | 39 | ||
30 | apparmor | 40 | apparmor |
@@ -43,6 +53,7 @@ nou2f | |||
43 | novideo | 53 | novideo |
44 | protocol unix,inet,inet6,netlink | 54 | protocol unix,inet,inet6,netlink |
45 | seccomp | 55 | seccomp |
56 | seccomp.block-secondary | ||
46 | shell none | 57 | shell none |
47 | tracelog | 58 | tracelog |
48 | 59 | ||
@@ -53,7 +64,10 @@ private-dev | |||
53 | private-etc alternatives,ca-certificates,crypto-policies,fonts,host.conf,hostname,hosts,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,mime.types,nsswitch.conf,pango,pki,protocols,resolv.conf,rpc,services,ssl,Trolltech.conf,X11,xdg | 64 | private-etc alternatives,ca-certificates,crypto-policies,fonts,host.conf,hostname,hosts,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,mime.types,nsswitch.conf,pango,pki,protocols,resolv.conf,rpc,services,ssl,Trolltech.conf,X11,xdg |
54 | private-tmp | 65 | private-tmp |
55 | 66 | ||
56 | dbus-user none | 67 | dbus-user filter |
68 | dbus-user.talk org.mozilla.Firefox.* | ||
69 | dbus-user.talk org.mozilla.firefox.* | ||
70 | ?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher | ||
57 | dbus-system none | 71 | dbus-system none |
58 | 72 | ||
59 | # memory-deny-write-execute - breaks on Arch | 73 | # memory-deny-write-execute - breaks on Arch |