apparmor.d/apparmor.d/groups/avahi/avahi-browse
2023-12-05 21:01:26 +00:00

27 lines
792 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Jeroen Rijken
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/avahi-browse @{bin}/avahi-browse-domains
profile avahi-browse @{exec_path} {
include <abstractions/base>
include <abstractions/bus/avahi>
include <abstractions/consoles>
include <abstractions/dbus-strict>
dbus receive bus=system path=/Client@{int}/ServiceTypeBrowser@{int}
interface=org.freedesktop.Avahi.ServiceTypeBrowser
member={ItemNew,AllForNow,CacheExhausted}
peer=(name=:*, label=avahi-daemon),
@{exec_path} mr,
@{lib}/@{multiarch}/avahi/service-types.db rwk,
include if exists <local/avahi-browse>
}