feat(profile): improve dbus abstractions and interopaerability with profiles.
This commit is contained in:
parent
0ef623ed40
commit
7badf80854
3 changed files with 17 additions and 1 deletions
|
|
@ -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,
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue