feat(systemd): split systemd-sleep profile.
This commit is contained in:
parent
ad23864094
commit
ff76602843
6 changed files with 110 additions and 9 deletions
24
apparmor.d/groups/systemd/systemd-sleep-grub2
Normal file
24
apparmor.d/groups/systemd/systemd-sleep-grub2
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# 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} = /{usr/,}lib/systemd/system-sleep/grub2.sleep
|
||||
profile systemd-sleep-nvidia @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}bin/{,ba,da}sh rix,
|
||||
/{usr/,}bin/grep rix,
|
||||
/{usr/,}bin/uname rix,
|
||||
|
||||
/etc/sysconfig/bootloader r,
|
||||
|
||||
@{PROC}/@{pid}/maps r,
|
||||
|
||||
include if exists <local/systemd-sleep-nvidia>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue