mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
feat(dbus): add more dbus abstraction.
This commit is contained in:
parent
799b778480
commit
401606b1aa
11 changed files with 191 additions and 0 deletions
10
apparmor.d/abstractions/bus/net.hadess.PowerProfiles
Normal file
10
apparmor.d/abstractions/bus/net.hadess.PowerProfiles
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
dbus send bus=system path=/net/hadess/PowerProfiles
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member=GetAll
|
||||||
|
peer=(name=:*, label=power-profiles-daemon),
|
||||||
|
|
||||||
|
include if exists <abstractions/bus/net.hadess.PowerProfiles.d>
|
10
apparmor.d/abstractions/bus/net.hadess.SwitcherooControl
Normal file
10
apparmor.d/abstractions/bus/net.hadess.SwitcherooControl
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
dbus send bus=system path=/net/hadess/SwitcherooControl
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member=GetAll
|
||||||
|
peer=(name=:*, label=switcheroo-control),
|
||||||
|
|
||||||
|
include if exists <abstractions/bus/net.hadess.SwitcherooControl.d>
|
20
apparmor.d/abstractions/bus/net.reactivated.Fprint
Normal file
20
apparmor.d/abstractions/bus/net.reactivated.Fprint
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
dbus send bus=system path=/net/reactivated/Fprint/Manager
|
||||||
|
interface=net.reactivated.Fprint.Manager
|
||||||
|
member=GetDefaultDevice
|
||||||
|
peer=(name=:*, label=fprintd),
|
||||||
|
|
||||||
|
dbus send bus=system path=/net/reactivated/Fprint/Manager
|
||||||
|
interface=net.reactivated.Fprint.Manager
|
||||||
|
member=GetDefaultDevice
|
||||||
|
peer=(name=net.reactivated.Fprint),
|
||||||
|
|
||||||
|
dbus send bus=system path=/net/reactivated/Fprint/Manager
|
||||||
|
interface=net.reactivated.Fprint.Manager
|
||||||
|
member=GetDefaultDevice
|
||||||
|
peer=(name=net.reactivated.Fprint, label=fprintd),
|
||||||
|
|
||||||
|
include if exists <abstractions/bus/net.reactivated.Fprint.d>
|
20
apparmor.d/abstractions/bus/org.freedesktop.ColorManager
Normal file
20
apparmor.d/abstractions/bus/org.freedesktop.ColorManager
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
dbus send bus=system path=/org/freedesktop/ColorManager
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member=GetAll
|
||||||
|
peer=(name=:*, label=colord),
|
||||||
|
|
||||||
|
dbus send bus=system path=/org/freedesktop/ColorManager
|
||||||
|
interface=org.freedesktop.ColorManager
|
||||||
|
member=CreateDevice
|
||||||
|
peer=(name=:*, label=colord),
|
||||||
|
|
||||||
|
dbus receive bus=system path=/org/freedesktop/ColorManager
|
||||||
|
interface=org.freedesktop.ColorManager
|
||||||
|
member={DeviceAdded,DeviceRemoved}
|
||||||
|
peer=(name=:*, label=colord),
|
||||||
|
|
||||||
|
include if exists <abstractions/bus/org.freedesktop.ColorManager.d>
|
15
apparmor.d/abstractions/bus/org.freedesktop.FileManager1
Normal file
15
apparmor.d/abstractions/bus/org.freedesktop.FileManager1
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
dbus send bus=session path=/org/freedesktop/FileManager1
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member=GetAll
|
||||||
|
peer=(name=:*, label=nautilus),
|
||||||
|
|
||||||
|
dbus receive bus=session path=/org/freedesktop/FileManager1
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member=PropertiesChanged
|
||||||
|
peer=(name=:*, label=nautilus),
|
||||||
|
|
||||||
|
include if exists <abstractions/bus/org.freedesktop.FileManager1.d>
|
30
apparmor.d/abstractions/bus/org.freedesktop.GeoClue2
Normal file
30
apparmor.d/abstractions/bus/org.freedesktop.GeoClue2
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
dbus send bus=system path=/org/freedesktop/GeoClue2/Manager
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member=GetAll
|
||||||
|
peer=(name=:*, label=geoclue),
|
||||||
|
|
||||||
|
dbus send bus=system path=/org/freedesktop/GeoClue2/Agent
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member=PropertiesChanged
|
||||||
|
peer=(name=org.freedesktop.DBus, label=geoclue),
|
||||||
|
|
||||||
|
dbus receive bus=system path=/org/freedesktop/GeoClue2/Agent
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member=GetAll
|
||||||
|
peer=(name=:*, label=geoclue),
|
||||||
|
|
||||||
|
dbus send bus=system path=/org/freedesktop/GeoClue2/Manager
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member=GetAll
|
||||||
|
peer=(name=:*, label=geoclue),
|
||||||
|
|
||||||
|
dbus send bus=system path=/org/freedesktop/GeoClue2/Manager
|
||||||
|
interface=org.freedesktop.GeoClue2.Manager
|
||||||
|
member=AddAgent
|
||||||
|
peer=(name=:*, label=geoclue),
|
||||||
|
|
||||||
|
include if exists <abstractions/bus/org.freedesktop.GeoClue2.d>
|
10
apparmor.d/abstractions/bus/org.freedesktop.PackageKit
Normal file
10
apparmor.d/abstractions/bus/org.freedesktop.PackageKit
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
dbus send bus=system path=/org/freedesktop/PackageKit
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member=GetAll
|
||||||
|
peer=(name=:*, label=packagekitd),
|
||||||
|
|
||||||
|
include if exists <abstractions/bus/org.freedesktop.PackageKit.d>
|
6
apparmor.d/abstractions/bus/org.freedesktop.ScreenSaver
Normal file
6
apparmor.d/abstractions/bus/org.freedesktop.ScreenSaver
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
|
||||||
|
include if exists <abstractions/bus/org.freedesktop.ScreenSaver.d>
|
|
@ -0,0 +1,15 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
dbus send bus=session path=/org/freedesktop/impl/portal/PermissionStore
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member=GetAll
|
||||||
|
peer=(name=:*, label=xdg-permission-store),
|
||||||
|
|
||||||
|
dbus send bus=session path=/org/freedesktop/impl/portal/PermissionStore
|
||||||
|
interface=org.freedesktop.impl.portal.PermissionStore
|
||||||
|
member=Lookup
|
||||||
|
peer=(name=:*, label=xdg-permission-store),
|
||||||
|
|
||||||
|
include if exists <abstractions/bus/org.freedesktop.impl.portal.PermissionStore.d>
|
30
apparmor.d/abstractions/bus/org.freedesktop.secrets
Normal file
30
apparmor.d/abstractions/bus/org.freedesktop.secrets
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
dbus send bus=session path=/org/freedesktop/secrets{,/**}
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member=GetAll
|
||||||
|
peer=(name=:*, label=gnome-keyring-daemon),
|
||||||
|
|
||||||
|
dbus send bus=session path=/org/freedesktop/secrets
|
||||||
|
interface=org.freedesktop.Secret.Service
|
||||||
|
member={OpenSession,GetSecrets,SearchItems,ReadAlias}
|
||||||
|
peer=(name=:*, label=gnome-keyring-daemon),
|
||||||
|
|
||||||
|
dbus send bus=session path=/org/freedesktop/secrets/aliases/default
|
||||||
|
interface=org.freedesktop.Secret.Collection
|
||||||
|
member=CreateItem
|
||||||
|
peer=(name=org.freedesktop.secrets, label=gnome-keyring-daemon),
|
||||||
|
|
||||||
|
dbus receive bus=session path=/org/freedesktop/secrets/collection/login
|
||||||
|
interface=org.freedesktop.Secret.Collection
|
||||||
|
member=ItemCreated
|
||||||
|
peer=(name=:*, label=gnome-keyring-daemon),
|
||||||
|
|
||||||
|
dbus receive bus=session path=/org/freedesktop/secrets/collection/login
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member=PropertiesChanged
|
||||||
|
peer=(name=:*, label=gnome-keyring-daemon),
|
||||||
|
|
||||||
|
include if exists <abstractions/bus/org.freedesktop.secrets.d>
|
25
apparmor.d/abstractions/bus/org.gnome.Mutter.DisplayConfig
Normal file
25
apparmor.d/abstractions/bus/org.gnome.Mutter.DisplayConfig
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
dbus send bus=session path=/org/gnome/Mutter/DisplayConfig
|
||||||
|
interface=org.gnome.Mutter.DisplayConfig
|
||||||
|
member={GetResources,GetCrtcGamma}
|
||||||
|
peer=(name=:*, label=gnome-shell),
|
||||||
|
|
||||||
|
dbus send bus=session path=/org/gnome/Mutter/DisplayConfig
|
||||||
|
interface=org.gnome.Mutter.DisplayConfig
|
||||||
|
member=GetCurrentState
|
||||||
|
peer=(name="{:*,org.gnome.Mutter.DisplayConfig}", label=gnome-shell),
|
||||||
|
|
||||||
|
dbus send bus=session path=/org/gnome/Mutter/DisplayConfig
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member={GetAll,PropertiesChanged}
|
||||||
|
peer=(name=:*, label=gnome-shell),
|
||||||
|
|
||||||
|
dbus receive bus=session path=/org/gnome/Mutter/DisplayConfig
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member=PropertiesChanged
|
||||||
|
peer=(name=:*, label=gnome-shell),
|
||||||
|
|
||||||
|
include if exists <abstractions/bus/org.gnome.Mutter.DisplayConfig.d>
|
Loading…
Reference in a new issue