mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
feat(profiles): disks access - add NBD devices.
This commit is contained in:
parent
6916eefc1b
commit
fd88162c55
2 changed files with 12 additions and 0 deletions
|
@ -53,6 +53,11 @@
|
||||||
@{sys}/devices/virtual/block/zram[0-9]*/ r,
|
@{sys}/devices/virtual/block/zram[0-9]*/ r,
|
||||||
@{sys}/devices/virtual/block/zram[0-9]*/** r,
|
@{sys}/devices/virtual/block/zram[0-9]*/** r,
|
||||||
|
|
||||||
|
# NBD devices
|
||||||
|
/dev/nbd* rk,
|
||||||
|
@{sys}/devices/virtual/block/nbd[0-9]*/ r,
|
||||||
|
@{sys}/devices/virtual/block/nbd[0-9]*/** r,
|
||||||
|
|
||||||
# Armbian / DietPi
|
# Armbian / DietPi
|
||||||
@{sys}/devices/platform/{soc,*.mmc}/**/block/mmcblk[0-9]*/{,mmcblk*/} r,
|
@{sys}/devices/platform/{soc,*.mmc}/**/block/mmcblk[0-9]*/{,mmcblk*/} r,
|
||||||
@{sys}/devices/platform/{soc,*.mmc}/**/block/mmcblk[0-9]*/{,mmcblk*/}hidden r,
|
@{sys}/devices/platform/{soc,*.mmc}/**/block/mmcblk[0-9]*/{,mmcblk*/}hidden r,
|
||||||
|
@ -98,6 +103,7 @@
|
||||||
@{run}/udev/data/b11:[0-9]* r, # for /dev/sr*
|
@{run}/udev/data/b11:[0-9]* r, # for /dev/sr*
|
||||||
@{run}/udev/data/b179:[0-9]* r, # for /dev/mmcblk*
|
@{run}/udev/data/b179:[0-9]* r, # for /dev/mmcblk*
|
||||||
@{run}/udev/data/b230:[0-9]* r, # for /dev/zvol*
|
@{run}/udev/data/b230:[0-9]* r, # for /dev/zvol*
|
||||||
|
@{run}/udev/data/b43:[0-9]* r, # for /dev/nbd*
|
||||||
@{run}/udev/data/b7:[0-9]* r, # for /dev/loop*
|
@{run}/udev/data/b7:[0-9]* r, # for /dev/loop*
|
||||||
@{run}/udev/data/b8:[0-9]* r, # for /dev/sd*
|
@{run}/udev/data/b8:[0-9]* r, # for /dev/sd*
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,11 @@
|
||||||
@{sys}/devices/virtual/block/zram[0-9]*/ r,
|
@{sys}/devices/virtual/block/zram[0-9]*/ r,
|
||||||
@{sys}/devices/virtual/block/zram[0-9]*/** r,
|
@{sys}/devices/virtual/block/zram[0-9]*/** r,
|
||||||
|
|
||||||
|
# NBD devices
|
||||||
|
/dev/nbd* rwk,
|
||||||
|
@{sys}/devices/virtual/block/nbd[0-9]*/ r,
|
||||||
|
@{sys}/devices/virtual/block/nbd[0-9]*/** r,
|
||||||
|
|
||||||
# Floppy disks
|
# Floppy disks
|
||||||
/dev/fd[0-9]* rwk,
|
/dev/fd[0-9]* rwk,
|
||||||
@{sys}/devices/platform/floppy.[0-9]*/block/fd[0-9]/ r,
|
@{sys}/devices/platform/floppy.[0-9]*/block/fd[0-9]/ r,
|
||||||
|
@ -78,6 +83,7 @@
|
||||||
@{run}/udev/data/b179:[0-9]* r, # for /dev/mmcblk*
|
@{run}/udev/data/b179:[0-9]* r, # for /dev/mmcblk*
|
||||||
@{run}/udev/data/b2:[0-9]* r, # for /dev/fd*
|
@{run}/udev/data/b2:[0-9]* r, # for /dev/fd*
|
||||||
@{run}/udev/data/b230:[0-9]* r, # for /dev/zvol*
|
@{run}/udev/data/b230:[0-9]* r, # for /dev/zvol*
|
||||||
|
@{run}/udev/data/b43:[0-9]* r, # for /dev/nbd*
|
||||||
@{run}/udev/data/b7:[0-9]* r, # for /dev/loop*
|
@{run}/udev/data/b7:[0-9]* r, # for /dev/loop*
|
||||||
@{run}/udev/data/b8:[0-9]* r, # for /dev/sd*
|
@{run}/udev/data/b8:[0-9]* r, # for /dev/sd*
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue