diff --git a/profiles/apparmor.d/lsblk b/profiles/apparmor.d/lsblk index 3099fe949..0e275eae3 100644 --- a/profiles/apparmor.d/lsblk +++ b/profiles/apparmor.d/lsblk @@ -15,21 +15,26 @@ include profile lsblk /usr/bin/lsblk { include + include + include + + capability dac_read_search, @{sys}/block/ r, + @{sys}/class/block/ r, @{sys}/dev/block/ r, + @{sys}/devices/pci[0-9]*:[0-9]*/** r, @{sys}/devices/virtual/** r, + @{sys}/devices/platform/** r, + + /dev/sr[0-9]* rk, - @{run}/mount/** r, @{run}/udev/data/** r, + @{run}/mount/** r, @{PROC}/swaps r, - @{PROC}/*/mountinfo r, - - /etc/nsswitch.conf r, - /etc/passwd r, - /etc/group r, + owner @{PROC}/@{pid}/mountinfo r, include if exists }