Create lxqt-notificationd
This commit is contained in:
parent
c3447bc24f
commit
a41b590088
1 changed files with 70 additions and 0 deletions
70
apparmor.d/groups/lxqt/lxqt-notificationd
Normal file
70
apparmor.d/groups/lxqt/lxqt-notificationd
Normal file
|
|
@ -0,0 +1,70 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# Copyright (C) 2024 Besanon <m231009ts@mailfence.com>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = @{bin}/lxqt-session
|
||||||
|
profile lxqt-notificationd @{exec_path} flags=(complain) {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/fonts>
|
||||||
|
include <abstractions/qt5>
|
||||||
|
include <abstractions/lxqt>
|
||||||
|
include <abstractions/fontconfig-cache-read>
|
||||||
|
include <abstractions/graphics>
|
||||||
|
include <abstractions/mesa>
|
||||||
|
|
||||||
|
# TODO: local only
|
||||||
|
network inet dgram,
|
||||||
|
network inet stream,
|
||||||
|
network inet6 dgram,
|
||||||
|
network inet6 stream,
|
||||||
|
network netlink raw,
|
||||||
|
|
||||||
|
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}/xrdb rPx,
|
||||||
|
## @{bin}/dbus-update-activation-environment rix, this should not be set here
|
||||||
|
|
||||||
|
/usr/share/lxqt/power.conf r,
|
||||||
|
|
||||||
|
/etc/nsswitch.conf r,
|
||||||
|
|
||||||
|
/var/lib/dpkg/info/lxqt-notifications.conffiles r,
|
||||||
|
|
||||||
|
owner @{user_cache_dirs}/lxqt-notificationd/** rwk,
|
||||||
|
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_config_dirs}/lxqt/globalkeyshortcuts.conf.@{rand6} rwkl -> @{user_config_dirs}/lxqt/#@{int},
|
||||||
|
owner @{user_config_dirs}/lxqt/power.conf r,
|
||||||
|
|
||||||
|
# useless :
|
||||||
|
@{run}/systemd/inhibit/2.ref rw,
|
||||||
|
|
||||||
|
@{PROC}/sys/kernel/random/boot_id r,
|
||||||
|
|
||||||
|
owner /tmp/{,**} r,
|
||||||
|
|
||||||
|
/dev/tty rw,
|
||||||
|
|
||||||
|
include if exists <local/lxqt-notificationd>
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue