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

abi <abi/3.0>,

include <tunables/global>

@{exec_path} = @{lib}/cups/notifier/dbus
profile cups-notifier-dbus @{exec_path} {
  include <abstractions/base>
  include <abstractions/bus-session>
  include <abstractions/bus-system>
  include <abstractions/cups-client>
  include <abstractions/nameservice-strict>

  signal (receive) set=(term) peer=cupsd,

  @{exec_path} mr,
 
  owner /var/spool/cups/tmp/cups-dbus-notifier-lockfile rw,

  owner @{tmp}/cups-dbus-notifier-lockfile rwk,
  
  include if exists <local/cups-notifier-dbus>
}

# vim:syntax=apparmor
