# 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}/xfce4-dict
@{att} = ""
profile xfce-dict /{,usr/}bin/xfce4-dict flags=(complain) {
  include <abstractions/base-strict>
  include <abstractions/xfce>

  @{exec_path} mr,

  @{open_path} rpx -> child-open-help,

  owner @{user_config_dirs}/xfce4-dict/{,**} rw,

  include if exists <local/xfce-dict>
}

# vim:syntax=apparmor
