mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-04 08:15:21 +00:00
profiles: give lsof CAP_DAC_READ_SEARCH and CAP_DAC_OVERRIDE
This is necessary for lsof run as root to be able to return results from processes run by other users. Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
This commit is contained in:
@@ -22,6 +22,8 @@ profile lsof /usr/bin/lsof flags=(attach_disconnected.path=/aa_disconnected/) {
|
|||||||
/usr/bin/lsof mr,
|
/usr/bin/lsof mr,
|
||||||
|
|
||||||
capability sys_ptrace,
|
capability sys_ptrace,
|
||||||
|
capability dac_read_search,
|
||||||
|
capability dac_override,
|
||||||
ptrace read,
|
ptrace read,
|
||||||
|
|
||||||
mqueue getattr type=posix,
|
mqueue getattr type=posix,
|
||||||
|
Reference in New Issue
Block a user