apparmor.d/apparmor.d/groups/systemd/systemd-sleep
REmerald 4d707633a1 feat(groups/{c,d,f,s}*): vim syntax support
Add vim modeline instructing the editor to use syntax plugin provided by apparmor.
Continuation of #392 to keep the diff list relatively short.
2024-06-16 17:30:44 +01:00

38 lines
1,017 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{lib}/systemd/systemd-sleep
profile systemd-sleep @{exec_path} {
include <abstractions/base>
include <abstractions/bus-system>
include <abstractions/nameservice-strict>
include <abstractions/common/systemd>
capability net_admin,
capability sys_admin,
capability sys_resource,
@{exec_path} mr,
@{lib}/systemd/system-sleep/grub2.sleep rPx,
@{lib}/systemd/system-sleep/hdparm rPx,
@{lib}/systemd/system-sleep/nvidia rPx,
@{lib}/systemd/system-sleep/sysstat.sleep rPx,
@{lib}/systemd/system-sleep/tlp rPx,
@{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>
}
# vim:syntax=apparmor