# vim: ft=apparmor #------------------------------------------------------------------ # Copyright (C) 2024 Canonical Ltd. # # Author: Hlib Korzhynskyy # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License published by the Free Software Foundation. #------------------------------------------------------------------ abi , include profile lsblk /usr/bin/lsblk { include include include @{exec_path} mr, @{sys}/block/ r, @{sys}/class/block/ r, @{sys}/dev/block/ r, @{sys}/devices/@{pci_bus}/** r, @{sys}/devices/virtual/** r, @{sys}/devices/platform/** r, # needed for --fs (show filesystem information) / r, # needed for FSTYPE and UUID, see https://bugzilla.opensuse.org/show_bug.cgi?id=1267853 /dev/nvme* r, /dev/dm-* r, /dev/sd* r, # Needed for Xen PVH guests @{sys}/devices/vbd-@{int}/block/** r, # Needed for disks over network e.g. Hyper-V VMs (including Azure), IBM Power, ... @{sys}/devices/**/host@{int}/** r, # Needed for channel subsystem for IBM Z @{sys}/devices/css@{int}/** r, # Needed for Azure ACPI/NVMe @{sys}/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI*:00/MSFT1000:00/** r, @{sys}/devices/LNXSYSTM:00/LNXSYBUS:00/PNP*:00/device:*/VMBUS:*/*/pci*/*/nvme/nvme*/** r, /dev/sr@{int} rk, @{run}/udev/data/** r, @{run}/mount/** r, @{PROC}/swaps r, @{PROC}/cmdline r, owner @{PROC}/@{pid}/mountinfo r, include if exists }