feat(abs): add app/bus

Useful to confine dbus access in scripts.
This commit is contained in:
Alexandre Pujol 2024-09-11 19:48:31 +01:00
parent 04c2cabeb6
commit 64c2ee5fe9
Failed to generate hash of commit

View file

@ -0,0 +1,18 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
# Minimal set of rules for dbus-send/dbus-launch.
include <abstractions/nameservice-strict>
@{bin}/dbus-launch mix,
@{bin}/dbus-send mix,
@{bin}/dbus-daemon Px -> dbus-session,
owner @{HOME}/.dbus/session-bus/@{hex}-@{int} w,
include if exists <abstractions/app/bus.d>
# vim:syntax=apparmor