# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2026 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/ksshaskpass
@{att} = ""
profile ksshaskpass /{,usr/}bin/ksshaskpass {
  include <abstractions/base-strict>
  include <abstractions/common/xdg>
  include <abstractions/consoles>
  include <abstractions/kde-strict>
  include <abstractions/nameservice-strict>
  include <abstractions/qt5-compose-cache-write>

  @{exec_path} mr,

  owner @{tmp}/xauth_@{rand6} r,
  owner /dev/shm/#@{int} rw,

  owner @{PROC}/@{pid}/cmdline r,

  include if exists <local/ksshaskpass>
}

# vim:syntax=apparmor
