feat(profile): add profile for mpris-proxy.

This commit is contained in:
Alexandre Pujol 2025-08-17 17:51:10 +02:00
parent ba16e3c340
commit 7f9664c51f
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC

View file

@ -0,0 +1,28 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{bin}/mpris-proxy
profile mpris-proxy @{exec_path} {
include <abstractions/base>
include <abstractions/bus-session>
include <abstractions/bus-system>
include <abstractions/bus/org.bluez>
include <abstractions/bus/org.mpris.MediaPlayer2.Player>
#aa:dbus own bus=session name=org.mpris.MediaPlayer2
dbus receive bus=session path=/
interface=org.freedesktop.DBus.Introspectable
member=Introspect
peer=(name=@{busname}, label=gnome-shell),
@{exec_path} mr,
include if exists <local/mpris-proxy>
}
# vim:syntax=apparmor