From c6472638e8ca6476d5499b7d53dd068e2c915c4f Mon Sep 17 00:00:00 2001 From: Besanon Date: Sat, 14 Dec 2024 10:48:38 +0100 Subject: [PATCH] Create lxqt-notificationd --- apparmor.d/groups/lxqt/lxqt-notificationd | 56 +++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 apparmor.d/groups/lxqt/lxqt-notificationd diff --git a/apparmor.d/groups/lxqt/lxqt-notificationd b/apparmor.d/groups/lxqt/lxqt-notificationd new file mode 100644 index 00000000..6de78218 --- /dev/null +++ b/apparmor.d/groups/lxqt/lxqt-notificationd @@ -0,0 +1,56 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 Alexandre Pujol +# Copyright (C) 2024 Besanon +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{bin}/lxqt-notificationd +profile lxqt-notificationd @{exec_path} { + include + include + include + include + + dbus receive + bus=session + path="/org/freedesktop/Notifications" + interface="org.freedesktop.DBus.Introspectable" + peer=(name=":[0-9]*.[0-9]*"), + dbus send + bus=session + path="/org/freedesktop/Notifications" + interface="org.freedesktop.Notifications" + peer=(name="org.freedesktop.DBus"), + dbus receive + bus=session + path="/org/freedesktop/Notifications" + interface="org.freedesktop.Notifications" + peer=(name=":[0-9]*.[0-9]*"), + + @{exec_path} mr, + + @{bin}/lxqt-config-notificationd rPx, + + /etc/machine-id r, + + owner @{user_cache_dirs}/lxqt-notificationd/ r, + owner @{user_cache_dirs}/lxqt-notificationd/#@{int} rwk, + owner @{user_cache_dirs}/lxqt-notificationd/unattended.list rw, + owner @{user_cache_dirs}/lxqt-notificationd/unattended.list l -> @{user_cache_dirs}/lxqt-notificationd/#@{int}, + owner @{user_cache_dirs}/lxqt-notificationd/unattended.list.lock rwk, + owner @{user_cache_dirs}/lxqt-notificationd/unattended.list.@{rand6} rwkl -> @{user_cache_dirs}/lxqt-notificationd/#@{int}, + + owner /tmp/@{int} r, + owner /tmp/falkon-@{rand6}/falkon_notif.png r, + + /dev/tty rw, + /dev/tty@{int} rw, + owner /dev/tty@{int} rw, + + include if exists +} + +# vim:syntax=apparmor