feat(dbus): rewrite some dbus rules (8).

This commit is contained in:
Alexandre Pujol 2023-12-05 21:27:03 +00:00
parent c4b48b06e2
commit 6a3cc952e1
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
12 changed files with 32 additions and 101 deletions

View file

@ -10,22 +10,12 @@ include <tunables/global>
@{exec_path} = @{lib}/{,gvfs/}gvfsd-dnssd
profile gvfsd-dnssd @{exec_path} {
include <abstractions/base>
include <abstractions/bus/avahi>
include <abstractions/bus/vfs/mount>
include <abstractions/dbus-session-strict>
include <abstractions/dbus-strict>
dbus send bus=system path=/
interface=org.freedesktop.Avahi.Server
member={Ping,GetAPIVersion,GetState,ServiceBrowserNew},
dbus send bus=system path=/
interface=org.freedesktop.DBus.Peer
member=Ping
peer=(name=org.freedesktop.Avahi),
dbus receive bus=system path=/Client[0-9]*/ServiceBrowser[0-9]
interface=org.freedesktop.Avahi.ServiceBrowser
member={CacheExhausted,AllForNow},
dbus bind bus=session name=org.gtk.vfs.mountpoint_dnssd,
dbus receive bus=session path=/org/gtk/vfs/Daemon
interface=org.gtk.vfs.Daemon
@ -42,8 +32,6 @@ profile gvfsd-dnssd @{exec_path} {
member=Spawned
peer=(name=:*, label=gvfsd),
dbus bind bus=session name=org.gtk.vfs.mountpoint_dnssd,
@{exec_path} mr,
owner @{run}/user/@{uid}/gvfsd/ rw,