Skip to content

Commit

Permalink
feat(dbus): add more bus abstraction.
Browse files Browse the repository at this point in the history
  • Loading branch information
roddhjav committed Dec 10, 2023
1 parent 41a7cb0 commit 4b97355
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
15 changes: 15 additions & 0 deletions apparmor.d/abstractions/bus/org.freedesktop.Tracker3.Miner.Files
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <[email protected]>
# SPDX-License-Identifier: GPL-2.0-only

dbus send bus=session path=/org/freedesktop/Tracker3/Endpoint
interface=org.freedesktop.DBus.Peer
member=Ping
peer=(name=org.freedesktop.Tracker3.Miner.Files, label=tracker-miner),

dbus send bus=session path=/org/freedesktop/Tracker3/Endpoint
interface=org.freedesktop.Tracker3.Endpoint
member=Query
peer=(name=org.freedesktop.Tracker3.Miner.Files, label=tracker-miner),

include if exists <abstractions/bus/org.freedesktop.Tracker3.Miner.Files.d>
10 changes: 10 additions & 0 deletions apparmor.d/abstractions/bus/org.gnome.DisplayManager
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <[email protected]>
# SPDX-License-Identifier: GPL-2.0-only

dbus send bus=system path=/org/gnome/DisplayManager/Manager
interface=org.gnome.DisplayManager.Manager
member=RegisterDisplay
peer=(name=:*, label=gdm),

include if exists <abstractions/bus/org.gnome.DisplayManager.d>
10 changes: 10 additions & 0 deletions apparmor.d/abstractions/bus/org.gnome.Nautilus.FileOperations2
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <[email protected]>
# SPDX-License-Identifier: GPL-2.0-only

dbus send bus=session path=/org/gnome/Nautilus/FileOperations2
interface=org.freedesktop.DBus.Properties
member=GetAll
peer=(name=:*, label=nautilus),

include if exists <abstractions/bus/org.gnome.Nautilus.FileOperations2.d>
15 changes: 15 additions & 0 deletions apparmor.d/abstractions/bus/org.gtk.Private.RemoteVolumeMonitor
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <[email protected]>
# SPDX-License-Identifier: GPL-2.0-only

dbus send bus=session path=/org/gtk/Private/RemoteVolumeMonitor
interface=org.gtk.Private.RemoteVolumeMonitor
member={List,IsSupported,VolumeChanged,VolumeMount,MountAdded}
peer=(name=:*, label=gvfs-*-monitor),

dbus receive bus=session path=/org/gtk/Private/RemoteVolumeMonitor
interface=org.gtk.Private.RemoteVolumeMonitor
member={MountAdded,VolumeChanged}
peer=(name=:*, label=gvfs-*-volume-monitor),

include if exists <abstractions/bus/org.gtk.Private.RemoteVolumeMonitor.d>

0 comments on commit 4b97355

Please sign in to comment.