diff --git a/apparmor.d/groups/lxqt/lxqt-notificationd b/apparmor.d/groups/lxqt/lxqt-notificationd new file mode 100644 index 000000000..6f92fc59a --- /dev/null +++ b/apparmor.d/groups/lxqt/lxqt-notificationd @@ -0,0 +1,59 @@ +# 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 + include + include + include + 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, + + /var/lib/dpkg/info/lxqt-notifications.conffiles r, + + owner @{user_cache_dirs}/lxqt-notificationd/** rwk, + owner @{user_cache_dirs}/lxqt-notificationd/ rw, + owner @{user_cache_dirs}/lxqt-notificationd/#@{int} rw, + owner @{user_cache_dirs}/lxqt-notificationd/unattended.list.@{rand6} rwkl -> @{user_cache_dirs}/lxqt-notificationd/#@{int}, + owner @{user_cache_dirs}/mesa_shader_cache/index rwk, + + owner @{user_config_dirs}/lxqt/globalkeyshortcuts.conf.@{rand6} rwkl -> @{user_config_dirs}/lxqt/#@{int}, + + owner /tmp/@{int} r, + + /dev/tty rw, + + include if exists +} + +# vim:syntax=apparmor