aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLibravatar glitsj16 <glitsj16@users.noreply.github.com>2024-02-08 13:43:24 +0000
committerLibravatar GitHub <noreply@github.com>2024-02-08 13:43:24 +0000
commiteded5cc728388acb973454a69ecd69cb1ea2c3ce (patch)
tree295a46cbdc6f78c42b2c72d943474714c7104f29 /etc
parentRELNOTES: add feature and build items (diff)
parentfirecfg.config: add gnome-keyring{,-3,-daemon} (diff)
downloadfirejail-eded5cc728388acb973454a69ecd69cb1ea2c3ce.tar.gz
firejail-eded5cc728388acb973454a69ecd69cb1ea2c3ce.tar.zst
firejail-eded5cc728388acb973454a69ecd69cb1ea2c3ce.zip
Merge pull request #6201 from glitsj16/gnome-keyring-fixes
gnome-keyring: harden and add gnome-keyring-daemon.profile
Diffstat (limited to 'etc')
-rw-r--r--etc/profile-a-l/gnome-keyring-daemon.profile62
-rw-r--r--etc/profile-a-l/gnome-keyring.profile53
2 files changed, 66 insertions, 49 deletions
diff --git a/etc/profile-a-l/gnome-keyring-daemon.profile b/etc/profile-a-l/gnome-keyring-daemon.profile
new file mode 100644
index 000000000..41ea136a6
--- /dev/null
+++ b/etc/profile-a-l/gnome-keyring-daemon.profile
@@ -0,0 +1,62 @@
1# Firejail profile for gnome-keyring-daemon
2# Description: Stores passwords and encryption keys
3# This file is overwritten after every install/update
4quiet
5# Persistent local customizations
6include gnome-keyring-daemon.local
7# Persistent global definitions
8include globals.local
9
10blacklist /tmp/.X11-unix
11blacklist ${RUNUSER}/wayland-*
12
13include disable-common.inc
14include disable-devel.inc
15include disable-exec.inc
16include disable-interpreters.inc
17include disable-programs.inc
18#include disable-X11.inc # x11 none
19include disable-xdg.inc
20
21whitelist ${RUNUSER}/gnupg
22whitelist ${RUNUSER}/keyring
23whitelist /usr/share/gnupg
24whitelist /usr/share/gnupg2
25include whitelist-common.inc
26include whitelist-runuser-common.inc
27include whitelist-usr-share-common.inc
28include whitelist-var-common.inc
29
30apparmor
31caps.drop all
32ipc-namespace
33machine-id
34netfilter
35no3d
36nodvd
37nogroups
38noinput
39nonewprivs
40noroot
41nosound
42notv
43nou2f
44novideo
45protocol unix,inet,inet6
46seccomp
47seccomp.block-secondary
48tracelog
49x11 none
50
51disable-mnt
52#private-bin gnome-keyrin*,secret-tool
53private-cache
54private-dev
55#private-lib alternatives,gnome-keyring,libsecret-1.so.*,pkcs11,security
56private-tmp
57
58#dbus-user none
59dbus-system none
60
61memory-deny-write-execute
62restrict-namespaces
diff --git a/etc/profile-a-l/gnome-keyring.profile b/etc/profile-a-l/gnome-keyring.profile
index aa0a7f4cc..287c6dcf9 100644
--- a/etc/profile-a-l/gnome-keyring.profile
+++ b/etc/profile-a-l/gnome-keyring.profile
@@ -1,62 +1,17 @@
1# Firejail profile for gnome-keyring 1# Firejail profile for gnome-keyring
2# Description: Stores passwords and encryption keys 2# Description: Stores passwords and encryption keys
3# This file is overwritten after every install/update 3# This file is overwritten after every install/update
4quiet
5# Persistent local customizations 4# Persistent local customizations
6include gnome-keyring.local 5include gnome-keyring.local
7# Persistent global definitions 6# Persistent global definitions
8include globals.local 7# added by included profile
8#include globals.local
9 9
10noblacklist ${HOME}/.gnupg 10noblacklist ${HOME}/.gnupg
11 11
12include disable-common.inc
13include disable-devel.inc
14include disable-exec.inc
15include disable-interpreters.inc
16include disable-programs.inc
17include disable-xdg.inc
18
19mkdir ${HOME}/.gnupg 12mkdir ${HOME}/.gnupg
20whitelist ${HOME}/.gnupg 13whitelist ${HOME}/.gnupg
21whitelist ${DOWNLOADS} 14whitelist ${DOWNLOADS}
22whitelist ${RUNUSER}/gnupg
23whitelist ${RUNUSER}/keyring
24whitelist /usr/share/gnupg
25whitelist /usr/share/gnupg2
26include whitelist-common.inc
27include whitelist-runuser-common.inc
28include whitelist-usr-share-common.inc
29include whitelist-var-common.inc
30
31apparmor
32caps.drop all
33ipc-namespace
34machine-id
35netfilter
36no3d
37nodvd
38nogroups
39noinput
40nonewprivs
41noroot
42nosound
43notv
44nou2f
45novideo
46protocol unix,inet,inet6
47seccomp
48seccomp.block-secondary
49tracelog
50
51disable-mnt
52#private-bin gnome-keyrin*,secret-tool
53private-cache
54private-dev
55#private-lib alternatives,gnome-keyring,libsecret-1.so.*,pkcs11,security
56private-tmp
57
58#dbus-user none
59dbus-system none
60 15
61memory-deny-write-execute 16# Redirect
62restrict-namespaces 17include gnome-keyring-daemon.profile