diff options
author | glitsj16 <glitsj16@users.noreply.github.com> | 2024-02-08 13:43:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-08 13:43:24 +0000 |
commit | eded5cc728388acb973454a69ecd69cb1ea2c3ce (patch) | |
tree | 295a46cbdc6f78c42b2c72d943474714c7104f29 /etc | |
parent | RELNOTES: add feature and build items (diff) | |
parent | firecfg.config: add gnome-keyring{,-3,-daemon} (diff) | |
download | firejail-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.profile | 62 | ||||
-rw-r--r-- | etc/profile-a-l/gnome-keyring.profile | 53 |
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 | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include gnome-keyring-daemon.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | blacklist /tmp/.X11-unix | ||
11 | blacklist ${RUNUSER}/wayland-* | ||
12 | |||
13 | include disable-common.inc | ||
14 | include disable-devel.inc | ||
15 | include disable-exec.inc | ||
16 | include disable-interpreters.inc | ||
17 | include disable-programs.inc | ||
18 | #include disable-X11.inc # x11 none | ||
19 | include disable-xdg.inc | ||
20 | |||
21 | whitelist ${RUNUSER}/gnupg | ||
22 | whitelist ${RUNUSER}/keyring | ||
23 | whitelist /usr/share/gnupg | ||
24 | whitelist /usr/share/gnupg2 | ||
25 | include whitelist-common.inc | ||
26 | include whitelist-runuser-common.inc | ||
27 | include whitelist-usr-share-common.inc | ||
28 | include whitelist-var-common.inc | ||
29 | |||
30 | apparmor | ||
31 | caps.drop all | ||
32 | ipc-namespace | ||
33 | machine-id | ||
34 | netfilter | ||
35 | no3d | ||
36 | nodvd | ||
37 | nogroups | ||
38 | noinput | ||
39 | nonewprivs | ||
40 | noroot | ||
41 | nosound | ||
42 | notv | ||
43 | nou2f | ||
44 | novideo | ||
45 | protocol unix,inet,inet6 | ||
46 | seccomp | ||
47 | seccomp.block-secondary | ||
48 | tracelog | ||
49 | x11 none | ||
50 | |||
51 | disable-mnt | ||
52 | #private-bin gnome-keyrin*,secret-tool | ||
53 | private-cache | ||
54 | private-dev | ||
55 | #private-lib alternatives,gnome-keyring,libsecret-1.so.*,pkcs11,security | ||
56 | private-tmp | ||
57 | |||
58 | #dbus-user none | ||
59 | dbus-system none | ||
60 | |||
61 | memory-deny-write-execute | ||
62 | restrict-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 |
4 | quiet | ||
5 | # Persistent local customizations | 4 | # Persistent local customizations |
6 | include gnome-keyring.local | 5 | include gnome-keyring.local |
7 | # Persistent global definitions | 6 | # Persistent global definitions |
8 | include globals.local | 7 | # added by included profile |
8 | #include globals.local | ||
9 | 9 | ||
10 | noblacklist ${HOME}/.gnupg | 10 | noblacklist ${HOME}/.gnupg |
11 | 11 | ||
12 | include disable-common.inc | ||
13 | include disable-devel.inc | ||
14 | include disable-exec.inc | ||
15 | include disable-interpreters.inc | ||
16 | include disable-programs.inc | ||
17 | include disable-xdg.inc | ||
18 | |||
19 | mkdir ${HOME}/.gnupg | 12 | mkdir ${HOME}/.gnupg |
20 | whitelist ${HOME}/.gnupg | 13 | whitelist ${HOME}/.gnupg |
21 | whitelist ${DOWNLOADS} | 14 | whitelist ${DOWNLOADS} |
22 | whitelist ${RUNUSER}/gnupg | ||
23 | whitelist ${RUNUSER}/keyring | ||
24 | whitelist /usr/share/gnupg | ||
25 | whitelist /usr/share/gnupg2 | ||
26 | include whitelist-common.inc | ||
27 | include whitelist-runuser-common.inc | ||
28 | include whitelist-usr-share-common.inc | ||
29 | include whitelist-var-common.inc | ||
30 | |||
31 | apparmor | ||
32 | caps.drop all | ||
33 | ipc-namespace | ||
34 | machine-id | ||
35 | netfilter | ||
36 | no3d | ||
37 | nodvd | ||
38 | nogroups | ||
39 | noinput | ||
40 | nonewprivs | ||
41 | noroot | ||
42 | nosound | ||
43 | notv | ||
44 | nou2f | ||
45 | novideo | ||
46 | protocol unix,inet,inet6 | ||
47 | seccomp | ||
48 | seccomp.block-secondary | ||
49 | tracelog | ||
50 | |||
51 | disable-mnt | ||
52 | #private-bin gnome-keyrin*,secret-tool | ||
53 | private-cache | ||
54 | private-dev | ||
55 | #private-lib alternatives,gnome-keyring,libsecret-1.so.*,pkcs11,security | ||
56 | private-tmp | ||
57 | |||
58 | #dbus-user none | ||
59 | dbus-system none | ||
60 | 15 | ||
61 | memory-deny-write-execute | 16 | # Redirect |
62 | restrict-namespaces | 17 | include gnome-keyring-daemon.profile |