diff options
| author | Sam Chudnick <sam@chudnick.com> | 2022-06-16 21:27:02 -0400 |
|---|---|---|
| committer | Sam Chudnick <sam@chudnick.com> | 2022-06-16 21:27:02 -0400 |
| commit | 3c1666bd4791467e11b53b843e062b2122c59b33 (patch) | |
| tree | 7a9dabc4199e4cb31e27440a1dd796bdabc8f6a5 /.config/firejail | |
| parent | c090ce58a2fd1edfbdefd756e18bf2f2296d8a4a (diff) | |
Added customizations for several firejail profiles
Configured local customizations for several firejail profiles.
Whitelisted non-standard paths needed for firefox and newsboat.
Blacklisted non-standard password manager paths.
Diffstat (limited to '.config/firejail')
| -rw-r--r-- | .config/firejail/disable-passwdmgr.local | 2 | ||||
| -rw-r--r-- | .config/firejail/firefox.profile | 51 | ||||
| -rw-r--r-- | .config/firejail/newsboat.profile | 54 |
3 files changed, 107 insertions, 0 deletions
diff --git a/.config/firejail/disable-passwdmgr.local b/.config/firejail/disable-passwdmgr.local new file mode 100644 index 0000000..7843019 --- /dev/null +++ b/.config/firejail/disable-passwdmgr.local | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | blacklist ${HOME}/.local/share/password-store | ||
| 2 | blacklist ${HOME}/.config/keepassxc/ | ||
diff --git a/.config/firejail/firefox.profile b/.config/firejail/firefox.profile new file mode 100644 index 0000000..158cf24 --- /dev/null +++ b/.config/firejail/firefox.profile | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | # Firejail profile for firefox | ||
| 2 | # Description: Safe and easy web browser from Mozilla | ||
| 3 | # This file is overwritten after every install/update | ||
| 4 | # Persistent local customizations | ||
| 5 | include firefox.local | ||
| 6 | # Persistent global definitions | ||
| 7 | include globals.local | ||
| 8 | |||
| 9 | name firefox | ||
| 10 | |||
| 11 | noblacklist ${HOME}/.cache/mozilla | ||
| 12 | noblacklist ${HOME}/.mozilla | ||
| 13 | |||
| 14 | mkdir ${HOME}/.cache/mozilla/firefox | ||
| 15 | mkdir ${HOME}/.mozilla | ||
| 16 | whitelist ${HOME}/.cache/mozilla/firefox | ||
| 17 | whitelist ${HOME}/.mozilla | ||
| 18 | |||
| 19 | whitelist /usr/share/doc | ||
| 20 | whitelist /usr/share/firefox | ||
| 21 | whitelist /usr/share/gnome-shell/search-providers/firefox-search-provider.ini | ||
| 22 | whitelist /usr/share/gtk-doc/html | ||
| 23 | whitelist /usr/share/mozilla | ||
| 24 | whitelist /usr/share/webext | ||
| 25 | whitelist ${HOME}/repos/website | ||
| 26 | whitelist ${HOME}/documents/local_webpages/ | ||
| 27 | include whitelist-usr-share-common.inc | ||
| 28 | |||
| 29 | # firefox requires a shell to launch on Arch. | ||
| 30 | #private-bin bash,dbus-launch,dbus-send,env,firefox,sh,which | ||
| 31 | # Fedora use shell scripts to launch firefox, at least this is required | ||
| 32 | #private-bin basename,bash,cat,dirname,expr,false,firefox,firefox-wayland,getenforce,ln,mkdir,pidof,restorecon,rm,rmdir,sed,sh,tclsh,true,uname | ||
| 33 | # private-etc must first be enabled in firefox-common.profile | ||
| 34 | #private-etc firefox | ||
| 35 | |||
| 36 | dbus-user filter | ||
| 37 | dbus-user.own org.mozilla.Firefox.* | ||
| 38 | dbus-user.own org.mozilla.firefox.* | ||
| 39 | dbus-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 | ||
| 48 | ignore dbus-user none | ||
| 49 | |||
| 50 | # Redirect | ||
| 51 | include firefox-common.profile | ||
diff --git a/.config/firejail/newsboat.profile b/.config/firejail/newsboat.profile new file mode 100644 index 0000000..0de5928 --- /dev/null +++ b/.config/firejail/newsboat.profile | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | # Firejail profile for Newsboat | ||
| 2 | # Description: RSS program | ||
| 3 | # This file is overwritten after every install/update | ||
| 4 | # Persistent local customizations | ||
| 5 | include newsboat.local | ||
| 6 | # Persistent global definitions | ||
| 7 | include globals.local | ||
| 8 | |||
| 9 | noblacklist ${HOME}/.newsboat | ||
| 10 | |||
| 11 | include disable-common.inc | ||
| 12 | include disable-devel.inc | ||
| 13 | include disable-exec.inc | ||
| 14 | include disable-interpreters.inc | ||
| 15 | include disable-passwdmgr.inc | ||
| 16 | include disable-programs.inc | ||
| 17 | include disable-xdg.inc | ||
| 18 | |||
| 19 | whitelist ${HOME}/.config/newsboat | ||
| 20 | whitelist ${HOME}/.local/share/newsboat | ||
| 21 | whitelist ${HOME}/repos/website/rss.xml | ||
| 22 | |||
| 23 | include whitelist-common.inc | ||
| 24 | include whitelist-runuser-common.inc | ||
| 25 | include whitelist-var-common.inc | ||
| 26 | |||
| 27 | caps.drop all | ||
| 28 | ipc-namespace | ||
| 29 | netfilter | ||
| 30 | no3d | ||
| 31 | nodvd | ||
| 32 | nogroups | ||
| 33 | nonewprivs | ||
| 34 | noroot | ||
| 35 | notv | ||
| 36 | nou2f | ||
| 37 | novideo | ||
| 38 | protocol inet,inet6 | ||
| 39 | seccomp | ||
| 40 | shell none | ||
| 41 | |||
| 42 | disable-mnt | ||
| 43 | private-bin gzip,lynx,newsboat,sh | ||
| 44 | private-cache | ||
| 45 | private-dev | ||
| 46 | private-etc alternatives,ca-certificates,crypto-policies,lynx.cfg,lynx.lss,pki,resolv.conf,ssl,terminfo | ||
| 47 | private-tmp | ||
| 48 | |||
| 49 | dbus-user none | ||
| 50 | dbus-system none | ||
| 51 | |||
| 52 | memory-deny-write-execute | ||
| 53 | |||
| 54 | quiet | ||
