aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-m-z
diff options
context:
space:
mode:
authorLibravatar glitsj16 <glitsj16@users.noreply.github.com>2023-07-22 12:37:24 +0000
committerLibravatar GitHub <noreply@github.com>2023-07-22 12:37:24 +0000
commit9057fd7a5e80268d68dc7b10852120f9cc7df2a6 (patch)
tree95eb52f4cd417c2a4b80fae65827d3fa8998cf66 /etc/profile-m-z
parentfirefox-common-addons.profile: restore vulkan whitelist (diff)
downloadfirejail-9057fd7a5e80268d68dc7b10852120f9cc7df2a6.tar.gz
firejail-9057fd7a5e80268d68dc7b10852120f9cc7df2a6.tar.zst
firejail-9057fd7a5e80268d68dc7b10852120f9cc7df2a6.zip
torbrowser-launcher: hardening (#5886)
torbrowser-launcher: more hardening as per review torbrowser-launcher: revert enabling restrict-namespaces Suggested in review by @rusty-snake.
Diffstat (limited to 'etc/profile-m-z')
-rw-r--r--etc/profile-m-z/torbrowser-launcher.profile6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/profile-m-z/torbrowser-launcher.profile b/etc/profile-m-z/torbrowser-launcher.profile
index 41ac6f7a7..86746c7f1 100644
--- a/etc/profile-m-z/torbrowser-launcher.profile
+++ b/etc/profile-m-z/torbrowser-launcher.profile
@@ -22,6 +22,7 @@ include disable-common.inc
22include disable-devel.inc 22include disable-devel.inc
23include disable-exec.inc 23include disable-exec.inc
24include disable-interpreters.inc 24include disable-interpreters.inc
25include disable-proc.inc
25include disable-programs.inc 26include disable-programs.inc
26include disable-xdg.inc 27include disable-xdg.inc
27 28
@@ -33,9 +34,10 @@ whitelist ${HOME}/.local/share/torbrowser
33whitelist /opt/tor-browser 34whitelist /opt/tor-browser
34whitelist /usr/share/torbrowser-launcher 35whitelist /usr/share/torbrowser-launcher
35include whitelist-common.inc 36include whitelist-common.inc
36include whitelist-var-common.inc 37include whitelist-run-common.inc
37include whitelist-runuser-common.inc 38include whitelist-runuser-common.inc
38include whitelist-usr-share-common.inc 39include whitelist-usr-share-common.inc
40include whitelist-var-common.inc
39 41
40# Add 'apparmor' to your torbrowser-launcher.local to enable AppArmor support. 42# Add 'apparmor' to your torbrowser-launcher.local to enable AppArmor support.
41# IMPORTANT: the relevant rule in /etc/apparmor.d/local/firejail-default will need 43# IMPORTANT: the relevant rule in /etc/apparmor.d/local/firejail-default will need
@@ -53,12 +55,14 @@ nou2f
53novideo 55novideo
54protocol unix,inet,inet6 56protocol unix,inet,inet6
55seccomp !chroot 57seccomp !chroot
58seccomp.block-secondary
56#tracelog - may cause issues, see #1930 59#tracelog - may cause issues, see #1930
57 60
58disable-mnt 61disable-mnt
59private-bin bash,cat,cp,cut,dirname,env,expr,file,gpg,grep,gxmessage,id,kdialog,ln,mkdir,mv,python*,rm,sed,sh,tail,tar,tclsh,test,tor-browser,tor-browser-en,torbrowser-launcher,update-desktop-database,xmessage,xz,zenity 62private-bin bash,cat,cp,cut,dirname,env,expr,file,gpg,grep,gxmessage,id,kdialog,ln,mkdir,mv,python*,rm,sed,sh,tail,tar,tclsh,test,tor-browser,tor-browser-en,torbrowser-launcher,update-desktop-database,xmessage,xz,zenity
60private-dev 63private-dev
61private-etc @tls-ca 64private-etc @tls-ca
65#private-opt tor-browser - can cause slow startup
62private-tmp 66private-tmp
63 67
64dbus-user none 68dbus-user none