summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Chudnick <sam@chudnick.com>2022-06-16 21:27:02 -0400
committerSam Chudnick <sam@chudnick.com>2022-06-16 21:27:02 -0400
commit3c1666bd4791467e11b53b843e062b2122c59b33 (patch)
tree7a9dabc4199e4cb31e27440a1dd796bdabc8f6a5
parentc090ce58a2fd1edfbdefd756e18bf2f2296d8a4a (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.
-rw-r--r--.config/firejail/disable-passwdmgr.local2
-rw-r--r--.config/firejail/firefox.profile51
-rw-r--r--.config/firejail/newsboat.profile54
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 @@
1blacklist ${HOME}/.local/share/password-store
2blacklist ${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
5include firefox.local
6# Persistent global definitions
7include globals.local
8
9name firefox
10
11noblacklist ${HOME}/.cache/mozilla
12noblacklist ${HOME}/.mozilla
13
14mkdir ${HOME}/.cache/mozilla/firefox
15mkdir ${HOME}/.mozilla
16whitelist ${HOME}/.cache/mozilla/firefox
17whitelist ${HOME}/.mozilla
18
19whitelist /usr/share/doc
20whitelist /usr/share/firefox
21whitelist /usr/share/gnome-shell/search-providers/firefox-search-provider.ini
22whitelist /usr/share/gtk-doc/html
23whitelist /usr/share/mozilla
24whitelist /usr/share/webext
25whitelist ${HOME}/repos/website
26whitelist ${HOME}/documents/local_webpages/
27include 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
36dbus-user filter
37dbus-user.own org.mozilla.Firefox.*
38dbus-user.own org.mozilla.firefox.*
39dbus-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
49
50# Redirect
51include 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
5include newsboat.local
6# Persistent global definitions
7include globals.local
8
9noblacklist ${HOME}/.newsboat
10
11include disable-common.inc
12include disable-devel.inc
13include disable-exec.inc
14include disable-interpreters.inc
15include disable-passwdmgr.inc
16include disable-programs.inc
17include disable-xdg.inc
18
19whitelist ${HOME}/.config/newsboat
20whitelist ${HOME}/.local/share/newsboat
21whitelist ${HOME}/repos/website/rss.xml
22
23include whitelist-common.inc
24include whitelist-runuser-common.inc
25include whitelist-var-common.inc
26
27caps.drop all
28ipc-namespace
29netfilter
30no3d
31nodvd
32nogroups
33nonewprivs
34noroot
35notv
36nou2f
37novideo
38protocol inet,inet6
39seccomp
40shell none
41
42disable-mnt
43private-bin gzip,lynx,newsboat,sh
44private-cache
45private-dev
46private-etc alternatives,ca-certificates,crypto-policies,lynx.cfg,lynx.lss,pki,resolv.conf,ssl,terminfo
47private-tmp
48
49dbus-user none
50dbus-system none
51
52memory-deny-write-execute
53
54quiet