feat(dbus): start using the new dbus directive.

This commit is contained in:
Alexandre Pujol 2023-12-17 14:14:42 +00:00
parent e2682b3072
commit ca85373e3a
Failed to generate hash of commit
34 changed files with 51 additions and 129 deletions

View file

@ -5,16 +5,16 @@
dbus send bus=session path=/org/gtk/Private/RemoteVolumeMonitor dbus send bus=session path=/org/gtk/Private/RemoteVolumeMonitor
interface=org.gtk.Private.RemoteVolumeMonitor interface=org.gtk.Private.RemoteVolumeMonitor
member={List,IsSupported,VolumeChanged,VolumeMount,MountAdded} member={List,IsSupported,VolumeChanged,VolumeMount,MountAdded}
peer=(name=:*, label=gvfs-udisks2-volume-monitor), peer=(name=:*, label=gvfs-*-volume-monitor),
dbus receive bus=session path=/org/gtk/Private/RemoteVolumeMonitor dbus receive bus=session path=/org/gtk/Private/RemoteVolumeMonitor
interface=org.gtk.Private.RemoteVolumeMonitor interface=org.gtk.Private.RemoteVolumeMonitor
member={MountAdded,MountChanged,VolumeChanged,VolumeRemoved} member={MountAdded,MountChanged,VolumeChanged,VolumeRemoved}
peer=(name=:*, label=gvfs-udisks2-volume-monitor), peer=(name=:*, label=gvfs-*-volume-monitor),
dbus receive bus=session path=/org/gtk/Private/RemoteVolumeMonitor dbus receive bus=session path=/org/gtk/Private/RemoteVolumeMonitor
interface=org.gtk.Private.RemoteVolumeMonitor interface=org.gtk.Private.RemoteVolumeMonitor
member={VolumeAdded,DriveDisconnected,DriveConnected,DriveChanged} member={VolumeAdded,DriveDisconnected,DriveConnected,DriveChanged}
peer=(name=:*, label=gvfs-udisks2-volume-monitor), peer=(name=:*, label=gvfs-*-volume-monitor),
include if exists <abstractions/bus/org.gtk.Private.RemoteVolumeMonitor.d> include if exists <abstractions/bus/org.gtk.Private.RemoteVolumeMonitor.d>

View file

