feat(profile): add some missing dbus own definition.

This commit is contained in:
Alexandre Pujol 2024-03-15 15:03:42 +00:00
parent a6d263d304
commit bdeb62d17d
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
23 changed files with 49 additions and 43 deletions

View File

@ -10,6 +10,9 @@ include <tunables/global>
@{exec_path} = @{lib}/{,colord/}colord-session
profile colord-session @{exec_path} {
include <abstractions/base>
include <abstractions/bus-session>
# dbus: own bus=session name=org.freedesktop.ColorHelper
@{exec_path} mr,

View File

@ -14,6 +14,8 @@ profile iio-sensor-proxy @{exec_path} {
network netlink raw,
# dbus: own bus=system name=net.hadess.SensorProxy
@{exec_path} mr,
@{run}/udev/data/+platform:* r,

View File

@ -28,7 +28,7 @@ profile xdg-desktop-portal-gnome @{exec_path} {
signal (receive) set=term peer=gdm,
dbus bind bus=session name=org.freedesktop.impl.portal.desktop.gnome,
# dbus: own bus=session name=org.freedesktop.impl.portal.desktop.gnome
dbus send bus=session path=/org/gnome/Shell/Screenshot
interface=org.freedesktop.DBus.Properties

View File

@ -31,7 +31,8 @@ profile xdg-desktop-portal-gtk @{exec_path} {
unix (send, receive, connect) type=stream peer=(addr="@/tmp/.X11-unix/*", label=gnome-shell),
dbus bind bus=session name=org.freedesktop.impl.portal.desktop.gtk,
# dbus: own bus=session name=org.freedesktop.impl.portal.desktop.gtk
dbus receive bus=session path=/org/freedesktop/portal/desktop
interface=org.freedesktop.impl.portal.Settings
peer=(name=:*),

View File

@ -25,7 +25,7 @@ profile evolution-addressbook-factory @{exec_path} {
network inet6 dgram,
network netlink raw,
dbus bind bus=session name=org.gnome.evolution.dataserver.AddressBook@{int},
# dbus: own bus=session name=org.gnome.evolution.dataserver.AddressBook10
dbus (send, receive) bus=session path=/org/gnome/evolution/dataserver/**
interface=org.gnome.evolution.dataserver.*

View File

@ -24,7 +24,7 @@ profile evolution-calendar-factory @{exec_path} {
network inet6 dgram,
network netlink raw,
dbus bind bus=session name=org.gnome.evolution.dataserver.Calendar@{int},
# dbus: own bus=session name=org.gnome.evolution.dataserver.Calendar8
dbus (send, receive) bus=session path=/org/gnome/evolution/dataserver/**
interface=org.gnome.evolution.dataserver.*

View File

@ -22,6 +22,7 @@ profile evolution-source-registry @{exec_path} {
network inet6 dgram,
network netlink raw,
# dbus: own bus=session name=org.gnome.evolution.dataserver.Sources5
dbus receive bus=session path=/org/gnome/evolution/dataserver/SourceManager{,/**}
interface={org.freedesktop.DBus.ObjectManager,org.freedesktop.DBus.Properties}

View File

@ -11,16 +11,15 @@ profile gnome-remote-desktop-daemon @{exec_path} {
include <abstractions/base>
include <abstractions/bus-session>
include <abstractions/dconf-write>
include <abstractions/gnome-strict>
include <abstractions/graphics>
network inet stream,
network inet6 stream,
# dbus: own bus=session name=org.gnome.RemoteDesktop.User
@{exec_path} mr,
/usr/share/glib-2.0/schemas/gschemas.compiled r,
owner @{run}/user/@{uid}/wayland-@{int} rw,
include if exists <local/gnome-remote-desktop-daemon>
}

View File

@ -9,8 +9,11 @@ include <tunables/global>
@{exec_path} = @{lib}/gsd-usb-protection
profile gsd-usb-protection @{exec_path} {
include <abstractions/base>
include <abstractions/bus-session>
include <abstractions/dconf-write>
# dbus: own bus=session name=org.gnome.SettingsDaemon.UsbProtection
@{exec_path} mr,
/usr/share/glib-2.0/schemas/gschemas.compiled r,

View File

@ -6,7 +6,7 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{lib}/tracker-miner-fs-{,control-}3
@{exec_path} = @{lib}/tracker-miner-fs-{,control-,rss-}3
profile tracker-miner @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/bus-session>
@ -28,7 +28,9 @@ profile tracker-miner @{exec_path} flags=(attach_disconnected) {
signal (receive) set=(term, kill) peer=gdm,
signal (receive) set=(hup) peer=gdm-session-worker,
# dbus: own bus=session name=org.freedesktop.Tracker3 interface=org.freedesktop.DBus.{Properties,Peer}
# dbus: own bus=session name=org.freedesktop.Tracker3.Miner.Files interface=org.freedesktop.DBus.{Properties,Peer}
# dbus: own bus=session name=org.freedesktop.Tracker3.Miner.Files.Control
# dbus: own bus=session name=org.freedesktop.Tracker3.Miner.RSS
@{exec_path} mr,

View File

@ -12,10 +12,7 @@ profile gvfs-goa-volume-monitor @{exec_path} {
include <abstractions/base>
include <abstractions/bus-session>
dbus bind bus=session name=org.gtk.vfs.GoaVolumeMonitor,
dbus (send, receive) bus=session path=/org/gtk/Private/RemoteVolumeMonitor
interface=org.gtk.Private.RemoteVolumeMonitor
peer=(name="{:*,org.freedesktop.DBus}"),
# dbus: own bus=session name=org.gtk.vfs.GoaVolumeMonitor
dbus receive bus=session
interface=org.freedesktop.DBus.Introspectable

View File

@ -16,10 +16,7 @@ profile gvfs-gphoto2-volume-monitor @{exec_path} {
network netlink raw,
dbus bind bus=session name=org.gtk.vfs.GPhoto2VolumeMonitor,
dbus (send, receive) bus=session path=/org/gtk/Private/RemoteVolumeMonitor
interface=org.gtk.Private.RemoteVolumeMonitor
peer=(name="{:*,org.freedesktop.DBus}"),
# dbus: own bus=session name=org.gtk.vfs.GPhoto2VolumeMonitor
dbus receive bus=session
interface=org.freedesktop.DBus.Introspectable

View File

@ -15,10 +15,7 @@ profile gvfs-mtp-volume-monitor @{exec_path} {
network netlink raw,
dbus bind bus=session name=org.gtk.vfs.MTPVolumeMonitor,
dbus (send, receive) bus=session path=/org/gtk/Private/RemoteVolumeMonitor
interface=org.gtk.Private.RemoteVolumeMonitor
peer=(name="{:*,org.freedesktop.DBus}"),
# dbus: own bus=session name=org.gtk.vfs.MTPVolumeMonitor
dbus receive bus=session
interface=org.freedesktop.DBus.Introspectable

View File

@ -30,22 +30,9 @@ profile gvfs-udisks2-volume-monitor @{exec_path} flags=(attach_disconnected) {
ptrace (read),
dbus bind bus=session name=org.gtk.vfs.UDisks2VolumeMonitor,
dbus (send, receive) bus=session path=/org/gtk/Private/RemoteVolumeMonitor
interface=org.gtk.Private.RemoteVolumeMonitor
peer=(name="{:*,org.freedesktop.DBus}"),
# dbus: own bus=session name=org.gtk.vfs.UDisks2VolumeMonitor
dbus send bus=system path=/org/freedesktop/UDisks2/**
interface=org.freedesktop.UDisks2.Filesystem
peer=(name=:*, label=udisksd),
dbus receive bus=system path=/org/freedesktop/UDisks2
interface=org.freedesktop.DBus.ObjectManager
member=InterfacesRemoved
peer=(name=:*, label=udisksd),
dbus receive bus=system path=/org/freedesktop/UDisks2/**
interface=org.freedesktop.DBus.Properties
member=PropertiesChanged
peer=(name=:*, label=udisksd),
# dbus: talk bus=system name=org.freedesktop.UDisks2 label=udisksd
dbus receive bus=session
interface=org.freedesktop.DBus.Introspectable

View File

@ -12,7 +12,7 @@ profile gvfsd @{exec_path} {
include <abstractions/base>
include <abstractions/bus-session>
dbus bind bus=session name=org.gtk.vfs.Daemon,
# dbus: own bus=session name=org.gtk.vfs.Daemon
dbus send bus=session path=/org/gtk/vfs/mounttracker
interface=org.gtk.vfs.MountTracker
@ -22,11 +22,6 @@ profile gvfsd @{exec_path} {
interface=org.gtk.vfs.MountTracker
peer=(name=:*), # all members
dbus receive bus=session path=/org/gtk/vfs/Daemon
interface=org.gtk.vfs.Daemon
member=ListMonitorImplementations
peer=(name=:*), # all peer's labels
dbus send bus=session path=/org/gtk/vfs/mountable
interface=org.gtk.vfs.Mountable
member=Mount

View File

@ -9,8 +9,13 @@ include <tunables/global>
@{exec_path} = @{bin}/libvirt-dbus
profile libvirt-dbus @{exec_path} {
include <abstractions/base>
include <abstractions/bus-session>
include <abstractions/bus-system>
include <abstractions/nameservice-strict>
# dbus: own bus=session name=org.libvirt
# dbus: own bus=system name=org.libvirt
@{exec_path} mr,
@{bin}/libvirtd rPx,

View File

@ -21,6 +21,8 @@ profile blueman-mechanism @{exec_path} flags=(attach_disconnected) {
network inet6 stream,
network netlink raw,
# dbus: own bus=system name=org.blueman.Mechanism
@{exec_path} mr,
@{lib}/ r,

View File

@ -39,6 +39,8 @@ profile firewalld @{exec_path} {
member={changeZoneOfInterface,removeInterface}
peer=(name=:*, label=libvirtd),
# dbus: own bus=system name=org.fedoraproject.FirewallD1
@{exec_path} mr,
@{bin}/ r,

View File

@ -9,6 +9,9 @@ include <tunables/global>
@{exec_path} = @{lib}/flatpak-oci-authenticator
profile flatpak-oci-authenticator @{exec_path} {
include <abstractions/base>
include <abstractions/bus-session>
# dbus: own bus=session name=org.flatpak.Authenticator.Oci
@{exec_path} mr,

View File

@ -9,6 +9,7 @@ include <tunables/global>
@{exec_path} = @{lib}/flatpak-portal
profile flatpak-portal @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/bus-session>
include <abstractions/nameservice-strict>
capability sys_ptrace,
@ -19,6 +20,8 @@ profile flatpak-portal @{exec_path} flags=(attach_disconnected) {
signal send,
# dbus: own bus=session name=org.freedesktop.portal.Flatpak
@{exec_path} mr,
@{bin}/flatpak rPx,

View File

@ -9,12 +9,15 @@ include <tunables/global>
@{exec_path} = @{lib}/flatpak-session-helper
profile flatpak-session-helper @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/bus-session>
include <abstractions/nameservice-strict>
include <abstractions/p11-kit>
include <abstractions/ssl_certs>
signal (send) set=(int) peer=@{systemd},
# dbus: own bus=session name=org.freedesktop.Flatpak
@{exec_path} mr,
@{bin}/dbus-monitor rPUx,

View File

@ -24,6 +24,8 @@ profile flatpak-system-helper @{exec_path} {
ptrace (read),
# dbus: own bus=system name=org.freedesktop.Flatpak.SystemHelper
@{exec_path} mr,
@{bin}/bwrap rPUx,

View File

@ -19,6 +19,8 @@ profile glib-pacrunner @{exec_path} {
network inet6 stream,
network netlink raw,
# dbus: own bus=session name=org.gtk.GLib.PACRunner
@{exec_path} mr,
@{PROC}/cmdline r,