summaryrefslogtreecommitdiff
path: root/.config/firejail/firefox.profile
diff options
context:
space:
mode:
Diffstat (limited to '.config/firejail/firefox.profile')
-rw-r--r--.config/firejail/firefox.profile68
1 files changed, 52 insertions, 16 deletions
diff --git a/.config/firejail/firefox.profile b/.config/firejail/firefox.profile
index 158cf24..8031c85 100644
--- a/.config/firejail/firefox.profile
+++ b/.config/firejail/firefox.profile
@@ -23,29 +23,65 @@ whitelist /usr/share/gtk-doc/html
23whitelist /usr/share/mozilla 23whitelist /usr/share/mozilla
24whitelist /usr/share/webext 24whitelist /usr/share/webext
25whitelist ${HOME}/repos/website 25whitelist ${HOME}/repos/website
26whitelist ${HOME}/repos/homelab_iac/docs
26whitelist ${HOME}/documents/local_webpages/ 27whitelist ${HOME}/documents/local_webpages/
28whitelist ${HOME}/documents/downloads/
29whitelist ${HOME}/documents/isos/
30read-only ${HOME}/documents/isos
27include whitelist-usr-share-common.inc 31include whitelist-usr-share-common.inc
28 32
29# firefox requires a shell to launch on Arch. 33# Access to GPG and (limited-scope) passwords for browserpass
30#private-bin bash,dbus-launch,dbus-send,env,firefox,sh,which 34writable-run-user
31# Fedora use shell scripts to launch firefox, at least this is required 35noblacklist ${HOME}/.gnupg
32#private-bin basename,bash,cat,dirname,expr,false,firefox,firefox-wayland,getenforce,ln,mkdir,pidof,restorecon,rm,rmdir,sed,sh,tclsh,true,uname 36whitelist ${HOME}/.gnupg
33# private-etc must first be enabled in firefox-common.profile 37noblacklist ${RUNUSER}/gnupg
34#private-etc firefox 38
39noblacklist ${HOME}/.local/share/password-store
40whitelist ${HOME}/.local/share/password-store/web
41whitelist ${HOME}/.local/share/password-store/homelab/user
42whitelist ${HOME}/.local/share/password-store/homelab/proxmox
43whitelist ${HOME}/.local/share/password-store/homelab/proxmox-backup
35 44
36dbus-user filter 45dbus-user filter
37dbus-user.own org.mozilla.Firefox.* 46dbus-user.own org.mozilla.Firefox.*
38dbus-user.own org.mozilla.firefox.* 47dbus-user.own org.mozilla.firefox.*
39dbus-user.own org.mpris.MediaPlayer2.firefox.* 48dbus-user.own org.mpris.MediaPlayer2.firefox.*
40# Uncomment or put in your firefox.local to enable native notifications.
41#dbus-user.talk org.freedesktop.Notifications
42# Uncomment or put in your firefox.local to allow to inhibit screensavers
43#dbus-user.talk org.freedesktop.ScreenSaver
44# Uncomment or put in your firefox.local for plasma browser integration
45#dbus-user.own org.mpris.MediaPlayer2.plasma-browser-integration
46#dbus-user.talk org.kde.JobViewServer
47#dbus-user.talk org.kde.kuiserver
48ignore dbus-user none 49ignore dbus-user none
49 50
50# Redirect 51noblacklist ${HOME}/.pki
51include firefox-common.profile 52noblacklist ${HOME}/.local/share/pki
53mkdir ${HOME}/.pki
54mkdir ${HOME}/.local/share/pki
55whitelist ${DOWNLOADS}
56whitelist ${HOME}/.pki
57whitelist ${HOME}/.local/share/pki
58include whitelist-common.inc
59include whitelist-var-common.inc
60
61apparmor
62caps.drop all
63#machine-id
64netfilter
65nodvd
66nogroups
67nonewprivs
68noroot
69notv
70?BROWSER_DISABLE_U2F: nou2f
71protocol unix,inet,inet6,netlink
72seccomp !chroot
73shell none
74disable-mnt
75?BROWSER_DISABLE_U2F: private-dev
76private-tmp
77dbus-user none
78dbus-system none
79
80include disable-common.inc
81include disable-devel.inc
82include disable-exec.inc
83include disable-interpreters.inc
84include disable-programs.inc
85
86# Breaks GPG when enabled
87#include whitelist-runuser-common.inc