apparmor.d/apparmor.d/groups/systemd/systemd-sleep-grub2

28 lines
No EOL
578 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{lib}/systemd/system-sleep/grub2.sleep
profile systemd-sleep-grub @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
@{bin}/{,ba,da}sh rix,
@{bin}/grep rix,
@{bin}/uname rix,
/etc/sysconfig/bootloader r,
/var/lib/nscd/passwd r,
@{PROC}/@{pid}/maps r,
/dev/tty rw,
include if exists <local/systemd-sleep-grub>
}