# 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}/mousepad
profile mousepad @{exec_path} {
  include <abstractions/base>
  include <abstractions/dconf-write>
  include <abstractions/enchant>
  include <abstractions/user-read-strict>
  include <abstractions/user-write-strict>
  include <abstractions/xfce>

  @{exec_path} mr,

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

  owner @{user_config_dirs}/Mousepad/ rw,
  owner @{user_config_dirs}/Mousepad/** rwk,

  owner @{user_share_dirs}/Mousepad/ rw,
  owner @{user_share_dirs}/Mousepad/** rwk,

  include if exists <local/mousepad>
}

# vim:syntax=apparmor
