diff --git a/apparmor.d/abstractions/disks-read b/apparmor.d/abstractions/disks-read index 9aef7ff3..15567f6e 100644 --- a/apparmor.d/abstractions/disks-read +++ b/apparmor.d/abstractions/disks-read @@ -19,20 +19,20 @@ @{sys}/devices/pci[0-9]*/**/{usb,ata}[0-9]/** r, # SSD Nvme devices - /dev/nvme* rk, + /dev/nvme[0-9]* rk, @{sys}/devices/pci[0-9]*/**/nvme/nvme@{int}/{,**} r, # SD card devices - /dev/mmcblk@{int} rk, - /dev/mmcblk@{int}p@{int} rk, + /dev/mmcblk[0-9]* rk, + /dev/mmcblk[0-9]*p@{int} rk, @{sys}/devices/pci[0-9]*/**/block/mmcblk@{int}/ r, @{sys}/devices/pci[0-9]*/**/block/mmcblk@{int}/** r, @{sys}/devices/pci[0-9]*/**/mmc@{int}/mmc*/ r, @{sys}/devices/pci[0-9]*/**/mmc@{int}/mmc*/** r, # Loop devices - /dev/loop@{int} rk, - /dev/loop@{int}p@{int} rk, + /dev/loop[0-9]* rk, + /dev/loop[0-9]*p@{int} rk, @{sys}/devices/virtual/block/loop@{int}/ r, @{sys}/devices/virtual/block/loop@{int}/** r, diff --git a/apparmor.d/abstractions/disks-write b/apparmor.d/abstractions/disks-write index be9d5dba..09da6e40 100644 --- a/apparmor.d/abstractions/disks-write +++ b/apparmor.d/abstractions/disks-write @@ -19,20 +19,20 @@ @{sys}/devices/pci[0-9]*/**/{usb,ata}[0-9]/** r, # SSD Nvme devices - /dev/nvme@{int} rwk, + /dev/nvme[0-9]* rwk, @{sys}/devices/pci[0-9]*/**/nvme/nvme@{int}/{,**} r, # SD card devices - /dev/mmcblk@{int} rwk, - /dev/mmcblk@{int}p@{int} rwk, + /dev/mmcblk[0-9]* rwk, + /dev/mmcblk[0-9]*p@{int} rwk, @{sys}/devices/pci[0-9]*/**/block/mmcblk@{int}/ r, @{sys}/devices/pci[0-9]*/**/block/mmcblk@{int}/** r, @{sys}/devices/pci[0-9]*/**/mmc@{int}/mmc*/ r, @{sys}/devices/pci[0-9]*/**/mmc@{int}/mmc*/** r, # Loop devices - /dev/loop@{int} rwk, - /dev/loop@{int}p@{int} rwk, + /dev/loop[0-9]* rwk, + /dev/loop[0-9]*p@{int} rwk, @{sys}/devices/virtual/block/loop@{int}/ r, @{sys}/devices/virtual/block/loop@{int}/** r,