mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-29 13:28:19 +00:00
small fix for lsblk profile
Fixes bug #2103524 lsblk on some virtualized systems require access to directory /sys/devices/LNXSYSTM:*/LNXSYBUS:*/** since block devices can be exposed in this directory.
This commit is contained in:
parent
6faa8950ed
commit
b527256c0d
@ -26,12 +26,16 @@ profile lsblk /usr/bin/lsblk {
|
||||
@{sys}/devices/virtual/** r,
|
||||
@{sys}/devices/platform/** r,
|
||||
|
||||
# Needed for Hyper-V VMs (including Azure)
|
||||
@{sys}/devices/LNXSYSTM:*/LNXSYBUS:*/** r,
|
||||
|
||||
/dev/sr[0-9]* rk,
|
||||
|
||||
@{run}/udev/data/** r,
|
||||
|
||||
@{run}/mount/** r,
|
||||
@{PROC}/swaps r,
|
||||
@{PROC}/cmdline r,
|
||||
owner @{PROC}/@{pid}/mountinfo r,
|
||||
|
||||
include if exists <local/lsblk>
|
||||
|
Loading…
x
Reference in New Issue
Block a user