@ -90,7 +90,7 @@ profile systemd flags=(attach_disconnected,mediate_deleted) {
unix (send) type=dgram, unix (send) type=dgram,
dbus, # TODO: WIP dbus, # TODO: WIP
dbus bind bus=system name=org.freedesktop.systemd1, # dbus: own bus=system name=org.freedesktop.systemd1
@{bin}/systemctl rix, @{bin}/systemctl rix,
@{bin}/true rix, @{bin}/true rix,

View file

@ -38,10 +38,17 @@ profile apt @{exec_path} flags=(attach_disconnected) {
unix (send, receive) type=stream peer=(label=apt-esm-json-hook), unix (send, receive) type=stream peer=(label=apt-esm-json-hook),
unix (send, receive) type=stream peer=(label=snapd), unix (send, receive) type=stream peer=(label=snapd),
dbus bind bus=system name=org.debian.apt, # dbus: own bus=system name=org.debian.apt
dbus (send, receive) bus=system path=/org/debian/apt{,/transaction/@{hex}} dbus send bus=system path=/org/freedesktop/DBus/Bus
interface=org.{debian.apt*,freedesktop.DBus.{Properties,Introspectable}}, interface=org.freedesktop.DBus
member={GetConnectionUnixProcessID,GetConnectionUnixUser}
peer=(name=org.freedesktop.DBus, label=dbus-daemon),
dbus send bus=system path=/org/freedesktop/DBus/Bus
interface=org.freedesktop.DBus.Introspectable
member=Introspect
peer=(name=org.freedesktop.DBus, label=dbus-daemon),
@{exec_path} mr, @{exec_path} mr,

View file

@ -15,16 +15,7 @@ profile dconf-service @{exec_path} flags=(attach_disconnected) {
signal (receive) set=(term kill hup) peer=dbus-daemon, signal (receive) set=(term kill hup) peer=dbus-daemon,
signal (receive) set=(term hup) peer=gdm*, signal (receive) set=(term hup) peer=gdm*,
dbus bind bus=session name=ca.desrt.dconf, # dbus: own bus=session name=ca.desrt.dconf
dbus send bus=session path=/ca/desrt/dconf/Writer/user
interface=ca.desrt.dconf.Writer
peer=(name=org.freedesktop.DBus), # all members and peer's labels
dbus receive bus=session path=/ca/desrt/dconf/Writer/user
interface=ca.desrt.dconf.Writer
member=Change
peer=(name=:*), # all peer's labels
dbus receive bus=session dbus receive bus=session
interface=org.freedesktop.DBus.Introspectable interface=org.freedesktop.DBus.Introspectable

View file

@ -27,7 +27,7 @@ profile gdm @{exec_path} flags=(attach_disconnected) {
signal (send) set=(term), signal (send) set=(term),
# dbus: own bus=system name=org.gnome.DisplayManager.Manager # dbus: own bus=system name=org.gnome.DisplayManager
# dbus: talk bus=system name=org.freedesktop.login1 label=systemd-logind # dbus: talk bus=system name=org.freedesktop.login1 label=systemd-logind

View file

@ -35,7 +35,7 @@ profile gnome-control-center-goa-helper @{exec_path} {
signal (send) set=(kill) peer=bwrap, signal (send) set=(kill) peer=bwrap,
dbus bind bus=session name=org.gnome.Settings.GoaHelper, # dbus: own bus=session name=org.gnome.Settings.GoaHelper
dbus send bus=session path=/org/gnome/OnlineAccounts dbus send bus=session path=/org/gnome/OnlineAccounts
interface=org.freedesktop.DBus.ObjectManager interface=org.freedesktop.DBus.ObjectManager

View file

@ -16,7 +16,7 @@ profile gnome-initial-setup @{exec_path} {
network netlink raw, network netlink raw,
dbus bind bus=session name=org.gnome.InitialSetup, # dbus: own bus=session name=org.gnome.InitialSetup
@{exec_path} mr, @{exec_path} mr,

View file

@ -13,16 +13,7 @@ profile gnome-shell-calendar-server @{exec_path} {
include <abstractions/dconf-write> include <abstractions/dconf-write>
include <abstractions/nameservice-strict> include <abstractions/nameservice-strict>
dbus bind bus=session name=org.gnome.Shell.CalendarServer, # dbus: own bus=session name=org.gnome.Shell.CalendarServer
dbus receive bus=session path=/org/gnome/Shell/CalendarServer
interface=org.gnome.Shell.CalendarServer
peer=(name=:*, label=gnome-shell),
dbus (send receive) bus=session path=/org/gnome/Shell/CalendarServer
interface=org.freedesktop.DBus.Properties
peer=(name=:*),
dbus send bus=session path=/org/gnome/Shell/CalendarServer
interface=org.freedesktop.DBus.Properties
peer=(name=org.freedesktop.DBus),
dbus (send receive) bus=session path=/org/gnome/evolution/dataserver/{,**} dbus (send receive) bus=session path=/org/gnome/evolution/dataserver/{,**}
interface=org.freedesktop.DBus.Properties interface=org.freedesktop.DBus.Properties

View file

@ -24,19 +24,7 @@ profile gnome-terminal-server @{exec_path} {
ptrace (read) peer=htop, ptrace (read) peer=htop,
ptrace (read) peer=unconfined, ptrace (read) peer=unconfined,
dbus bind bus=session name=org.gnome.Terminal, # dbus: own bus=session name=org.gnome.Terminal interface={org.freedesktop.DBus.Properties,org.gtk.Actions}
dbus receive bus=session path=/org/gnome/Terminal{,/**}
interface=org.gnome.Terminal.*
peer=(name=:*),
dbus receive bus=session path=/org/gnome/Terminal{,/**}
interface=org.freedesktop.DBus.Properties
peer=(name=:*),
dbus receive bus=session path=/org/gnome/Terminal{,/**}
interface=org.gtk.Actions
peer=(name=:*),
dbus send bus=session path=/org/gnome/Terminal{,/**}
interface=org.gtk.Actions
peer=(name=org.freedesktop.DBus),
dbus receive bus=session path=/org/gnome/Terminal/SearchProvider dbus receive bus=session path=/org/gnome/Terminal/SearchProvider
interface=org.gnome.Shell.SearchProvider2 interface=org.gnome.Shell.SearchProvider2

View file

@ -25,10 +25,7 @@ profile goa-daemon @{exec_path} {
network inet6 dgram, network inet6 dgram,
network netlink raw, network netlink raw,
dbus bind bus=session name=org.gnome.OnlineAccounts, # dbus: own bus=session name=org.gnome.OnlineAccounts
dbus receive bus=session path=/org/gnome/OnlineAccounts
interface=org.freedesktop.DBus.ObjectManager
peer=(name=:*),
dbus send bus=session path=/org/gnome/Identity dbus send bus=session path=/org/gnome/Identity
interface=org.freedesktop.DBus.ObjectManager interface=org.freedesktop.DBus.ObjectManager

View file

@ -12,13 +12,7 @@ profile goa-identity-service @{exec_path} {
include <abstractions/authentication> include <abstractions/authentication>
include <abstractions/bus-session> include <abstractions/bus-session>
dbus bind bus=session name=org.gnome.Identity, # dbus: own bus=session name=org.gnome.Identity
dbus receive bus=session path=/org/gnome/Identity
interface=org.freedesktop.DBus.ObjectManager
peer=(name=:*),
dbus receive bus=session path=/org/gnome/Identity/Manager
interface=org.freedesktop.DBus.Properties
peer=(name=:*),
dbus send bus=session path=/org/gnome/OnlineAccounts dbus send bus=session path=/org/gnome/OnlineAccounts
interface=org.freedesktop.DBus.ObjectManager interface=org.freedesktop.DBus.ObjectManager

View file

@ -15,7 +15,7 @@ profile gsd-a11y-settings @{exec_path} flags=(attach_disconnected) {
signal (receive) set=(term, hup) peer=gdm*, signal (receive) set=(term, hup) peer=gdm*,
dbus bind bus=session name=org.gnome.SettingsDaemon.A11ySettings, # dbus: own bus=session name=org.gnome.SettingsDaemon.A11ySettings
dbus receive bus=session dbus receive bus=session
interface=org.freedesktop.DBus.Introspectable interface=org.freedesktop.DBus.Introspectable

View file

@ -24,11 +24,7 @@ profile gsd-color @{exec_path} flags=(attach_disconnected) {
signal (receive) set=(term, hup) peer=gdm*, signal (receive) set=(term, hup) peer=gdm*,
dbus bind bus=session name=org.gnome.SettingsDaemon.Color, # dbus: own bus=session name=org.gnome.SettingsDaemon.Color
dbus receive bus=session path=/org/gnome/SettingsDaemon/Color
interface=org.freedesktop.DBus.Properties
member=GetAll
peer=(name=:*, label=gnome-shell),
@{exec_path} mr, @{exec_path} mr,

View file

@ -15,7 +15,7 @@ profile gsd-datetime @{exec_path} flags=(attach_disconnected) {
signal (receive) set=(term, hup) peer=gdm*, signal (receive) set=(term, hup) peer=gdm*,
dbus bind bus=session name=org.gnome.SettingsDaemon.Datetime, # dbus: own bus=session name=org.gnome.SettingsDaemon.Datetime
dbus receive bus=session dbus receive bus=session
interface=org.freedesktop.DBus.Introspectable interface=org.freedesktop.DBus.Introspectable

View file

@ -13,7 +13,7 @@ profile gsd-disk-utility-notify @{exec_path} {
include <abstractions/bus-system> include <abstractions/bus-system>
include <abstractions/bus/org.freedesktop.UDisks2> include <abstractions/bus/org.freedesktop.UDisks2>
dbus bind bus=session name=org.gnome.Disks.NotificationMonitor, # dbus: own bus=session name=org.gnome.Disks.NotificationMonitor
dbus receive bus=session dbus receive bus=session
interface=org.freedesktop.DBus.Introspectable interface=org.freedesktop.DBus.Introspectable

View file

@ -19,7 +19,7 @@ profile gsd-housekeeping @{exec_path} flags=(attach_disconnected) {
signal (receive) set=(term, hup) peer=gdm*, signal (receive) set=(term, hup) peer=gdm*,
signal (receive) set=(term, hup) peer=gnome*, signal (receive) set=(term, hup) peer=gnome*,
dbus bind bus=session name=org.gnome.SettingsDaemon.Housekeeping, # dbus: own bus=session name=org.gnome.SettingsDaemon.Housekeeping
dbus receive bus=session dbus receive bus=session
interface=org.freedesktop.DBus.Introspectable interface=org.freedesktop.DBus.Introspectable

View file

@ -23,7 +23,7 @@ profile gsd-keyboard @{exec_path} flags=(attach_disconnected) {
signal (receive) set=(term, hup) peer=gdm*, signal (receive) set=(term, hup) peer=gdm*,
dbus bind bus=session name=org.gnome.SettingsDaemon.Keyboard, # dbus: own bus=session name=org.gnome.SettingsDaemon.Keyboard
@{exec_path} mr, @{exec_path} mr,

View file

@ -28,7 +28,7 @@ profile gsd-media-keys @{exec_path} flags=(attach_disconnected) {
network netlink raw, network netlink raw,
dbus bind bus=session name=org.gnome.SettingsDaemon.MediaKeys, # dbus: own bus=session name=org.gnome.SettingsDaemon.MediaKeys
dbus send bus=system path=/org/freedesktop/login1 dbus send bus=system path=/org/freedesktop/login1
interface=org.freedesktop.login1.Manager interface=org.freedesktop.login1.Manager

View file

@ -33,10 +33,7 @@ profile gsd-power @{exec_path} flags=(attach_disconnected) {
signal (receive) set=(term, hup) peer=gdm*, signal (receive) set=(term, hup) peer=gdm*,
dbus bind bus=session name=org.gnome.SettingsDaemon.Power, # dbus: own bus=session name=org.gnome.SettingsDaemon.Power
dbus (send, receive) bus=session path=/org/gnome/SettingsDaemon/Power
interface=org.freedesktop.DBus.Properties
peer=(name="{org.freedesktop.DBus,:*}", label="{gsd-media-keys,gnome-shell}"),
dbus send bus=session path=/org/gnome/Mutter/DisplayConfig dbus send bus=session path=/org/gnome/Mutter/DisplayConfig
interface=org.freedesktop.DBus.Properties interface=org.freedesktop.DBus.Properties

View file

@ -21,10 +21,10 @@ profile gsd-print-notifications @{exec_path} flags=(attach_disconnected) {
signal (receive) set=(term, hup) peer=gdm*, signal (receive) set=(term, hup) peer=gdm*,
signal (send) set=(hup) peer=gsd-printer, signal (send) set=(hup) peer=gsd-printer,
dbus bind bus=session name=org.gnome.SettingsDaemon.PrintNotifications, # dbus: own bus=session name=org.gnome.SettingsDaemon.PrintNotifications
dbus receive bus=system path=/org/cups/cupsd/Notifier # dbus receive bus=system path=/org/cups/cupsd/Notifier
interface=org.cups.cupsd.Notifier, # interface=org.cups.cupsd.Notifier,
dbus receive bus=session dbus receive bus=session
interface=org.freedesktop.DBus.Introspectable interface=org.freedesktop.DBus.Introspectable

View file

@ -17,9 +17,8 @@ profile gsd-printer @{exec_path} flags=(attach_disconnected) {
signal (receive) set=(term, hup) peer=gdm*, signal (receive) set=(term, hup) peer=gdm*,
signal (receive) set=(hup) peer=gsd-print-notifications, signal (receive) set=(hup) peer=gsd-print-notifications,
dbus bind bus=system name=com.redhat.NewPrinterNotification, # dbus: own bus=system name=com.redhat.NewPrinterNotification
# dbus: own bus=system name=com.redhat.PrinterDriversInstaller
dbus bind bus=system name=com.redhat.PrinterDriversInstaller,
dbus receive bus=session dbus receive bus=session
interface=org.freedesktop.DBus.Introspectable interface=org.freedesktop.DBus.Introspectable

View file

@ -20,13 +20,7 @@ profile gsd-rfkill @{exec_path} flags=(attach_disconnected) {
network netlink raw, network netlink raw,
dbus bind bus=session name=org.gnome.SettingsDaemon.Rfkill, # dbus: own bus=session name=org.gnome.SettingsDaemon.Rfkill
dbus receive bus=session path=/org/gnome/SettingsDaemon/Rfkill
interface=org.freedesktop.DBus.Properties
peer=(name=:*),
dbus send bus=session path=/org/gnome/SettingsDaemon/Rfkill
interface=org.freedesktop.DBus.Properties
peer=(name=org.freedesktop.DBus),
dbus receive bus=session dbus receive bus=session
interface=org.freedesktop.DBus.Introspectable interface=org.freedesktop.DBus.Introspectable

View file

@ -14,9 +14,8 @@ profile gsd-screensaver-proxy @{exec_path} flags=(attach_disconnected) {
signal (receive) set=(term, hup) peer=gdm*, signal (receive) set=(term, hup) peer=gdm*,
dbus bind bus=session name=org.freedesktop.ScreenSaver, # dbus: own bus=session name=org.freedesktop.ScreenSaver
# dbus: own bus=session name=org.gnome.SettingsDaemon.ScreensaverProxy
dbus bind bus=session name=org.gnome.SettingsDaemon.ScreensaverProxy,
dbus receive bus=session dbus receive bus=session
interface=org.freedesktop.DBus.Introspectable interface=org.freedesktop.DBus.Introspectable

View file

@ -17,7 +17,7 @@ profile gsd-sharing @{exec_path} flags=(attach_disconnected) {
signal (receive) set=(term, hup) peer=gdm*, signal (receive) set=(term, hup) peer=gdm*,
dbus bind bus=session name=org.gnome.SettingsDaemon.Sharing, # dbus: own bus=session name=org.gnome.SettingsDaemon.Sharing
dbus send bus=session path=/org/freedesktop/systemd1 dbus send bus=session path=/org/freedesktop/systemd1
interface=org.freedesktop.systemd1.Manager interface=org.freedesktop.systemd1.Manager

View file

@ -17,17 +17,7 @@ profile gsd-smartcard @{exec_path} flags=(attach_disconnected) {
signal (receive) set=(term, hup) peer=gdm*, signal (receive) set=(term, hup) peer=gdm*,
dbus bind bus=session name=org.gnome.SettingsDaemon.Smartcard, # dbus: own bus=session name=org.gnome.SettingsDaemon.Smartcard
dbus receive bus=session path=/org/gnome/SettingsDaemon/Smartcard
interface=org.freedesktop.DBus.ObjectManager
member=GetManagedObjects
peer=(name=:*, label=gnome-shell),
dbus receive bus=session path=/org/gnome/SettingsDaemon/Smartcard
interface=org.freedesktop.DBus.Properties
peer=(name=:*),
dbus send bus=session path=/org/gnome/SettingsDaemon/Smartcard
interface=org.freedesktop.DBus.Properties
peer=(name=org.freedesktop.DBus),
dbus receive bus=session dbus receive bus=session
interface=org.freedesktop.DBus.Introspectable interface=org.freedesktop.DBus.Introspectable

View file

@ -17,7 +17,7 @@ profile gsd-sound @{exec_path} flags=(attach_disconnected) {
signal (receive) set=(term, hup) peer=gdm*, signal (receive) set=(term, hup) peer=gdm*,
dbus bind bus=session name=org.gnome.SettingsDaemon.Sound, # dbus: own bus=session name=org.gnome.SettingsDaemon.Sound
dbus receive bus=session dbus receive bus=session
interface=org.freedesktop.DBus.Introspectable interface=org.freedesktop.DBus.Introspectable

View file

@ -21,10 +21,7 @@ profile gsd-wacom @{exec_path} flags=(attach_disconnected) {
signal (receive) set=(term, hup) peer=gdm*, signal (receive) set=(term, hup) peer=gdm*,
dbus bind bus=session name=org.gnome.SettingsDaemon.Wacom, # dbus: own bus=session name=org.gnome.SettingsDaemon.Wacom
dbus receive bus=session path=/org/gnome/SettingsDaemon/Wacom
interface=org.freedesktop.DBus.Properties
peer=(name=:*),
@{exec_path} mr, @{exec_path} mr,

View file

@ -32,15 +32,8 @@ profile gsd-xsettings @{exec_path} {
network inet6 dgram, network inet6 dgram,
network netlink raw, network netlink raw,
dbus bind bus=session name=org.gtk.Settings, # dbus: own bus=session name=org.gnome.SettingsDaemon.XSettings
dbus receive bus=session path=/org/gtk/Settings # dbus: own bus=session name=org.gtk.Settings
interface=org.freedesktop.DBus.Properties
peer=(name=:*),
dbus send bus=session path=/org/gtk/Settings
interface=org.freedesktop.DBus.Properties
peer=(name=org.freedesktop.DBus),
dbus bind bus=session name=org.gnome.SettingsDaemon.XSettings,
dbus send bus=system path=/org/freedesktop/Accounts/User@{uid} dbus send bus=system path=/org/freedesktop/Accounts/User@{uid}
interface=org.freedesktop.Accounts.User interface=org.freedesktop.Accounts.User

View file

@ -26,12 +26,7 @@ profile evince @{exec_path} {
deny network inet, deny network inet,
deny network inet6, deny network inet6,
dbus bind bus=session name=org.gnome.evince.Daemon, # dbus: own bus=session name=org.gnome.evince.Daemon
dbus send bus=session path=/org/gnome/evince/Daemon
interface=org.gnome.evince.Daemon
peer=(name=org.gnome.evince.Daemon),
dbus receive bus=session path=/org/gnome/evince/
peer=(name="{org.gnome.evince.Daemon,org.freedesktop.DBus,:*}", label=@{profile_name}), # all interfaces and members
dbus send bus=session path=/org/gtk/vfs/metadata dbus send bus=session path=/org/gtk/vfs/metadata
interface=org.gtk.vfs.Metadata interface=org.gtk.vfs.Metadata

View file

@ -19,10 +19,7 @@ profile fprintd @{exec_path} flags=(attach_disconnected) {
network netlink raw, network netlink raw,
dbus bind bus=system name=net.reactivated.Fprint, # dbus: own bus=system name=net.reactivated.Fprint
dbus receive bus=system path=/net/reactivated/Fprint/Manager
interface={org.freedesktop.DBus.Properties,net.reactivated.Fprint.Manager}
peer=(name=:*),
@{exec_path} mr, @{exec_path} mr,

View file

@ -16,10 +16,7 @@ profile obexd @{exec_path} {
network bluetooth stream, network bluetooth stream,
network bluetooth seqpacket, network bluetooth seqpacket,
dbus bind bus=session name=org.bluez.obex, # dbus: own bus=system name=org.bluez.obex
dbus receive bus=session path=/org/bluez/obex
interface=org.bluez.obex.AgentManager1
peer=(name=:*),
@{exec_path} mr, @{exec_path} mr,

View file

@ -18,7 +18,7 @@ profile passimd @{exec_path} flags=(attach_disconnected) {
network inet6 stream, network inet6 stream,
network netlink raw, network netlink raw,
dbus bind bus=system name=org.freedesktop.Passim, # dbus: own bus=system name=org.freedesktop.Passim
@{exec_path} mr, @{exec_path} mr,

View file

@ -29,7 +29,7 @@ profile remmina @{exec_path} {
network inet6 stream, network inet6 stream,
network netlink raw, network netlink raw,
dbus bind bus=session name=org.remmina.Remmina, # dbus: own bus=session name=org.remmina.Remmina
dbus send bus=session path=/StatusNotifierWatcher dbus send bus=session path=/StatusNotifierWatcher
interface=org.freedesktop.DBus.Introspectable interface=org.freedesktop.DBus.Introspectable

View file

@ -17,7 +17,7 @@ profile thermald @{exec_path} flags=(attach_disconnected) {
capability sys_boot, capability sys_boot,
dbus bind bus=system name=org.freedesktop.thermald, # dbus: own bus=sessisystemon name=org.freedesktop.thermald
@{exec_path} mr, @{exec_path} mr,