diff options
author | glitsj16 <glitsj16@users.noreply.github.com> | 2020-12-15 19:05:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-15 19:05:54 +0000 |
commit | 4a40e2a5f2009cf282dd783e73e1fb860ac758ba (patch) | |
tree | 98ab549570bd67a4987bb2b1ad019b372c205f54 /etc/profile-m-z/tar.profile | |
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/profile-m-z/tar.profile')
-rw-r--r-- | etc/profile-m-z/tar.profile | 38 |
1 files changed, 2 insertions, 36 deletions
diff --git a/etc/profile-m-z/tar.profile b/etc/profile-m-z/tar.profile index 3a7405305..2ddc82dbb 100644 --- a/etc/profile-m-z/tar.profile +++ b/etc/profile-m-z/tar.profile | |||
@@ -7,49 +7,15 @@ include tar.local | |||
7 | # Persistent global definitions | 7 | # Persistent global definitions |
8 | include globals.local | 8 | include globals.local |
9 | 9 | ||
10 | blacklist ${RUNUSER}/wayland-* | ||
11 | |||
12 | # Arch Linux (based distributions) need access to /var/lib/pacman. As we drop all capabilities this is automatically read-only. | 10 | # Arch Linux (based distributions) need access to /var/lib/pacman. As we drop all capabilities this is automatically read-only. |
13 | noblacklist /var/lib/pacman | 11 | noblacklist /var/lib/pacman |
14 | 12 | ||
15 | include disable-common.inc | 13 | ignore include disable-shell.inc |
16 | include disable-devel.inc | 14 | include archiver-common.inc |
17 | include disable-exec.inc | ||
18 | include disable-interpreters.inc | ||
19 | include disable-passwdmgr.inc | ||
20 | include disable-programs.inc | ||
21 | |||
22 | apparmor | ||
23 | caps.drop all | ||
24 | hostname tar | ||
25 | ipc-namespace | ||
26 | machine-id | ||
27 | net none | ||
28 | no3d | ||
29 | nodvd | ||
30 | nogroups | ||
31 | nonewprivs | ||
32 | #noroot | ||
33 | nosound | ||
34 | notv | ||
35 | nou2f | ||
36 | novideo | ||
37 | protocol unix | ||
38 | seccomp | ||
39 | shell none | ||
40 | tracelog | ||
41 | x11 none | ||
42 | 15 | ||
43 | # support compressed archives | 16 | # support compressed archives |
44 | private-bin awk,bash,bzip2,compress,firejail,grep,gtar,gzip,lbzip2,lzip,lzma,lzop,sh,tar,xz | 17 | private-bin awk,bash,bzip2,compress,firejail,grep,gtar,gzip,lbzip2,lzip,lzma,lzop,sh,tar,xz |
45 | private-cache | ||
46 | private-dev | ||
47 | private-etc alternatives,group,localtime,login.defs,passwd | 18 | private-etc alternatives,group,localtime,login.defs,passwd |
48 | private-lib libfakeroot | 19 | private-lib libfakeroot |
49 | # Debian based distributions need this for 'dpkg --unpack' (incl. synaptic) | 20 | # Debian based distributions need this for 'dpkg --unpack' (incl. synaptic) |
50 | writable-var | 21 | writable-var |
51 | |||
52 | dbus-user none | ||
53 | dbus-system none | ||
54 | |||
55 | memory-deny-write-execute | ||