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

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/dunst
profile dunst @{exec_path} {
  include <abstractions/base>
  include <abstractions/fonts>
  include <abstractions/fontconfig-cache-read>
  include <abstractions/freedesktop.org>

  @{exec_path} mr,

  /etc/xdg/dunst/dunstrc r,

  owner @{user_config_dirs}/dunst/dunstrc r,

  owner @{HOME}/.Xauthority r,

  owner /dev/shm/dunst-@{rand6} rw,

  include if exists <local/dunst>
}

# vim:syntax=apparmor
