apparmor.d/apparmor.d/groups/systemd/systemd-sleep
2023-03-27 21:42:13 +01:00

36 lines
1 KiB
Text

# 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/systemd/systemd-sleep
profile systemd-sleep @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
include <abstractions/dbus-strict>
include <abstractions/systemd-common>
capability net_admin,
capability sys_admin,
capability sys_resource,
@{exec_path} mr,
/{usr/,}lib/systemd/system-sleep/grub2.sleep rPx,
/{usr/,}lib/systemd/system-sleep/hdparm rPx,
/{usr/,}lib/systemd/system-sleep/nvidia rPx,
/{usr/,}lib/systemd/system-sleep/sysstat.sleep rPx,
/{usr/,}lib/systemd/system-sleep/tlp rPx,
/{usr/,}lib/systemd/system-sleep/unattended-upgrades rPx,
/etc/systemd/sleep.conf r,
/etc/systemd/sleep.conf.d/{,*} r,
@{sys}/power/state rw,
include if exists <local/systemd-sleep>
}