aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-10-02 10:08:49 -0400
committerLibravatar GitHub <noreply@github.com>2016-10-02 10:08:49 -0400
commit7deec25a94430c3893f99955a1a5bbea380e9ef9 (patch)
tree943ad437dd091d0cefa5394a84d8a83d1a45b892 /etc
parentfeh, ranger, zathura profiles (diff)
parentfixed description (diff)
downloadfirejail-7deec25a94430c3893f99955a1a5bbea380e9ef9.tar.gz
firejail-7deec25a94430c3893f99955a1a5bbea380e9ef9.tar.zst
firejail-7deec25a94430c3893f99955a1a5bbea380e9ef9.zip
Merge pull request #828 from vismir2/master
hardened profiles and fixed blacklisting
Diffstat (limited to 'etc')
-rw-r--r--etc/cherrytree.profile6
-rw-r--r--etc/disable-common.inc3
-rw-r--r--etc/disable-programs.inc3
-rw-r--r--etc/feh.profile12
-rw-r--r--etc/mupdf.profile6
-rw-r--r--etc/ranger.profile11
-rw-r--r--etc/zathura.profile7
7 files changed, 37 insertions, 11 deletions
diff --git a/etc/cherrytree.profile b/etc/cherrytree.profile
index 76ee70679..7c324a34b 100644
--- a/etc/cherrytree.profile
+++ b/etc/cherrytree.profile
@@ -6,12 +6,6 @@ include /etc/firejail/disable-programs.inc
6include /etc/firejail/disable-devel.inc 6include /etc/firejail/disable-devel.inc
7include /etc/firejail/disable-passwdmgr.inc 7include /etc/firejail/disable-passwdmgr.inc
8 8
9whitelist ${HOME}/cherrytree
10mkdir ~/.config/cherrytree
11whitelist ${HOME}/.config/cherrytree/
12mkdir ~/.local/share
13whitelist ${HOME}/.local/share/
14
15caps.drop all 9caps.drop all
16netfilter 10netfilter
17nonewprivs 11nonewprivs
diff --git a/etc/disable-common.inc b/etc/disable-common.inc
index c4169db8a..4f854c8d8 100644
--- a/etc/disable-common.inc
+++ b/etc/disable-common.inc
@@ -121,6 +121,9 @@ blacklist ${HOME}/.smbcredentials
121blacklist ${HOME}/*.kdbx 121blacklist ${HOME}/*.kdbx
122blacklist ${HOME}/*.kdb 122blacklist ${HOME}/*.kdb
123blacklist ${HOME}/*.key 123blacklist ${HOME}/*.key
124blacklist ${HOME}/.muttrc
125blacklist ${HOME}/.mutt/muttrc
126blacklist ${HOME}/.msmtprc
124blacklist /etc/shadow 127blacklist /etc/shadow
125blacklist /etc/gshadow 128blacklist /etc/gshadow
126blacklist /etc/passwd- 129blacklist /etc/passwd-
diff --git a/etc/disable-programs.inc b/etc/disable-programs.inc
index e9416b34a..c13885739 100644
--- a/etc/disable-programs.inc
+++ b/etc/disable-programs.inc
@@ -69,6 +69,9 @@ blacklist ${HOME}/.config/qutebrowser
69blacklist ${HOME}/.8pecxstudios 69blacklist ${HOME}/.8pecxstudios
70blacklist ${HOME}/.config/brave 70blacklist ${HOME}/.config/brave
71blacklist ${HOME}/.config/inox 71blacklist ${HOME}/.config/inox
72blacklist ${HOME}/.muttrc
73blacklist ${HOME}/.mutt/muttrc
74blacklist ${HOME}/.msmtprc
72 75
73# Instant Messaging 76# Instant Messaging
74blacklist ${HOME}/.config/hexchat 77blacklist ${HOME}/.config/hexchat
diff --git a/etc/feh.profile b/etc/feh.profile
index ba8f32f44..5fcb6bf25 100644
--- a/etc/feh.profile
+++ b/etc/feh.profile
@@ -5,9 +5,17 @@ include /etc/firejail/disable-devel.inc
5include /etc/firejail/disable-passwdmgr.inc 5include /etc/firejail/disable-passwdmgr.inc
6 6
7caps.drop all 7caps.drop all
8seccomp
9protocol unix
8netfilter 10netfilter
11net none
9nonewprivs 12nonewprivs
10noroot 13noroot
14nogroups
11nosound 15nosound
12protocol unix 16shell none
13seccomp 17
18private-bin feh
19whitelist /tmp/.X11-unix
20private-dev
21private-etc feh
diff --git a/etc/mupdf.profile b/etc/mupdf.profile
index 6f2db511b..d1a157c3c 100644
--- a/etc/mupdf.profile
+++ b/etc/mupdf.profile
@@ -11,8 +11,14 @@ noroot
11nosound 11nosound
12protocol unix 12protocol unix
13seccomp 13seccomp
14netfilter
14shell none 15shell none
15tracelog 16tracelog
16 17
18private-bin mupdf
17private-tmp 19private-tmp
18private-dev 20private-dev
21
22# mupdf will never write anything
23read-only ${HOME}
24
diff --git a/etc/ranger.profile b/etc/ranger.profile
index 775098d91..a040cd6bc 100644
--- a/etc/ranger.profile
+++ b/etc/ranger.profile
@@ -1,4 +1,9 @@
1# ranger file manager profile 1# ranger file manager profile
2noblacklist /usr/bin/perl
3#noblacklist /usr/bin/cpan*
4noblacklist /usr/share/perl*
5noblacklist /usr/lib/perl*
6
2include /etc/firejail/disable-common.inc 7include /etc/firejail/disable-common.inc
3include /etc/firejail/disable-programs.inc 8include /etc/firejail/disable-programs.inc
4include /etc/firejail/disable-devel.inc 9include /etc/firejail/disable-devel.inc
@@ -6,8 +11,14 @@ include /etc/firejail/disable-passwdmgr.inc
6 11
7caps.drop all 12caps.drop all
8netfilter 13netfilter
14net none
9nonewprivs 15nonewprivs
10noroot 16noroot
17nogroups
11protocol unix 18protocol unix
12seccomp 19seccomp
13nosound 20nosound
21
22private-tmp
23private-dev
24
diff --git a/etc/zathura.profile b/etc/zathura.profile
index 955792b2e..7093c52b2 100644
--- a/etc/zathura.profile
+++ b/etc/zathura.profile
@@ -12,8 +12,9 @@ protocol unix
12netfilter 12netfilter
13nonewprivs 13nonewprivs
14noroot 14noroot
15nogroups
15nosound 16nosound
16
17#net none
18shell none 17shell none
19#private-etc X11 18
19private-bin zathura
20private-dev