aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLibravatar glitsj16 <glitsj16@users.noreply.github.com>2024-02-07 23:52:19 +0000
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-02-08 10:20:29 -0300
commit12ef05da1cc2a61ac6a56d886a20ce84d5ac3202 (patch)
tree33cc1ad00ce9ec29489206d3cbb2f0134494dfcd /etc
parentgnome-keyring: harden and remove quiet (diff)
downloadfirejail-12ef05da1cc2a61ac6a56d886a20ce84d5ac3202.tar.gz
firejail-12ef05da1cc2a61ac6a56d886a20ce84d5ac3202.tar.zst
firejail-12ef05da1cc2a61ac6a56d886a20ce84d5ac3202.zip
Create gnome-keyring-daemon.profile
And use it as the base for the existing gnome-keyring.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.profile57
2 files changed, 66 insertions, 53 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 7d6475d98..287c6dcf9 100644
--- a/etc/profile-a-l/gnome-keyring.profile
+++ b/etc/profile-a-l/gnome-keyring.profile
@@ -4,63 +4,14 @@
4# Persistent local customizations 4# Persistent local customizations
5include gnome-keyring.local 5include gnome-keyring.local
6# Persistent global definitions 6# Persistent global definitions
7include globals.local 7# added by included profile
8#include globals.local
8 9
9noblacklist ${HOME}/.gnupg 10noblacklist ${HOME}/.gnupg
10 11
11blacklist /tmp/.X11-unix
12blacklist ${RUNUSER}/wayland-*
13
14include disable-common.inc
15include disable-devel.inc
16include disable-exec.inc
17include disable-interpreters.inc
18include disable-programs.inc
19#include disable-X11.inc # x11 none
20include disable-xdg.inc
21
22mkdir ${HOME}/.gnupg 12mkdir ${HOME}/.gnupg
23whitelist ${HOME}/.gnupg 13whitelist ${HOME}/.gnupg
24whitelist ${DOWNLOADS} 14whitelist ${DOWNLOADS}
25whitelist ${RUNUSER}/gnupg
26whitelist ${RUNUSER}/keyring
27whitelist /usr/share/gnupg
28whitelist /usr/share/gnupg2
29include whitelist-common.inc
30include whitelist-runuser-common.inc
31include whitelist-usr-share-common.inc
32include whitelist-var-common.inc
33
34apparmor
35caps.drop all
36ipc-namespace
37machine-id
38netfilter
39no3d
40nodvd
41nogroups
42noinput
43nonewprivs
44noroot
45nosound
46notv
47nou2f
48novideo
49protocol unix,inet,inet6
50seccomp
51seccomp.block-secondary
52tracelog
53x11 none
54
55disable-mnt
56#private-bin gnome-keyrin*,secret-tool
57private-cache
58private-dev
59#private-lib alternatives,gnome-keyring,libsecret-1.so.*,pkcs11,security
60private-tmp
61
62#dbus-user none
63dbus-system none
64 15
65memory-deny-write-execute 16# Redirect
66restrict-namespaces 17include gnome-keyring-daemon.profile