apparmor.d/apparmor.d/profiles-g-l/irqbalance
2022-05-09 21:51:18 +01:00

34 lines
No EOL
1 KiB
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}{s,}bin/irqbalance
profile irqbalance @{exec_path} {
include <abstractions/base>
@{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]*/node r,
@{PROC}/irq/[0-9]*/smp_affinity rw,
include if exists <local/irqbalance>
}