# apparmor.d - Full set of apparmor profiles # Copyright (C) 2022-2024 Alexandre Pujol # Copyright (C) 2022 Jeroen Rijken # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = @{bin}/grub-probe profile grub-probe @{exec_path} { include include include capability dac_read_search, capability sys_admin, @{exec_path} mr, /{usr/,}{local/,}{s,}bin/zpool rPx, @{bin}/lsb_release rPx -> lsb_release, @{bin}/lvm rPx, @{bin}/udevadm rPx, /usr/share/grub/* r, / r, /boot/ r, /boot/grub/themes/{,**} r, @{PROC}/@{pids}/mountinfo r, @{PROC}/devices r, /dev/*vg*/ r, /dev/bsg/ r, /dev/bus/ r, /dev/bus/usb/ r, /dev/bus/usb/@{int}/ r, /dev/char/ r, /dev/cpu/ r, /dev/cpu/@{int}/ r, /dev/dma_heap/ r, /dev/dri/ r, /dev/dri/by-path/ r, /dev/hugepages/ r, /dev/input/ r, /dev/input/by-id/ r, /dev/input/by-path/ r, /dev/mapper/control rw, /dev/mqueue/ r, /dev/shm/ r, /dev/snd/ r, /dev/snd/by-path/ r, include if exists } # vim:syntax=apparmor