mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
Refactor archivers ii (#3827)
* harden 7z.profile * harden atool.profile * harden bsdtar.profile * harden cpio.profile * harden gzip.profile * harden tar.profile * harden unrar.profile * harden unzip.profile * harden xzdec.profile * harden zstd.profile
This commit is contained in:
parent
4a40e2a5f2
commit
95ad89d24e
10 changed files with 8 additions and 20 deletions
|
|
@ -7,8 +7,8 @@ include 7z.local
|
|||
# Persistent global definitions
|
||||
include globals.local
|
||||
|
||||
ignore include disable-shell.inc
|
||||
ignore nogroups
|
||||
noblacklist ${PATH}/bash
|
||||
noblacklist ${PATH}/sh
|
||||
include archiver-common.inc
|
||||
|
||||
#private-bin 7z,7z*,p7zip
|
||||
private-bin 7z,7z*,bash,p7zip,sh
|
||||
|
|
|
|||
|
|
@ -9,13 +9,10 @@ include globals.local
|
|||
|
||||
# Allow perl (blacklisted by disable-interpreters.inc)
|
||||
include allow-perl.inc
|
||||
ignore include disable-devel.inc
|
||||
ignore include disable-shell.inc
|
||||
include archiver-common.inc
|
||||
|
||||
noroot
|
||||
|
||||
# private-bin atool,perl
|
||||
# without login.defs atool complains and uses UID/GID 1000 by default
|
||||
private-etc alternatives,group,login.defs,passwd
|
||||
private-tmp
|
||||
|
|
|
|||
|
|
@ -6,8 +6,6 @@ include bsdtar.local
|
|||
# Persistent global definitions
|
||||
include globals.local
|
||||
|
||||
ignore include disable-devel.inc
|
||||
ignore include disable-shell.inc
|
||||
include archiver-common.inc
|
||||
|
||||
# support compressed archives
|
||||
|
|
|
|||
|
|
@ -10,7 +10,4 @@ include globals.local
|
|||
noblacklist /sbin
|
||||
noblacklist /usr/sbin
|
||||
|
||||
ignore include disable-devel.inc
|
||||
ignore include disable-interpreters.inc
|
||||
ignore include disable-shell.inc
|
||||
include archiver-common.inc
|
||||
|
|
|
|||
|
|
@ -10,5 +10,6 @@ include globals.local
|
|||
# Arch Linux (based distributions) need access to /var/lib/pacman. As we drop all capabilities this is automatically read-only.
|
||||
noblacklist /var/lib/pacman
|
||||
|
||||
ignore include disable-shell.inc
|
||||
include archiver-common.inc
|
||||
|
||||
private-bin gunzip,gzexe,gzip,uncompress,zcat,zcmp,zdiff,zegrep,zfgrep,zforce,zgrep,zless,zmore,znew
|
||||
|
|
|
|||
|
|
@ -10,12 +10,13 @@ include globals.local
|
|||
# Arch Linux (based distributions) need access to /var/lib/pacman. As we drop all capabilities this is automatically read-only.
|
||||
noblacklist /var/lib/pacman
|
||||
|
||||
ignore include disable-shell.inc
|
||||
noblacklist ${PATH}/bash
|
||||
noblacklist ${PATH}/sh
|
||||
include archiver-common.inc
|
||||
|
||||
# support compressed archives
|
||||
private-bin awk,bash,bzip2,compress,firejail,grep,gtar,gzip,lbzip2,lzip,lzma,lzop,sh,tar,xz
|
||||
private-etc alternatives,group,localtime,login.defs,passwd
|
||||
private-lib libfakeroot
|
||||
private-lib libfakeroot,liblzma.so.*,libreadline.so.*
|
||||
# Debian based distributions need this for 'dpkg --unpack' (incl. synaptic)
|
||||
writable-var
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@ include unrar.local
|
|||
# Persistent global definitions
|
||||
include globals.local
|
||||
|
||||
ignore nogroups
|
||||
ignore private-cache
|
||||
include archiver-common.inc
|
||||
|
||||
private-bin unrar
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ include globals.local
|
|||
# GNOME Shell integration (chrome-gnome-shell)
|
||||
noblacklist ${HOME}/.local/share/gnome-shell
|
||||
|
||||
ignore nogroups
|
||||
noroot
|
||||
include archiver-common.inc
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,4 @@ include xzdec.local
|
|||
# Persistent global definitions
|
||||
include globals.local
|
||||
|
||||
ignore include disable-shell.inc
|
||||
ignore nogroups
|
||||
include archiver-common.inc
|
||||
|
|
|
|||
|
|
@ -7,5 +7,4 @@ include zstd.local
|
|||
# Persistent global definitions
|
||||
include globals.local
|
||||
|
||||
ignore include disable-shell.inc
|
||||
include archiver-common.inc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue