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

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{lib}/pam_kwallet_init
profile pam_kwallet_init @{exec_path} {
  include <abstractions/base>

  @{exec_path} mr,

  @{sh_path}         rix,
  @{bin}/env         rix,
  @{bin}/socat{,1}   rix,

  /dev/tty rw,

  include if exists <local/pam_kwallet_init>
}

# vim:syntax=apparmor
