feat(dbus): update dbus rules.

This commit is contained in:
Alexandre Pujol 2023-09-12 22:55:24 +01:00
parent 600a71a6b1
commit 6c397882ad
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
36 changed files with 206 additions and 130 deletions

View file

@ -10,6 +10,7 @@ include <tunables/global>
@{exec_path} = @{lib}/bluetooth/bluetoothd
profile bluetoothd @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/dbus-strict>
# Needed for configuring HCI interfaces
capability net_admin,
@ -21,6 +22,20 @@ profile bluetoothd @{exec_path} flags=(attach_disconnected) {
network alg seqpacket,
network netlink raw,
dbus send bus=system path=/org/freedesktop/DBus
interface=org.freedesktop.DBus
peer=(name=org.freedesktop.DBus, label=dbus-daemon),
dbus send bus=system path=/org/bluez/hci0
interface=org.freedesktop.DBus.Properties
member=PropertiesChanged
peer=(name=org.freedesktop.DBus),
dbus receive bus=system path=/org/bluez{,**}
interface=org.bluez.Media1
member=RegisterApplication
peer=(name=:*),
@{exec_path} mr,
@{lib}/@{multiarch}/bluetooth/plugins/*.so mr,