mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
feat(dbus): add more dbus abstraction (2)
This commit is contained in:
parent
7f81da3a71
commit
8162c0aa2a
7 changed files with 126 additions and 0 deletions
20
apparmor.d/abstractions/bus/desktop
Normal file
20
apparmor.d/abstractions/bus/desktop
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=session path=/org/freedesktop/portal/desktop
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member={GetAll,Read}
|
||||||
|
peer=(name="{:*,org.freedesktop.portal.Desktop}", label=xdg-desktop-portal),
|
||||||
|
|
||||||
|
dbus send bus=session path=/org/freedesktop/portal/desktop
|
||||||
|
interface=org.freedesktop.portal.Settings
|
||||||
|
member=Read
|
||||||
|
peer=(name=:*, label=xdg-desktop-portal),
|
||||||
|
|
||||||
|
dbus receive bus=session path=/org/freedesktop/portal/desktop
|
||||||
|
interface=org.freedesktop.portal.Settings
|
||||||
|
member=SettingChanged
|
||||||
|
peer=(name=:*, label=xdg-desktop-portal),
|
||||||
|
|
||||||
|
include if exists <abstractions/bus/desktop.d>
|
20
apparmor.d/abstractions/bus/gnome-screensaver
Normal file
20
apparmor.d/abstractions/bus/gnome-screensaver
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=session path=/org/gnome/ScreenSaver
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member=GetAll
|
||||||
|
peer=(name=:*, label=gjs-console),
|
||||||
|
|
||||||
|
dbus send bus=session path=/org/gnome/ScreenSaver
|
||||||
|
interface=org.gnome.ScreenSaver
|
||||||
|
member=GetActive
|
||||||
|
peer=(name=:*, label=gjs-console),
|
||||||
|
|
||||||
|
dbus receive bus=session path=/org/gnome/ScreenSaver
|
||||||
|
interface=org.gnome.ScreenSaver
|
||||||
|
member={ActiveChanged,WakeUpScreen}
|
||||||
|
peer=(name=:*, label=gjs-console),
|
||||||
|
|
||||||
|
include if exists <abstractions/bus/gnome-screensaver.d>
|
10
apparmor.d/abstractions/bus/hostname
Normal file
10
apparmor.d/abstractions/bus/hostname
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/hostname1
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member={Get,GetAll}
|
||||||
|
peer=(name="{:*,org.freedesktop.hostname1}", label=systemd-hostnamed),
|
||||||
|
|
||||||
|
include if exists <abstractions/bus/hostname.d>
|
10
apparmor.d/abstractions/bus/locale
Normal file
10
apparmor.d/abstractions/bus/locale
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/locale1
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member=GetAll
|
||||||
|
peer=(name=:*, label=systemd-localed),
|
||||||
|
|
||||||
|
include if exists <abstractions/bus/locale.d>
|
41
apparmor.d/abstractions/bus/session-manager
Normal file
41
apparmor.d/abstractions/bus/session-manager
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
# 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/SessionManager
|
||||||
|
interface=org.gnome.SessionManager
|
||||||
|
member={RegisterClient,IsSessionRunning}
|
||||||
|
peer=(name=:*, label=gnome-session-binary),
|
||||||
|
|
||||||
|
dbus receive bus=session path=/org/gnome/SessionManager
|
||||||
|
interface=org.gnome.SessionManager
|
||||||
|
member={ClientAdded,ClientRemoved,SessionRunning,InhibitorRemoved,InhibitorAdded}
|
||||||
|
peer=(name=:*, label=gnome-session-binary),
|
||||||
|
|
||||||
|
dbus send bus=session path=/org/gnome/SessionManager
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member=GetAll
|
||||||
|
peer=(name=:*, label=gnome-session-binary),
|
||||||
|
|
||||||
|
|
||||||
|
dbus send bus=session path=/org/gnome/SessionManager/Client@{int}
|
||||||
|
interface=org.gnome.SessionManager.ClientPrivate
|
||||||
|
member=EndSessionResponse
|
||||||
|
peer=(name=:*, label=gnome-session-binary),
|
||||||
|
|
||||||
|
dbus receive bus=session path=/org/gnome/SessionManager/Client@{int}
|
||||||
|
interface=org.gnome.SessionManager.ClientPrivate
|
||||||
|
member={CancelEndSession,QueryEndSession,EndSession,Stop}
|
||||||
|
peer=(name=:*, label=gnome-session-binary),
|
||||||
|
|
||||||
|
dbus send bus=session path=/org/gnome/SessionManager/Client@{int}
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member=GetAll
|
||||||
|
peer=(name=:*, label=gnome-session-binary),
|
||||||
|
|
||||||
|
dbus receive bus=session path=/org/gnome/SessionManager/Client@{int}
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member=PropertiesChanged
|
||||||
|
peer=(name=:*, label=gnome-session-binary),
|
||||||
|
|
||||||
|
include if exists <abstractions/bus/session-manager.d>
|
10
apparmor.d/abstractions/bus/systemd
Normal file
10
apparmor.d/abstractions/bus/systemd
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/systemd1
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member={Get,GetAll}
|
||||||
|
peer=(name=org.freedesktop.systemd1, label="@{systemd}"),
|
||||||
|
|
||||||
|
include if exists <abstractions/bus/systemd.d>
|
15
apparmor.d/abstractions/bus/systemd-session
Normal file
15
apparmor.d/abstractions/bus/systemd-session
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/systemd1
|
||||||
|
interface=org.freedesktop.DBus.Properties
|
||||||
|
member={Get,GetAll}
|
||||||
|
peer=(name="{:*,org.freedesktop.systemd1}", label="@{systemd}"),
|
||||||
|
|
||||||
|
dbus send bus=session path=/org/freedesktop/systemd1
|
||||||
|
interface=org.freedesktop.systemd1.Manager
|
||||||
|
member=GetUnit
|
||||||
|
peer=(name="{:*,org.freedesktop.systemd1}", label="@{systemd}"),
|
||||||
|
|
||||||
|
include if exists <abstractions/bus/systemd-session.d>
|
Loading…
Reference in a new issue