aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLibravatar glitsj16 <glitsj16@users.noreply.github.com>2019-03-16 17:49:01 +0000
committerLibravatar GitHub <noreply@github.com>2019-03-16 17:49:01 +0000
commit0ea4ed8408f6fc506f9e4bef0f9e94fe14ea8d9c (patch)
treef95e3eb3c3e9680ecab513c8d6be3736d372c3c5 /etc
parentFix assogiate's private-bin (#2603) (diff)
downloadfirejail-0ea4ed8408f6fc506f9e4bef0f9e94fe14ea8d9c.tar.gz
firejail-0ea4ed8408f6fc506f9e4bef0f9e94fe14ea8d9c.tar.zst
firejail-0ea4ed8408f6fc506f9e4bef0f9e94fe14ea8d9c.zip
Seahorse revisited (#2600)
* Refactor seahorse into a whitelist profile * Refactor seahorse-tool as a whitelist profile * Create seahorse-daemon.profile * Add seahorse-daemon to firecfg * Drop blacklist /tmp/.X11-unix from seahorse.profile Thanks to @rusty-snake for pointing out blacklisting /tmp/.X11-unix is ridiculous for GUI's. * Add non-GUI option to seahorse-daemon
Diffstat (limited to 'etc')
-rw-r--r--etc/seahorse-daemon.profile15
-rw-r--r--etc/seahorse-tool.profile13
-rw-r--r--etc/seahorse.profile45
3 files changed, 57 insertions, 16 deletions
diff --git a/etc/seahorse-daemon.profile b/etc/seahorse-daemon.profile
new file mode 100644
index 000000000..1beb0edc6
--- /dev/null
+++ b/etc/seahorse-daemon.profile
@@ -0,0 +1,15 @@
1# Firejail profile for seahorse-daemon
2# Description: PGP encryption and signing
3# This file is overwritten after every install/update
4# Persistent local customizations
5include seahorse-daemon.local
6# Persistent global definitions
7# added by included profile
8#include globals.local
9
10blacklist /tmp/.X11-unix
11
12memory-deny-write-execute
13
14# Redirect
15include seahorse.profile
diff --git a/etc/seahorse-tool.profile b/etc/seahorse-tool.profile
index 2e792c8e0..96f365a4b 100644
--- a/etc/seahorse-tool.profile
+++ b/etc/seahorse-tool.profile
@@ -7,20 +7,11 @@ include seahorse-tool.local
7# added by included profile 7# added by included profile
8#include globals.local 8#include globals.local
9 9
10# dconf 10noblacklist ${DOWNLOADS}
11noblacklist ${HOME}/.config/dconf
12 11
13include disable-exec.inc
14include disable-xdg.inc
15include whitelist-var-common.inc
16
17apparmor
18ipc-namespace
19
20disable-mnt
21private-tmp 12private-tmp
22 13
23memory-deny-write-execute 14memory-deny-write-execute
24 15
25# Redirect 16# Redirect
26include gpg.profile 17include seahorse.profile
diff --git a/etc/seahorse.profile b/etc/seahorse.profile
index 83aeb6aec..cd9f6c767 100644
--- a/etc/seahorse.profile
+++ b/etc/seahorse.profile
@@ -4,22 +4,57 @@
4# Persistent local customizations 4# Persistent local customizations
5include seahorse.local 5include seahorse.local
6# Persistent global definitions 6# Persistent global definitions
7# added by included profile 7include globals.local
8#include globals.local
9 8
10# dconf 9# dconf
11noblacklist ${HOME}/.config/dconf 10noblacklist ${HOME}/.config/dconf
11whitelist ${HOME}/.config/dconf
12
13# gpg
14mkdir ${HOME}/.gnupg
15noblacklist ${HOME}/.gnupg
16whitelist ${HOME}/.gnupg
12 17
13# ssh 18# ssh
19whitelist /etc/ld.so.preload
14noblacklist /etc/ssh 20noblacklist /etc/ssh
21whitelist /etc/ssh
15noblacklist /tmp/ssh-* 22noblacklist /tmp/ssh-*
23whitelist /tmp/ssh-*
24mkdir ${HOME}/.ssh
16noblacklist ${HOME}/.ssh 25noblacklist ${HOME}/.ssh
26whitelist ${HOME}/.ssh
17 27
28include disable-common.inc
29include disable-devel.inc
18include disable-exec.inc 30include disable-exec.inc
31include disable-interpreters.inc
32include disable-passwdmgr.inc
33include disable-programs.inc
34include disable-xdg.inc
35include whitelist-common.inc
19include whitelist-var-common.inc 36include whitelist-var-common.inc
20 37
21apparmor 38apparmor
22ipc-namespace 39caps.drop all
40machine-id
41netfilter
42no3d
43nodvd
44nogroups
45nonewprivs
46noroot
47nosound
48notv
49nou2f
50novideo
51protocol unix,inet,inet6
52seccomp
53# shell none - causes gpg to hang
54tracelog
55
56disable-mnt
57private-cache
58private-dev
23 59
24# Redirect 60writable-run-user
25include gpg.profile