mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 10:07:12 +00:00
Merge profiles: add a profile for notify-send
Signed-off-by: Ryan Lee <ryan.lee@canonical.com> MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1635 Approved-by: Maxime Bélair <maxime.belair@canonical.com> Merged-by: Maxime Bélair <maxime.belair@canonical.com>
This commit is contained in:
commit
2800aaedd0
21
profiles/apparmor.d/notify-send
Normal file
21
profiles/apparmor.d/notify-send
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
abi <abi/4.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
profile notify-send /usr/bin/notify-send {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/dbus-session-strict>
|
||||||
|
|
||||||
|
/usr/bin/notify-send mr,
|
||||||
|
|
||||||
|
# No idea why notify-send wants cgroup info but it works fine without it
|
||||||
|
deny /proc/@{pid}/cgroup r,
|
||||||
|
|
||||||
|
dbus (send)
|
||||||
|
bus=session
|
||||||
|
path=/org/freedesktop/Notifications
|
||||||
|
interface=org.freedesktop.Notifications
|
||||||
|
member={GetServerInformation,Notify},
|
||||||
|
|
||||||
|
include if exists <local/notify-send>
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user