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