# 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
@{att} = ""
profile pam_kwallet_init /{,usr/}lib{,exec,32,64}/pam_kwallet_init flags=(complain) {
  include <abstractions/base-strict>

  @{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
