# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2018-2021 Mikhail Morfikov
# 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}/{,@{multiarch}/}xfce4/xfconf/xfconfd
profile xfconfd @{exec_path} {
  include <abstractions/base>
  include <abstractions/xfce>

  @{exec_path} mr,

  /etc/xdg/xfce4/xfconf/** r,

  owner @{HOME}/ r,

  owner @{user_config_dirs}/xfce4/ r,
  owner @{user_config_dirs}/xfce4/xfconf/{,**} rw,

  owner /dev/tty@{int} rw,

  include if exists <local/xfconfd>
}
