# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only

  dbus send bus=system path=/org/freedesktop/login1
       interface=org.freedesktop.login1.Manager
       member=GetSession
       peer=(name=:*, label=systemd-logind),

  dbus send bus=system path=/org/freedesktop/login1{,session/*,seat/*}
       interface=org.freedesktop.DBus.Introspectable
       member=Introspect
       peer=(name="{:*,org.freedesktop.login1}", label=systemd-logind),

  dbus send bus=system path=/org/freedesktop/login1/session/*
       interface=org.freedesktop.DBus.Properties
       member={Get,GetAll}
       peer=(name=:*, label=systemd-logind),

  dbus send bus=system path=/org/freedesktop/login1/session/*
       interface=org.freedesktop.login1.Session
       member={ReleaseDevice,TakeControl,TakeDevice,SetBrightness,SetLockedHint,SetIdleHint}
       peer=(name="{:*,org.freedesktop.login1}", label=systemd-logind),

  dbus send bus=system path=/org/freedesktop/login1/seat/*
       interface=org.freedesktop.DBus.Properties
       member={Get,GetAll}
       peer=(name="{:*,org.freedesktop.login1}", label=systemd-logind),

  dbus receive bus=system path=/org/freedesktop/login1/session/*
       interface=org.freedesktop.DBus.Properties
       member=PropertiesChanged
       peer=(name=:*, label=systemd-logind),

  dbus receive bus=system path=/org/freedesktop/login1/session/*
       interface=org.freedesktop.login1.Session
       member={PauseDevice,Unlock}
       peer=(name="{:*,org.freedesktop.login1}", label=systemd-logind),

  include if exists <abstractions/bus/org.freedesktop.login1.Session.d>
