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

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/systemd-notify
@{att} = /att/systemd-notify/
profile systemd-notify /{,usr/}bin/systemd-notify  flags=(attach_disconnected,attach_disconnected.path=@{att},complain) {
  include <abstractions/attached/base>
  include <abstractions/attached/consoles>

  capability sys_admin,
  capability net_admin,

  @{exec_path} mr,

  # Inherit Silencer
  deny unix type=stream peer=(label=pacman),

  include if exists <local/systemd-notify>
}

# vim:syntax=apparmor
