From e86838f8497f6b3b5adcd21dfcf6f6d9ab1f30ae Mon Sep 17 00:00:00 2001 From: Besanon Date: Wed, 5 Jun 2024 15:56:41 +0200 Subject: [PATCH] Create lxqt-config-powermanagement --- .../groups/lxqt/lxqt-config-powermanagement | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 apparmor.d/groups/lxqt/lxqt-config-powermanagement diff --git a/apparmor.d/groups/lxqt/lxqt-config-powermanagement b/apparmor.d/groups/lxqt/lxqt-config-powermanagement new file mode 100644 index 000000000..848cf2e04 --- /dev/null +++ b/apparmor.d/groups/lxqt/lxqt-config-powermanagement @@ -0,0 +1,33 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 Alexandre Pujol +# Copyright (C) 2024 Besanon +# SPDX-License-Identifier: GPL-2.0-only + +#include + +@{exec_path} = @{bin}/lxqt-config-powermanagement +profile lxqt-config-powermanagement @{exec_path} { + include + include + include + include + include + include + include + include + + @{exec_path} mr, + + owner @{user_config_dirs}/lxqt/** rwkl -> @{user_config_dirs}/lxqt/#@{int}, + + owner /tmp/@{int} r, + + @{sys}/devices/@{pci_bus}/{,**} r, + @{sys}/devices/@{pci_bus}/**/**/** r, + @{sys}/class/backlight/ r, + + @{PROC}/sys/kernel/random/boot_id r, + + /dev/tty rw, + +}