feat(profile): add profile for mpris-proxy.
This commit is contained in:
parent
ba16e3c340
commit
7f9664c51f
1 changed files with 28 additions and 0 deletions
28
apparmor.d/profiles-m-r/mpris-proxy
Normal file
28
apparmor.d/profiles-m-r/mpris-proxy
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue