# 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}/plasma-emojier
profile plasma-emojier @{exec_path} {
  include <abstractions/base>
  include <abstractions/graphics>
  include <abstractions/kde-strict>
  include <abstractions/nameservice-strict>

  @{exec_path} mr,

  owner @{user_cache_dirs}/plasma.emojier/{,**} rw,

  owner @{user_config_dirs}/#@{int} rw,
  owner @{user_config_dirs}/plasma.emojierrc rwl -> @{user_config_dirs}/#@{int},
  owner @{user_config_dirs}/plasma.emojierrc.lock rwk,

  include if exists <local/plasma-emojier>
}

# vim:syntax=apparmor
