mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 01:57:43 +00:00
zgrep: allow executing egrep and fgrep
egrep and fgrep also need to execute grep and write to /dev/tty in the helper child profile. Fixes: https://progress.opensuse.org/issues/113108
This commit is contained in:
parent
08da556e4e
commit
df37c299e1
@ -20,7 +20,9 @@ profile zgrep /usr/bin/{x,}zgrep {
|
||||
/usr/bin/{ba,da,}sh ix,
|
||||
/usr/bin/bzip2 Cx -> helper,
|
||||
/usr/bin/cat ix,
|
||||
/usr/bin/egrep Cx -> helper,
|
||||
/usr/bin/expr ix,
|
||||
/usr/bin/fgrep Cx -> helper,
|
||||
/usr/bin/grep Cx -> helper,
|
||||
/usr/bin/gzip Cx -> helper,
|
||||
/usr/bin/mktemp ix,
|
||||
@ -41,9 +43,11 @@ profile zgrep /usr/bin/{x,}zgrep {
|
||||
capability dac_override,
|
||||
capability dac_read_search,
|
||||
|
||||
/dev/tty w,
|
||||
|
||||
/usr/bin/{ba,da,}sh ix,
|
||||
/usr/bin/bzip2 mr,
|
||||
/usr/bin/grep mr,
|
||||
/usr/bin/grep mrix,
|
||||
/usr/bin/gzip mr,
|
||||
/usr/bin/xz mr,
|
||||
/usr/bin/zstd mr,
|
||||
|
Loading…
x
Reference in New Issue
Block a user