2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 14:25:52 +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:
Ryan Lee
2025-05-02 15:00:23 -07:00
parent e278575799
commit d9028aea4e

View File

@@ -22,6 +22,8 @@ profile lsof /usr/bin/lsof flags=(attach_disconnected.path=/aa_disconnected/) {
/usr/bin/lsof mr,
capability sys_ptrace,
capability dac_read_search,
capability dac_override,
ptrace read,
mqueue getattr type=posix,