mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
zgrep: allow reading /etc/nsswitch.conf and /etc/passwd
Seen on various VMs, my guess is that bash wants to translate a uid to a username. Log events (slightly shortened) apparmor="DENIED" operation="open" class="file" profile="zgrep" name="/etc/nsswitch.conf" comm="zgrep" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 apparmor="DENIED" operation="open" class="file" profile="zgrep" name="/etc/passwd" comm="zgrep" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
This commit is contained in:
parent
bb460ba467
commit
68d42c3e37
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,8 @@ profile zgrep /usr/bin/{x,}zgrep {
|
|||
include <abstractions/bash>
|
||||
|
||||
/dev/tty rw,
|
||||
@{etc_ro}/nsswitch.conf r,
|
||||
/etc/passwd r,
|
||||
/usr/bin/{ba,da,}sh ix,
|
||||
/usr/bin/bzip2 Cx -> helper,
|
||||
/usr/bin/cat ix,
|
||||
|
|
Loading…
Add table
Reference in a new issue