From 6bb413330b49dfd3f6dc7d8c627f0a47b1373b2a Mon Sep 17 00:00:00 2001 From: Besanon Date: Wed, 5 Jun 2024 16:05:29 +0200 Subject: [PATCH] Create lxqt-powermangement --- apparmor.d/groups/lxqt/lxqt-powermangement | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 apparmor.d/groups/lxqt/lxqt-powermangement diff --git a/apparmor.d/groups/lxqt/lxqt-powermangement b/apparmor.d/groups/lxqt/lxqt-powermangement new file mode 100644 index 000000000..2220adb44 --- /dev/null +++ b/apparmor.d/groups/lxqt/lxqt-powermangement @@ -0,0 +1,30 @@ +# 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-powermangement +profile lxqt-powermanagement @{exec_path} { + include + include + include + include + include + include + include + include + + @{exec_path} mr, + + /etc/udev/udev.conf r, + + owner /tmp/{,**} r, + + @{run}/systemd/inhibit/* rw, + + owner @{PROC}/@{pid}/mounts r, + + /dev/tty rw, +}