feat(systemd): split systemd-sleep profile.

This commit is contained in:
Alexandre Pujol 2023-02-04 23:41:19 +00:00
parent ad23864094
commit ff76602843
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
6 changed files with 110 additions and 9 deletions

View 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>
}