# Firejail profile for firefox # Description: Safe and easy web browser from Mozilla # This file is overwritten after every install/update # Persistent local customizations include firefox.local # Persistent global definitions include globals.local name firefox noblacklist ${HOME}/.cache/mozilla noblacklist ${HOME}/.mozilla mkdir ${HOME}/.cache/mozilla/firefox mkdir ${HOME}/.mozilla whitelist ${HOME}/.cache/mozilla/firefox whitelist ${HOME}/.mozilla whitelist /usr/share/doc whitelist /usr/share/firefox whitelist /usr/share/gnome-shell/search-providers/firefox-search-provider.ini whitelist /usr/share/gtk-doc/html whitelist /usr/share/mozilla whitelist /usr/share/webext whitelist ${HOME}/repos/website whitelist ${HOME}/repos/homelab_iac/docs whitelist ${HOME}/documents/local_webpages/ whitelist ${HOME}/documents/downloads/ whitelist ${HOME}/documents/isos/ read-only ${HOME}/documents/isos include whitelist-usr-share-common.inc # Access to GPG and (limited-scope) passwords for browserpass writable-run-user noblacklist ${HOME}/.gnupg whitelist ${HOME}/.gnupg noblacklist ${RUNUSER}/gnupg noblacklist ${HOME}/.local/share/password-store whitelist ${HOME}/.local/share/password-store/web whitelist ${HOME}/.local/share/password-store/homelab/user whitelist ${HOME}/.local/share/password-store/homelab/proxmox whitelist ${HOME}/.local/share/password-store/homelab/proxmox-backup dbus-user filter dbus-user.own org.mozilla.Firefox.* dbus-user.own org.mozilla.firefox.* dbus-user.own org.mpris.MediaPlayer2.firefox.* ignore dbus-user none noblacklist ${HOME}/.pki noblacklist ${HOME}/.local/share/pki mkdir ${HOME}/.pki mkdir ${HOME}/.local/share/pki whitelist ${DOWNLOADS} whitelist ${HOME}/.pki whitelist ${HOME}/.local/share/pki include whitelist-common.inc include whitelist-var-common.inc apparmor caps.drop all #machine-id netfilter nodvd nogroups nonewprivs noroot notv ?BROWSER_DISABLE_U2F: nou2f protocol unix,inet,inet6,netlink seccomp !chroot shell none disable-mnt ?BROWSER_DISABLE_U2F: private-dev private-tmp dbus-user none dbus-system none include disable-common.inc include disable-devel.inc include disable-exec.inc include disable-interpreters.inc include disable-programs.inc # Breaks GPG when enabled #include whitelist-runuser-common.inc