mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
Merge pull request #5389 from glitsj16/qutebrowser-fixes
Harden qutebrowser profile
This commit is contained in:
commit
7968af73cd
1 changed files with 27 additions and 0 deletions
|
|
@ -10,14 +10,19 @@ noblacklist ${HOME}/.cache/qutebrowser
|
|||
noblacklist ${HOME}/.config/qutebrowser
|
||||
noblacklist ${HOME}/.local/share/qutebrowser
|
||||
|
||||
# Allow /bin/sh (blacklisted by disable-shell.inc)
|
||||
include allow-bin-sh.inc
|
||||
|
||||
# Allow python (blacklisted by disable-interpreters.inc)
|
||||
include allow-python2.inc
|
||||
include allow-python3.inc
|
||||
|
||||
include disable-common.inc
|
||||
include disable-devel.inc
|
||||
include disable-exec.inc
|
||||
include disable-interpreters.inc
|
||||
include disable-programs.inc
|
||||
include disable-shell.inc
|
||||
|
||||
mkdir ${HOME}/.cache/qutebrowser
|
||||
mkdir ${HOME}/.config/qutebrowser
|
||||
|
|
@ -26,8 +31,14 @@ whitelist ${DOWNLOADS}
|
|||
whitelist ${HOME}/.cache/qutebrowser
|
||||
whitelist ${HOME}/.config/qutebrowser
|
||||
whitelist ${HOME}/.local/share/qutebrowser
|
||||
whitelist /usr/share/qtbrowser
|
||||
include whitelist-common.inc
|
||||
include whitelist-run-common.inc
|
||||
include whitelist-runuser-common.inc
|
||||
include whitelist-usr-share-common.inc
|
||||
include whitelist-var-common.inc
|
||||
|
||||
apparmor
|
||||
caps.drop all
|
||||
netfilter
|
||||
nodvd
|
||||
|
|
@ -38,3 +49,19 @@ protocol unix,inet,inet6,netlink
|
|||
# blacklisting of chroot system calls breaks qt webengine
|
||||
seccomp !chroot,!name_to_handle_at
|
||||
# tracelog
|
||||
|
||||
disable-mnt
|
||||
private-cache
|
||||
private-dev
|
||||
private-etc alternatives,ca-certificates,crypto-policies,fonts,ld.so.cache,ld.so.preload,localtime,machine-id,pki,pulse,resolv.conf,ssl
|
||||
private-tmp
|
||||
|
||||
dbus-user filter
|
||||
dbus-user.own org.mpris.MediaPlayer2.qutebrowser.*
|
||||
dbus-user.talk org.freedesktop.Notifications
|
||||
# Add the next line to your qutebrowser.local to allow screen sharing under wayland.
|
||||
#dbus-user.talk org.freedesktop.portal.Desktop
|
||||
# Add the next line to your qutebrowser.local if screen sharing sharing still does not work
|
||||
# with the above lines (might depend on the portal implementation).
|
||||
#ignore noroot
|
||||
dbus-system none
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue