mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
Add power-profiles-daemon.
This commit is contained in:
parent
5995defae6
commit
f05635015f
32
apparmor.d/profiles-m-r/power-profiles-daemon
Normal file
32
apparmor.d/profiles-m-r/power-profiles-daemon
Normal 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>
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user