feat(profile): improve dbus abstractions and interopaerability with profiles.

This commit is contained in:
Alexandre Pujol 2025-03-09 22:58:27 +01:00
parent 0ef623ed40
commit 7badf80854
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
3 changed files with 17 additions and 1 deletions

View file

@ -11,6 +11,7 @@
ptrace read peer=@{p_systemd},
unix bind type=stream addr=@@{udbus}/bus/systemctl/,
unix bind type=stream addr=@@{udbus}/bus/systemctl/system,
@{bin}/systemctl mr,

View file

@ -2,6 +2,16 @@
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
include <abstractions/bus-system>
dbus send bus=system path=/org/freedesktop/DBus
interface=org.freedesktop.DBus
member={Hello,AddMatch,RemoveMatch,GetNameOwner,NameHasOwner,StartServiceByName}
peer=(name=org.freedesktop.DBus, label="@{p_dbus_system}"),
dbus send bus=system path=/org/freedesktop/DBus
interface=org.freedesktop.DBus
member={RequestName,ReleaseName}
peer=(name=org.freedesktop.DBus, label="@{p_dbus_system}"),
@{run}/dbus/system_bus_socket rw,
# vim:syntax=apparmor

View file

@ -21,6 +21,11 @@
type=stream
addr="@/home/*/.cache/ibus/dbus-????????",
dbus receive bus=session path=/org/freedesktop/IBus
interface=org.freedesktop.DBus.Peer
member=Ping
peer=(name=@{busname}, label=ibus-daemon),
owner @{user_cache_dirs}/ibus/dbus-@{rand8} rw,
# vim:syntax=apparmor