diff options
author | 2020-12-15 19:05:54 +0000 | |
---|---|---|
committer | 2020-12-15 19:05:54 +0000 | |
commit | 4a40e2a5f2009cf282dd783e73e1fb860ac758ba (patch) | |
tree | 98ab549570bd67a4987bb2b1ad019b372c205f54 /etc/inc/archiver-common.inc | |
parent | Runuser fixes (#3826) (diff) | |
download | firejail-4a40e2a5f2009cf282dd783e73e1fb860ac758ba.tar.gz firejail-4a40e2a5f2009cf282dd783e73e1fb860ac758ba.tar.zst firejail-4a40e2a5f2009cf282dd783e73e1fb860ac758ba.zip |
Refactor archivers (#3820)
* Create archiver-common.inc
* add apparmor to archiver-common.inc
* refactor 7z.profile
* refactor ar.profile
* refactor atool.profile
* refactor bsdtar.profile
* refactor cpio.profile
* refactor gzip.profile
* refactor tar.profile
* refactor unrar.profile
* refactor unzip.profile
* refactor xzdec.profile
* refactor zstd.profile
* rewording
* blacklist ${RUNUSER} in archiver-common.inc
Thanks to @rusty-snake for suggesting this.
* drop non-sensical ${RUNUSER}/wayland-* blacklisting in archiver-common.inc
See discussion in https://github.com/netblue30/firejail/pull/3820#discussion_r543523343
Diffstat (limited to 'etc/inc/archiver-common.inc')
-rw-r--r-- | etc/inc/archiver-common.inc | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/etc/inc/archiver-common.inc b/etc/inc/archiver-common.inc new file mode 100644 index 000000000..2c5e4d8bf --- /dev/null +++ b/etc/inc/archiver-common.inc | |||
@@ -0,0 +1,44 @@ | |||
1 | # This file is overwritten during software install. | ||
2 | # Persistent customizations should go in a .local file. | ||
3 | include archiver-common.local | ||
4 | |||
5 | # common profile for archiver/compression tools | ||
6 | |||
7 | blacklist ${RUNUSER} | ||
8 | |||
9 | include disable-common.inc | ||
10 | include disable-devel.inc | ||
11 | include disable-exec.inc | ||
12 | include disable-interpreters.inc | ||
13 | include disable-passwdmgr.inc | ||
14 | include disable-programs.inc | ||
15 | include disable-shell.inc | ||
16 | |||
17 | apparmor | ||
18 | caps.drop all | ||
19 | hostname archiver | ||
20 | ipc-namespace | ||
21 | machine-id | ||
22 | net none | ||
23 | no3d | ||
24 | nodvd | ||
25 | nogroups | ||
26 | nonewprivs | ||
27 | #noroot | ||
28 | nosound | ||
29 | notv | ||
30 | nou2f | ||
31 | novideo | ||
32 | protocol unix | ||
33 | seccomp | ||
34 | shell none | ||
35 | tracelog | ||
36 | x11 none | ||
37 | |||
38 | private-cache | ||
39 | private-dev | ||
40 | |||
41 | dbus-user none | ||
42 | dbus-system none | ||
43 | |||
44 | memory-deny-write-execute | ||