diff --git a/apparmor.d/profiles-g-l/irqbalance b/apparmor.d/profiles-g-l/irqbalance new file mode 100644 index 00000000..f0b1316e --- /dev/null +++ b/apparmor.d/profiles-g-l/irqbalance @@ -0,0 +1,33 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}{s,}bin/irqbalance +profile irqbalance @{exec_path} { + include + + @{exec_path} mr, + + @{run}/irqbalance/irqbalance[0-9]*.sock w, + + @{sys}/bus/pci/devices/ r, + @{sys}/devices/pci[0-9]*/**/{class,numa_node,local_cpus,irq} r, + @{sys}/devices/pci[0-9]*/**/{vendor,device,subsystem_vendor,subsystem_device} r, + @{sys}/devices/pci[0-9]*/**/msi_irqs/ r, + @{sys}/devices/system/cpu/cpu[0-9]*/ r, + @{sys}/devices/system/cpu/cpu[0-9]*/cache/index[0-9]*/shared_cpu_map r, + @{sys}/devices/system/cpu/cpu[0-9]*/topology/{,**} r, + @{sys}/devices/system/cpu/isolated r, + @{sys}/devices/system/node/ r, + @{sys}/devices/system/node/node[0-9]*/ r, + @{sys}/devices/system/node/node[0-9]*/{cpumap,meminfo} r, + + @{PROC}/interrupts r, + @{PROC}/irq/[0-9]*/smp_affinity rw, + + include if exists +} \ No newline at end of file