aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLibravatar Fred-Barclay <Fred-Barclay@users.noreply.github.com>2017-10-04 16:24:36 -0500
committerLibravatar Fred-Barclay <Fred-Barclay@users.noreply.github.com>2017-10-04 16:24:36 -0500
commitc6259375dff79484b9f3d587da9fbfa76a3b68b9 (patch)
tree1b7c010c2f6b0886ccd7a537bb146f7f46cb1d7f /etc
parentTighten spotify profile (diff)
downloadfirejail-c6259375dff79484b9f3d587da9fbfa76a3b68b9.tar.gz
firejail-c6259375dff79484b9f3d587da9fbfa76a3b68b9.tar.zst
firejail-c6259375dff79484b9f3d587da9fbfa76a3b68b9.zip
Tighten multiple profiles.
This adds whitelist-var-common, machine-id, memory-deny-write-execute, and noexec home and tmp when possible.
Diffstat (limited to 'etc')
-rw-r--r--etc/gedit.profile2
-rw-r--r--etc/gitter.profile11
-rw-r--r--etc/google-chrome.profile1
-rw-r--r--etc/handbrake.profile1
-rw-r--r--etc/hexchat.profile3
-rw-r--r--etc/keepassx.profile3
-rw-r--r--etc/keepassx2.profile37
-rw-r--r--etc/keepassxc.profile2
-rw-r--r--etc/libreoffice.profile2
-rw-r--r--etc/pluma.profile4
-rw-r--r--etc/qbittorrent.profile5
-rw-r--r--etc/stellarium.profile5
-rw-r--r--etc/thunderbird.profile4
-rw-r--r--etc/vlc.profile1
-rw-r--r--etc/xed.profile4
15 files changed, 48 insertions, 37 deletions
diff --git a/etc/gedit.profile b/etc/gedit.profile
index 928006d08..5bf246d66 100644
--- a/etc/gedit.profile
+++ b/etc/gedit.profile
@@ -19,6 +19,7 @@ include /etc/firejail/whitelist-var-common.inc
19 19
20caps.drop all 20caps.drop all
21# net none - makes settings immutable 21# net none - makes settings immutable
22machine-id
22no3d 23no3d
23nodvd 24nodvd
24nogroups 25nogroups
@@ -37,5 +38,6 @@ private-dev
37# private-etc fonts 38# private-etc fonts
38private-tmp 39private-tmp
39 40
41memory-deny-write-execute
40noexec ${HOME} 42noexec ${HOME}
41noexec /tmp 43noexec /tmp
diff --git a/etc/gitter.profile b/etc/gitter.profile
index 0a47bf888..3e84455f1 100644
--- a/etc/gitter.profile
+++ b/etc/gitter.profile
@@ -13,7 +13,13 @@ include /etc/firejail/disable-devel.inc
13include /etc/firejail/disable-passwdmgr.inc 13include /etc/firejail/disable-passwdmgr.inc
14include /etc/firejail/disable-programs.inc 14include /etc/firejail/disable-programs.inc
15 15
16whitelist ${DOWNLOADS}
17whitelist ~/.config/autostart
18whitelist ~/.config/Gitter
19include /etc/firejail/whitelist-var-common.inc
20
16caps.drop all 21caps.drop all
22machine-id
17netfilter 23netfilter
18nodvd 24nodvd
19nogroups 25nogroups
@@ -25,7 +31,12 @@ protocol unix,inet,inet6,netlink
25seccomp 31seccomp
26shell none 32shell none
27 33
34disable-mnt
28private-bin bash,env,gitter 35private-bin bash,env,gitter
36private-etc fonts,pulse,resolv.conf
29private-opt Gitter 37private-opt Gitter
30private-dev 38private-dev
31private-tmp 39private-tmp
40
41noexec ${HOME}
42noexec /tmp
diff --git a/etc/google-chrome.profile b/etc/google-chrome.profile
index a50e0e89d..6e5175989 100644
--- a/etc/google-chrome.profile
+++ b/etc/google-chrome.profile
@@ -21,6 +21,7 @@ whitelist ~/.cache/google-chrome
21whitelist ~/.config/google-chrome 21whitelist ~/.config/google-chrome
22whitelist ~/.pki 22whitelist ~/.pki
23include /etc/firejail/whitelist-common.inc 23include /etc/firejail/whitelist-common.inc
24include /etc/firejail/whitelist-var-common.inc
24 25
25caps.keep sys_chroot,sys_admin 26caps.keep sys_chroot,sys_admin
26netfilter 27netfilter
diff --git a/etc/handbrake.profile b/etc/handbrake.profile
index f5e7bc329..5235e91f2 100644
--- a/etc/handbrake.profile
+++ b/etc/handbrake.profile
@@ -19,7 +19,6 @@ netfilter
19nogroups 19nogroups
20nonewprivs 20nonewprivs
21noroot 21noroot
22nosound
23novideo 22novideo
24protocol unix,inet,inet6,netlink 23protocol unix,inet,inet6,netlink
25seccomp 24seccomp
diff --git a/etc/hexchat.profile b/etc/hexchat.profile
index fc817d9f9..47d39e8c4 100644
--- a/etc/hexchat.profile
+++ b/etc/hexchat.profile
@@ -16,8 +16,10 @@ include /etc/firejail/disable-programs.inc
16mkdir ~/.config/hexchat 16mkdir ~/.config/hexchat
17whitelist ~/.config/hexchat 17whitelist ~/.config/hexchat
18include /etc/firejail/whitelist-common.inc 18include /etc/firejail/whitelist-common.inc
19include /etc/firejail/whitelist-var-common.inc
19 20
20caps.drop all 21caps.drop all
22machine-id
21netfilter 23netfilter
22no3d 24no3d
23nodvd 25nodvd
@@ -38,5 +40,6 @@ private-bin hexchat
38private-dev 40private-dev
39private-tmp 41private-tmp
40 42
43memory-deny-write-execute
41noexec ${HOME} 44noexec ${HOME}
42noexec /tmp 45noexec /tmp
diff --git a/etc/keepassx.profile b/etc/keepassx.profile
index 9d943d89c..27ca408f5 100644
--- a/etc/keepassx.profile
+++ b/etc/keepassx.profile
@@ -15,6 +15,8 @@ include /etc/firejail/disable-devel.inc
15include /etc/firejail/disable-passwdmgr.inc 15include /etc/firejail/disable-passwdmgr.inc
16include /etc/firejail/disable-programs.inc 16include /etc/firejail/disable-programs.inc
17 17
18include /etc/firejail/whitelist-var-common.inc
19
18caps.drop all 20caps.drop all
19machine-id 21machine-id
20net none 22net none
@@ -36,5 +38,6 @@ private-dev
36private-etc fonts,machine-id 38private-etc fonts,machine-id
37private-tmp 39private-tmp
38 40
41memory-deny-write-execute
39noexec ${HOME} 42noexec ${HOME}
40noexec /tmp 43noexec /tmp
diff --git a/etc/keepassx2.profile b/etc/keepassx2.profile
index e20e06b76..ba98df19d 100644
--- a/etc/keepassx2.profile
+++ b/etc/keepassx2.profile
@@ -1,38 +1,5 @@
1# Firejail profile for keepassx2 1# Firejail profile for keepassx2
2# This file is overwritten after every install/update 2# This file is overwritten after every install/update
3# Persistent local customizations
4include /etc/firejail/keepassx2.local
5# Persistent global definitions
6include /etc/firejail/globals.local
7 3
8noblacklist ${HOME}/*.kdb 4# Redirects
9noblacklist ${HOME}/*.kdbx 5include /etc/firejail/keepassx.profile
10noblacklist ${HOME}/.config/keepassx
11noblacklist ${HOME}/.keepassx
12
13include /etc/firejail/disable-common.inc
14include /etc/firejail/disable-devel.inc
15include /etc/firejail/disable-passwdmgr.inc
16include /etc/firejail/disable-programs.inc
17
18caps.drop all
19net none
20no3d
21nodvd
22nogroups
23nonewprivs
24noroot
25nosound
26notv
27novideo
28protocol unix
29seccomp
30shell none
31
32private-bin keepassx2
33private-dev
34private-etc fonts
35private-tmp
36
37noexec ${HOME}
38noexec /tmp
diff --git a/etc/keepassxc.profile b/etc/keepassxc.profile
index f79cda80d..a8c6d65f5 100644
--- a/etc/keepassxc.profile
+++ b/etc/keepassxc.profile
@@ -15,6 +15,8 @@ include /etc/firejail/disable-devel.inc
15include /etc/firejail/disable-passwdmgr.inc 15include /etc/firejail/disable-passwdmgr.inc
16include /etc/firejail/disable-programs.inc 16include /etc/firejail/disable-programs.inc
17 17
18include /etc/firejail/whitelist-var-common.inc
19
18caps.drop all 20caps.drop all
19net none 21net none
20no3d 22no3d
diff --git a/etc/libreoffice.profile b/etc/libreoffice.profile
index 8d05a557c..214b49c65 100644
--- a/etc/libreoffice.profile
+++ b/etc/libreoffice.profile
@@ -17,6 +17,7 @@ include /etc/firejail/disable-programs.inc
17include /etc/firejail/whitelist-var-common.inc 17include /etc/firejail/whitelist-var-common.inc
18 18
19caps.drop all 19caps.drop all
20machine-id
20netfilter 21netfilter
21nodvd 22nodvd
22nogroups 23nogroups
@@ -29,6 +30,7 @@ shell none
29tracelog 30tracelog
30 31
31private-dev 32private-dev
33private-tmp
32 34
33noexec ${HOME} 35noexec ${HOME}
34noexec /tmp 36noexec /tmp
diff --git a/etc/pluma.profile b/etc/pluma.profile
index 718dee440..56786fda7 100644
--- a/etc/pluma.profile
+++ b/etc/pluma.profile
@@ -12,8 +12,11 @@ include /etc/firejail/disable-devel.inc
12include /etc/firejail/disable-passwdmgr.inc 12include /etc/firejail/disable-passwdmgr.inc
13include /etc/firejail/disable-programs.inc 13include /etc/firejail/disable-programs.inc
14 14
15include /etc/firejail/whitelist-var-common.inc
16
15caps.drop all 17caps.drop all
16# net none - makes settings immutable 18# net none - makes settings immutable
19machine-id
17no3d 20no3d
18nodvd 21nodvd
19nogroups 22nogroups
@@ -32,5 +35,6 @@ private-dev
32# private-etc fonts 35# private-etc fonts
33private-tmp 36private-tmp
34 37
38memory-deny-write-execute
35noexec ${HOME} 39noexec ${HOME}
36noexec /tmp 40noexec /tmp
diff --git a/etc/qbittorrent.profile b/etc/qbittorrent.profile
index 86db5c26c..aeb52b991 100644
--- a/etc/qbittorrent.profile
+++ b/etc/qbittorrent.profile
@@ -25,6 +25,7 @@ whitelist ~/.config/qBittorrentrc
25whitelist ~/.config/qt5ct 25whitelist ~/.config/qt5ct
26whitelist ~/.local/share/data/qBittorrent 26whitelist ~/.local/share/data/qBittorrent
27include /etc/firejail/whitelist-common.inc 27include /etc/firejail/whitelist-common.inc
28include /etc/firejail/whitelist-var-common.inc
28 29
29caps.drop all 30caps.drop all
30machine-id 31machine-id
@@ -44,3 +45,7 @@ seccomp
44private-dev 45private-dev
45# private-etc X11,fonts,xdg,resolv.conf 46# private-etc X11,fonts,xdg,resolv.conf
46private-tmp 47private-tmp
48
49memory-deny-write-execute
50noexec ${HOME}
51noexec /tmp
diff --git a/etc/stellarium.profile b/etc/stellarium.profile
index 89e2d1a30..360b9f881 100644
--- a/etc/stellarium.profile
+++ b/etc/stellarium.profile
@@ -18,8 +18,10 @@ mkdir ~/.stellarium
18whitelist ~/.config/stellarium 18whitelist ~/.config/stellarium
19whitelist ~/.stellarium 19whitelist ~/.stellarium
20include /etc/firejail/whitelist-common.inc 20include /etc/firejail/whitelist-common.inc
21include /etc/firejail/whitelist-var-common.inc
21 22
22caps.drop all 23caps.drop all
24machine-id
23netfilter 25netfilter
24nodvd 26nodvd
25nogroups 27nogroups
@@ -36,3 +38,6 @@ disable-mnt
36private-bin stellarium 38private-bin stellarium
37private-dev 39private-dev
38private-tmp 40private-tmp
41
42noexec ${HOME}
43noexec /tmp
diff --git a/etc/thunderbird.profile b/etc/thunderbird.profile
index 8e878eb1c..db944a2c0 100644
--- a/etc/thunderbird.profile
+++ b/etc/thunderbird.profile
@@ -22,9 +22,11 @@ whitelist ~/.gnupg
22whitelist ~/.icedove 22whitelist ~/.icedove
23whitelist ~/.thunderbird 23whitelist ~/.thunderbird
24include /etc/firejail/whitelist-common.inc 24include /etc/firejail/whitelist-common.inc
25include /etc/firejail/whitelist-var-common.inc
25 26
26ignore private-tmp 27ignore private-tmp
27 28machine-id
29disable-mnt
28read-only ~/.config/mimeapps.list 30read-only ~/.config/mimeapps.list
29 31
30# allow browsers 32# allow browsers
diff --git a/etc/vlc.profile b/etc/vlc.profile
index c3a4d58d0..4e6d37fc5 100644
--- a/etc/vlc.profile
+++ b/etc/vlc.profile
@@ -15,6 +15,7 @@ include /etc/firejail/disable-programs.inc
15include /etc/firejail/whitelist-var-common.inc 15include /etc/firejail/whitelist-var-common.inc
16 16
17caps.drop all 17caps.drop all
18machine-id
18netfilter 19netfilter
19# nogroups 20# nogroups
20nonewprivs 21nonewprivs
diff --git a/etc/xed.profile b/etc/xed.profile
index 42a42ef5f..bb8b0bf23 100644
--- a/etc/xed.profile
+++ b/etc/xed.profile
@@ -12,8 +12,11 @@ include /etc/firejail/disable-devel.inc
12include /etc/firejail/disable-passwdmgr.inc 12include /etc/firejail/disable-passwdmgr.inc
13include /etc/firejail/disable-programs.inc 13include /etc/firejail/disable-programs.inc
14 14
15include /etc/firejail/whitelist-var-common.inc
16
15caps.drop all 17caps.drop all
16# net none - makes settings immutable 18# net none - makes settings immutable
19machine-id
17no3d 20no3d
18nodvd 21nodvd
19nogroups 22nogroups
@@ -32,5 +35,6 @@ private-dev
32# private-etc fonts 35# private-etc fonts
33private-tmp 36private-tmp
34 37
38memory-deny-write-execute
35noexec ${HOME} 39noexec ${HOME}
36noexec /tmp 40noexec /tmp