aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-m-z
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2022-10-11 11:12:25 -0400
committerLibravatar GitHub <noreply@github.com>2022-10-11 11:12:25 -0400
commit7968af73cdedd177291efdb65852d73a930b7fdd (patch)
tree31c10b7030f9c2c091210e09758ccea3ffee08f1 /etc/profile-m-z
parentMerge pull request #5402 from slowpeek/master (diff)
parentHarden qutebrowser (diff)
downloadfirejail-7968af73cdedd177291efdb65852d73a930b7fdd.tar.gz
firejail-7968af73cdedd177291efdb65852d73a930b7fdd.tar.zst
firejail-7968af73cdedd177291efdb65852d73a930b7fdd.zip
Merge pull request #5389 from glitsj16/qutebrowser-fixes
Harden qutebrowser profile
Diffstat (limited to 'etc/profile-m-z')
-rw-r--r--etc/profile-m-z/qutebrowser.profile27
1 files changed, 27 insertions, 0 deletions
diff --git a/etc/profile-m-z/qutebrowser.profile b/etc/profile-m-z/qutebrowser.profile
index fc910b589..ae62c0b89 100644
--- a/etc/profile-m-z/qutebrowser.profile
+++ b/etc/profile-m-z/qutebrowser.profile
@@ -10,14 +10,19 @@ noblacklist ${HOME}/.cache/qutebrowser
10noblacklist ${HOME}/.config/qutebrowser 10noblacklist ${HOME}/.config/qutebrowser
11noblacklist ${HOME}/.local/share/qutebrowser 11noblacklist ${HOME}/.local/share/qutebrowser
12 12
13# Allow /bin/sh (blacklisted by disable-shell.inc)
14include allow-bin-sh.inc
15
13# Allow python (blacklisted by disable-interpreters.inc) 16# Allow python (blacklisted by disable-interpreters.inc)
14include allow-python2.inc 17include allow-python2.inc
15include allow-python3.inc 18include allow-python3.inc
16 19
17include disable-common.inc 20include disable-common.inc
18include disable-devel.inc 21include disable-devel.inc
22include disable-exec.inc
19include disable-interpreters.inc 23include disable-interpreters.inc
20include disable-programs.inc 24include disable-programs.inc
25include disable-shell.inc
21 26
22mkdir ${HOME}/.cache/qutebrowser 27mkdir ${HOME}/.cache/qutebrowser
23mkdir ${HOME}/.config/qutebrowser 28mkdir ${HOME}/.config/qutebrowser
@@ -26,8 +31,14 @@ whitelist ${DOWNLOADS}
26whitelist ${HOME}/.cache/qutebrowser 31whitelist ${HOME}/.cache/qutebrowser
27whitelist ${HOME}/.config/qutebrowser 32whitelist ${HOME}/.config/qutebrowser
28whitelist ${HOME}/.local/share/qutebrowser 33whitelist ${HOME}/.local/share/qutebrowser
34whitelist /usr/share/qtbrowser
29include whitelist-common.inc 35include whitelist-common.inc
36include whitelist-run-common.inc
37include whitelist-runuser-common.inc
38include whitelist-usr-share-common.inc
39include whitelist-var-common.inc
30 40
41apparmor
31caps.drop all 42caps.drop all
32netfilter 43netfilter
33nodvd 44nodvd
@@ -38,3 +49,19 @@ protocol unix,inet,inet6,netlink
38# blacklisting of chroot system calls breaks qt webengine 49# blacklisting of chroot system calls breaks qt webengine
39seccomp !chroot,!name_to_handle_at 50seccomp !chroot,!name_to_handle_at
40# tracelog 51# tracelog
52
53disable-mnt
54private-cache
55private-dev
56private-etc alternatives,ca-certificates,crypto-policies,fonts,ld.so.cache,ld.so.preload,localtime,machine-id,pki,pulse,resolv.conf,ssl
57private-tmp
58
59dbus-user filter
60dbus-user.own org.mpris.MediaPlayer2.qutebrowser.*
61dbus-user.talk org.freedesktop.Notifications
62# Add the next line to your qutebrowser.local to allow screen sharing under wayland.
63#dbus-user.talk org.freedesktop.portal.Desktop
64# Add the next line to your qutebrowser.local if screen sharing sharing still does not work
65# with the above lines (might depend on the portal implementation).
66#ignore noroot
67dbus-system none