From 7479b595e91cca5db2db63112c48378a1eed0cd6 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Thu, 7 Apr 2022 21:11:02 +0100 Subject: [PATCH] feat: add irqbalance. --- apparmor.d/profiles-g-l/irqbalance | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 apparmor.d/profiles-g-l/irqbalance 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