feat(profiles): general update.

This commit is contained in:
Alexandre Pujol 2023-03-27 21:42:13 +01:00
parent c7cf156de9
commit b793968690
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
7 changed files with 43 additions and 5 deletions

View file

@ -19,11 +19,12 @@ profile systemd-sleep @{exec_path} {
@{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,
/{usr/,}lib/systemd/system-sleep/grub2.sleep rPx,
/etc/systemd/sleep.conf r,
/etc/systemd/sleep.conf.d/{,*} r,

View file

@ -0,0 +1,18 @@
# 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/tlp
profile systemd-sleep-tlp @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
/{usr/,}bin/tlp rPUx,
include if exists <local/systemd-sleep-tlp>
}