apparmor.d/apparmor.d/profiles-g-l/irqbalance
Alexandre Pujol b79a1fcd31
feat(profile): general update.
Also include some preparation for the systemd profile.
2023-11-19 11:08:35 +00:00

43 lines
No EOL
1.2 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} = @{bin}/irqbalance
profile irqbalance @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
capability setpcap,
network netlink raw,
@{exec_path} mr,
/etc/default/irqbalance r,
/ r,
@{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@{int}/ r,
@{sys}/devices/system/cpu/cpu@{int}/cache/index[0-9]*/shared_cpu_map r,
@{sys}/devices/system/cpu/cpu@{int}/topology/{,**} r,
@{sys}/devices/system/cpu/isolated r,
@{sys}/devices/system/node/ r,
@{sys}/devices/system/node/node@{int}/ r,
@{sys}/devices/system/node/node@{int}/{cpumap,meminfo} r,
@{sys}/devices/system/cpu/nohz_full r,
@{PROC}/interrupts r,
@{PROC}/irq/@{int}/node r,
@{PROC}/irq/@{int}/smp_affinity rw,
include if exists <local/irqbalance>
}