diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/landlock-common.inc | 2 | ||||
-rw-r--r-- | etc/profile-a-l/crawl.profile | 3 | ||||
-rw-r--r-- | etc/profile-a-l/enchant-lsmod-2.profile | 2 | ||||
-rw-r--r-- | etc/profile-a-l/geeqie.profile | 3 | ||||
-rw-r--r-- | etc/profile-a-l/gnome-keyring-daemon.profile | 62 | ||||
-rw-r--r-- | etc/profile-a-l/gnome-keyring.profile | 53 | ||||
-rw-r--r-- | etc/profile-m-z/tesseract.profile | 1 | ||||
-rw-r--r-- | etc/templates/profile.template | 3 |
8 files changed, 77 insertions, 52 deletions
diff --git a/etc/inc/landlock-common.inc b/etc/inc/landlock-common.inc index ebe9f98dc..694d447b5 100644 --- a/etc/inc/landlock-common.inc +++ b/etc/inc/landlock-common.inc | |||
@@ -4,7 +4,7 @@ include landlock-common.local | |||
4 | 4 | ||
5 | landlock.read / # whole system read | 5 | landlock.read / # whole system read |
6 | landlock.read /proc | 6 | landlock.read /proc |
7 | landlock.special / # sockets etc. | 7 | landlock.makeipc / # sockets etc. |
8 | 8 | ||
9 | # write access | 9 | # write access |
10 | landlock.write ${HOME} | 10 | landlock.write ${HOME} |
diff --git a/etc/profile-a-l/crawl.profile b/etc/profile-a-l/crawl.profile index 7df7b4480..9545fb8bc 100644 --- a/etc/profile-a-l/crawl.profile +++ b/etc/profile-a-l/crawl.profile | |||
@@ -8,6 +8,9 @@ include globals.local | |||
8 | 8 | ||
9 | noblacklist ${HOME}/.crawl | 9 | noblacklist ${HOME}/.crawl |
10 | 10 | ||
11 | # Allow lua (blacklisted by disable-interpreters.inc) | ||
12 | include allow-lua.inc | ||
13 | |||
11 | include disable-common.inc | 14 | include disable-common.inc |
12 | include disable-devel.inc | 15 | include disable-devel.inc |
13 | include disable-exec.inc | 16 | include disable-exec.inc |
diff --git a/etc/profile-a-l/enchant-lsmod-2.profile b/etc/profile-a-l/enchant-lsmod-2.profile index a7199955e..3fe9e94c0 100644 --- a/etc/profile-a-l/enchant-lsmod-2.profile +++ b/etc/profile-a-l/enchant-lsmod-2.profile | |||
@@ -7,4 +7,4 @@ include enchant-lsmod-2.local | |||
7 | #include globals.local | 7 | #include globals.local |
8 | 8 | ||
9 | # Redirect | 9 | # Redirect |
10 | include enchant.profile | 10 | include enchant-2.profile |
diff --git a/etc/profile-a-l/geeqie.profile b/etc/profile-a-l/geeqie.profile index 6cd28f25d..beffb28e3 100644 --- a/etc/profile-a-l/geeqie.profile +++ b/etc/profile-a-l/geeqie.profile | |||
@@ -10,6 +10,9 @@ noblacklist ${HOME}/.cache/geeqie | |||
10 | noblacklist ${HOME}/.config/geeqie | 10 | noblacklist ${HOME}/.config/geeqie |
11 | noblacklist ${HOME}/.local/share/geeqie | 11 | noblacklist ${HOME}/.local/share/geeqie |
12 | 12 | ||
13 | # Allow lua (blacklisted by disable-interpreters.inc) | ||
14 | include allow-lua.inc | ||
15 | |||
13 | # Allow perl (blacklisted by disable-interpreters.inc) | 16 | # Allow perl (blacklisted by disable-interpreters.inc) |
14 | include allow-perl.inc | 17 | include allow-perl.inc |
15 | 18 | ||
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 |
diff --git a/etc/profile-m-z/tesseract.profile b/etc/profile-m-z/tesseract.profile index c0293406d..5d2ea4ae6 100644 --- a/etc/profile-m-z/tesseract.profile +++ b/etc/profile-m-z/tesseract.profile | |||
@@ -1,6 +1,7 @@ | |||
1 | # Firejail profile for tesseract | 1 | # Firejail profile for tesseract |
2 | # Description: An OCR program | 2 | # Description: An OCR program |
3 | # This file is overwritten after every install/update | 3 | # This file is overwritten after every install/update |
4 | quiet | ||
4 | # Persistent local customizations | 5 | # Persistent local customizations |
5 | include tesseract.local | 6 | include tesseract.local |
6 | # Persistent global definitions | 7 | # Persistent global definitions |
diff --git a/etc/templates/profile.template b/etc/templates/profile.template index 8882c9012..0e6a5734e 100644 --- a/etc/templates/profile.template +++ b/etc/templates/profile.template | |||
@@ -140,7 +140,8 @@ include globals.local | |||
140 | # Landlock commands | 140 | # Landlock commands |
141 | ##landlock.read PATH | 141 | ##landlock.read PATH |
142 | ##landlock.write PATH | 142 | ##landlock.write PATH |
143 | ##landlock.special PATH | 143 | ##landlock.makeipc PATH |
144 | ##landlock.makedev PATH | ||
144 | ##landlock.execute PATH | 145 | ##landlock.execute PATH |
145 | #include landlock-common.inc | 146 | #include landlock-common.inc |
146 | 147 | ||