# apparmor.d - Full set of apparmor profiles
# 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} = @{bin}/kreadconfig5
profile kreadconfig @{exec_path} {
  include <abstractions/base>

  capability dac_read_search,

  network netlink raw,

  @{exec_path} mr,

  /usr/share/icu/@{int}.@{int}/*.dat r,

  /etc/xdg/kdeglobals r,
  /etc/xdg/kioslaverc r,

  owner @{user_config_dirs}/kdedefaults/kdeglobals r,
  owner @{user_config_dirs}/kdeglobals r,

  include if exists <local/kreadconfig>
}