# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Jeroen Rijken
# 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}/avahi-set-host-name
@{att} = ""
profile avahi-set-host-name /{,usr/}bin/avahi-set-host-name flags=(complain) {
  include <abstractions/base-strict>
  include <abstractions/bus/system/org.freedesktop.Avahi.HostNameResolver>
  include <abstractions/bus/system/org.freedesktop.Avahi.Server>
  include <abstractions/consoles>

  @{exec_path} mr,

  include if exists <local/avahi-set-host-name>
}


# vim:syntax=apparmor
