diff options
author | 2020-04-21 20:58:34 +0000 | |
---|---|---|
committer | 2020-04-21 20:58:34 +0000 | |
commit | b7bcc70d20a71daf5ba6dff670bbf90e7a09d2e4 (patch) | |
tree | 609778557c185bb7fabef76ac05a694f875d4f09 /etc/profile-a-l | |
parent | update issue template + add ICEauthority to wruc (diff) | |
download | firejail-b7bcc70d20a71daf5ba6dff670bbf90e7a09d2e4.tar.gz firejail-b7bcc70d20a71daf5ba6dff670bbf90e7a09d2e4.tar.zst firejail-b7bcc70d20a71daf5ba6dff670bbf90e7a09d2e4.zip |
file managers refactoring (#3375)
* refactor caja.profile
* refactor dolphin.profile
* Create file-manager-common.profile
* refactor nautilus.profile
* refactor nemo.profile
* refactor pcmanfm.profile
* refactor ranger.profile
* refactor Thunar.profile
Diffstat (limited to 'etc/profile-a-l')
-rw-r--r-- | etc/profile-a-l/caja.profile | 34 | ||||
-rw-r--r-- | etc/profile-a-l/dolphin.profile | 34 | ||||
-rw-r--r-- | etc/profile-a-l/file-manager-common.profile | 49 |
3 files changed, 55 insertions, 62 deletions
diff --git a/etc/profile-a-l/caja.profile b/etc/profile-a-l/caja.profile index 7bf901ae3..1af102ca8 100644 --- a/etc/profile-a-l/caja.profile +++ b/etc/profile-a-l/caja.profile | |||
@@ -9,35 +9,7 @@ include globals.local | |||
9 | # Caja is started by systemd on most systems. Therefore it is not firejailed by default. Since there | 9 | # Caja is started by systemd on most systems. Therefore it is not firejailed by default. Since there |
10 | # is already a caja process running on MATE desktops firejail will have no effect. | 10 | # is already a caja process running on MATE desktops firejail will have no effect. |
11 | 11 | ||
12 | noblacklist ${HOME}/.local/share/Trash | 12 | # Put 'ignore noroot' in your caja.local if you use MPV+Vulkan (see issue #3012) |
13 | # noblacklist ${HOME}/.config/caja - disable-programs.inc is disabled, see below | ||
14 | # noblacklist ${HOME}/.local/share/caja-python | ||
15 | 13 | ||
16 | # Allow python (blacklisted by disable-interpreters.inc) | 14 | # Redirect |
17 | include allow-python2.inc | 15 | include file-manager-common.profile |
18 | include allow-python3.inc | ||
19 | |||
20 | include disable-common.inc | ||
21 | include disable-devel.inc | ||
22 | include disable-interpreters.inc | ||
23 | include disable-passwdmgr.inc | ||
24 | # include disable-programs.inc | ||
25 | |||
26 | allusers | ||
27 | caps.drop all | ||
28 | netfilter | ||
29 | nodvd | ||
30 | nogroups | ||
31 | nonewprivs | ||
32 | noroot | ||
33 | notv | ||
34 | novideo | ||
35 | protocol unix | ||
36 | seccomp | ||
37 | shell none | ||
38 | tracelog | ||
39 | |||
40 | # caja needs to be able to start arbitrary applications so we cannot blacklist their files | ||
41 | # private-bin caja | ||
42 | # private-dev | ||
43 | # private-tmp | ||
diff --git a/etc/profile-a-l/dolphin.profile b/etc/profile-a-l/dolphin.profile index d264470af..e0300a577 100644 --- a/etc/profile-a-l/dolphin.profile +++ b/etc/profile-a-l/dolphin.profile | |||
@@ -6,37 +6,9 @@ include dolphin.local | |||
6 | # Persistent global definitions | 6 | # Persistent global definitions |
7 | include globals.local | 7 | include globals.local |
8 | 8 | ||
9 | noblacklist ${HOME}/.local/share/Trash | 9 | # Put 'ignore noroot' in your dolphin.local if you use MPV+Vulkan (see issue #3012) |
10 | # noblacklist ${HOME}/.cache/dolphin - disable-programs.inc is disabled, see below | ||
11 | # noblacklist ${HOME}/.config/dolphinrc | ||
12 | # noblacklist ${HOME}/.local/share/dolphin | ||
13 | 10 | ||
14 | # Allow lua (blacklisted by disable-interpreters.inc) | 11 | # Redirect |
15 | include allow-lua.inc | 12 | include file-manager-common.profile |
16 | |||
17 | include disable-common.inc | ||
18 | include disable-devel.inc | ||
19 | include disable-interpreters.inc | ||
20 | include disable-passwdmgr.inc | ||
21 | # dolphin needs to be able to start arbitrary applications so we cannot blacklist their files | ||
22 | # include disable-programs.inc | ||
23 | |||
24 | allusers | ||
25 | caps.drop all | ||
26 | # net none | ||
27 | netfilter | ||
28 | nodvd | ||
29 | nogroups | ||
30 | nonewprivs | ||
31 | # Comment the next line (or put 'ignore noroot' in your dolphin.local) if you use MPV+Vulkan (see issue #3012) | ||
32 | noroot | ||
33 | notv | ||
34 | novideo | ||
35 | protocol unix,inet,inet6,netlink | ||
36 | seccomp | ||
37 | shell none | ||
38 | |||
39 | private-dev | ||
40 | # private-tmp | ||
41 | 13 | ||
42 | join-or-start dolphin | 14 | join-or-start dolphin |
diff --git a/etc/profile-a-l/file-manager-common.profile b/etc/profile-a-l/file-manager-common.profile new file mode 100644 index 000000000..8551e713d --- /dev/null +++ b/etc/profile-a-l/file-manager-common.profile | |||
@@ -0,0 +1,49 @@ | |||
1 | # Firejail profile for file managers | ||
2 | # Description: Common profile for GUI file managers | ||
3 | # This file is overwritten after every install/update | ||
4 | # Persistent local customizations | ||
5 | include file-manager-common.local | ||
6 | # Persistent global definitions | ||
7 | # added by caller profile | ||
8 | #include globals.local | ||
9 | |||
10 | # File managers need to be able to see everything under ${HOME} | ||
11 | # and be able to start arbitrary applications | ||
12 | |||
13 | ignore noexec ${HOME} | ||
14 | |||
15 | # Allow lua (blacklisted by disable-interpreters.inc) | ||
16 | include allow-lua.inc | ||
17 | |||
18 | # Allow perl | ||
19 | include allow-perl.inc | ||
20 | |||
21 | # Allow python (blacklisted by disable-interpreters.inc) | ||
22 | include allow-python2.inc | ||
23 | include allow-python3.inc | ||
24 | |||
25 | #include disable-common.inc | ||
26 | include disable-devel.inc | ||
27 | include disable-interpreters.inc | ||
28 | include disable-passwdmgr.inc | ||
29 | # include disable-programs.inc | ||
30 | |||
31 | allusers | ||
32 | caps.drop all | ||
33 | netfilter | ||
34 | nodvd | ||
35 | nogroups | ||
36 | nonewprivs | ||
37 | noroot | ||
38 | notv | ||
39 | nou2f | ||
40 | novideo | ||
41 | protocol unix,inet,inet6,netlink | ||
42 | seccomp | ||
43 | shell none | ||
44 | tracelog | ||
45 | |||
46 | private-dev | ||
47 | |||
48 | #dbus-user none | ||
49 | #dbus-system none | ||