Add power-profiles-daemon.

This commit is contained in:
Alexandre Pujol 2021-11-15 00:04:35 +00:00
parent 5995defae6
commit f05635015f
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -0,0 +1,32 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}lib/power-profiles-daemon
profile power-profiles-daemon @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
capability sys_nice,
capability dac_read_search,
network netlink raw,
@{exec_path} mr,
/var/lib/power-profiles-daemon/{,**} rw,
@{sys}/bus/ r,
@{sys}/class/ r,
@{sys}/class/power_supply/ r,
@{sys}/devices/**/power_supply/*/uevent r,
@{sys}/devices/system/cpu/*_pstate/no_turbo r,
@{sys}/devices/system/cpu/cpufreq/ r,
@{sys}/devices/system/cpu/cpufreq/policy[0-9]*/energy_performance_preference rw,
include if exists <local/power-profiles-daemon>
}