feat(profile) gvfs: more dbus integration.
This commit is contained in:
parent
f18fc88253
commit
53df40b8ac
6 changed files with 59 additions and 1 deletions
|
|
@ -38,6 +38,11 @@ profile gvfsd-dnssd @{exec_path} {
|
||||||
member=Introspect
|
member=Introspect
|
||||||
peer=(name=@{busname}, label=gnome-shell),
|
peer=(name=@{busname}, label=gnome-shell),
|
||||||
|
|
||||||
|
dbus receive bus=session
|
||||||
|
interface=org.freedesktop.DBus.Introspectable
|
||||||
|
member=Introspect
|
||||||
|
peer=(name=@{busname}, label=gnome-shell),
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
owner @{run}/user/@{uid}/gvfsd/ rw,
|
owner @{run}/user/@{uid}/gvfsd/ rw,
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ include <tunables/global>
|
||||||
profile gvfsd-http @{exec_path} {
|
profile gvfsd-http @{exec_path} {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/bus-session>
|
include <abstractions/bus-session>
|
||||||
|
include <abstractions/bus/org.gtk.vfs.Daemon>
|
||||||
include <abstractions/dconf-write>
|
include <abstractions/dconf-write>
|
||||||
include <abstractions/freedesktop.org>
|
include <abstractions/freedesktop.org>
|
||||||
include <abstractions/nameservice-strict>
|
include <abstractions/nameservice-strict>
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,16 @@ profile gvfsd-network @{exec_path} {
|
||||||
member={MountLocation,LookupMount,RegisterMount}
|
member={MountLocation,LookupMount,RegisterMount}
|
||||||
peer=(name="@{busname}", label=gvfsd),
|
peer=(name="@{busname}", label=gvfsd),
|
||||||
|
|
||||||
|
dbus receive bus=session
|
||||||
|
interface=org.freedesktop.DBus.Introspectable
|
||||||
|
member=Introspect
|
||||||
|
peer=(name=@{busname}, label=gnome-shell),
|
||||||
|
|
||||||
|
dbus send bus=session path=/org/gtk/vfs/Daemon
|
||||||
|
interface=org.gtk.vfs.Daemon
|
||||||
|
member=GetConnection
|
||||||
|
peer=(name=@{busname}),
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,11 @@ profile gvfsd-recent @{exec_path} {
|
||||||
member=RegisterMount
|
member=RegisterMount
|
||||||
peer=(name="@{busname}", label=gvfsd),
|
peer=(name="@{busname}", label=gvfsd),
|
||||||
|
|
||||||
|
dbus receive bus=session
|
||||||
|
interface=org.freedesktop.DBus.Introspectable
|
||||||
|
member=Introspect
|
||||||
|
peer=(name=@{busname}, label=gnome-shell),
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
# Full access to user's data
|
# Full access to user's data
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,36 @@ include <tunables/global>
|
||||||
@{exec_path} = @{lib}/{,gvfs/}gvfsd-sftp
|
@{exec_path} = @{lib}/{,gvfs/}gvfsd-sftp
|
||||||
profile gvfsd-sftp @{exec_path} {
|
profile gvfsd-sftp @{exec_path} {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
|
include <abstractions/bus-session>
|
||||||
|
include <abstractions/bus/org.gtk.vfs.MountTracker>
|
||||||
include <abstractions/consoles>
|
include <abstractions/consoles>
|
||||||
include <abstractions/freedesktop.org>
|
include <abstractions/freedesktop.org>
|
||||||
include <abstractions/nameservice-strict>
|
include <abstractions/nameservice-strict>
|
||||||
|
|
||||||
|
#aa:dbus own bus=session name=org.gtk.vfs.mountpoint_@{int}
|
||||||
|
|
||||||
|
dbus receive bus=session path=/org/gtk/vfs/Daemon
|
||||||
|
interface=org.gtk.vfs.Daemon
|
||||||
|
member=GetConnection
|
||||||
|
peer=(name=@{busname}, label=gnome-extension-gsconnect),
|
||||||
|
dbus receive bus=session path=/org/gtk/vfs/Daemon
|
||||||
|
interface=org.gtk.vfs.Daemon
|
||||||
|
member=GetConnection
|
||||||
|
peer=(name=@{busname}, label=nautilus),
|
||||||
|
|
||||||
|
dbus receive bus=session path=/org/gtk/vfs/mountable
|
||||||
|
interface=org.gtk.vfs.Mountable
|
||||||
|
member=Mount
|
||||||
|
peer=(name=:*, label=gvfsd),
|
||||||
|
dbus send bus=session path=/org/gtk/gvfs/exec_spaw/@{int}
|
||||||
|
interface=org.gtk.vfs.Spawner
|
||||||
|
member=Spawned
|
||||||
|
peer=(name=:*, label=gvfsd),
|
||||||
|
dbus send bus=session path=/org/gtk/vfs/mounttracker
|
||||||
|
interface=org.gtk.vfs.MountTracker
|
||||||
|
member=RegisterMount
|
||||||
|
peer=(name=:*, label=gvfsd),
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
@{bin}/ssh rPx,
|
@{bin}/ssh rPx,
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ profile gvfsd-wsdd @{exec_path} {
|
||||||
include <abstractions/bus-system>
|
include <abstractions/bus-system>
|
||||||
include <abstractions/bus/org.freedesktop.NetworkManager>
|
include <abstractions/bus/org.freedesktop.NetworkManager>
|
||||||
include <abstractions/bus/org.gtk.vfs.MountTracker>
|
include <abstractions/bus/org.gtk.vfs.MountTracker>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
|
||||||
network netlink raw,
|
network netlink raw,
|
||||||
|
|
||||||
|
|
@ -31,9 +32,19 @@ profile gvfsd-wsdd @{exec_path} {
|
||||||
member=RegisterMount
|
member=RegisterMount
|
||||||
peer=(name="@{busname}", label=gvfsd),
|
peer=(name="@{busname}", label=gvfsd),
|
||||||
|
|
||||||
|
dbus receive bus=session path=/org/gtk/vfs/Daemon
|
||||||
|
interface=org.gtk.vfs.Daemon
|
||||||
|
member=GetConnection
|
||||||
|
peer=(name=@{busname}, label=gvfsd-network),
|
||||||
|
|
||||||
|
dbus receive bus=session
|
||||||
|
interface=org.freedesktop.DBus.Introspectable
|
||||||
|
member=Introspect
|
||||||
|
peer=(name=@{busname}, label=gnome-shell),
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
@{bin}/env r,
|
@{bin}/env mr,
|
||||||
@{bin}/wsdd rPx,
|
@{bin}/wsdd rPx,
|
||||||
|
|
||||||
@{run}/mount/utab r,
|
@{run}/mount/utab r,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue