From c4b48b06e21e97d49b39e2bac23e42fea980d301 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Tue, 5 Dec 2023 21:04:50 +0000 Subject: [PATCH] feat(dbus): add login-session dbus abstraction. --- apparmor.d/abstractions/bus/login-session | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 apparmor.d/abstractions/bus/login-session diff --git a/apparmor.d/abstractions/bus/login-session b/apparmor.d/abstractions/bus/login-session new file mode 100644 index 00000000..50a94924 --- /dev/null +++ b/apparmor.d/abstractions/bus/login-session @@ -0,0 +1,15 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2023 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + + dbus send bus=system path=/org/freedesktop/login1/session/auto + interface=org.freedesktop.DBus.Properties + member=GetAll + peer=(name=:*, label=systemd-logind), + + dbus send bus=system path=/org/freedesktop/login1/session/auto + interface=org.freedesktop.login1.Session + member=SetBrightness + peer=(name=:*, label=systemd-logind), + + include if exists