# 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} = @{lib}/security-misc/pam-abort-on-locked-password
profile pam-abort-on-locked-password @{exec_path} {
  include <abstractions/base>
  include <abstractions/nameservice-strict>

  @{exec_path} mr,

  @{sh_path}     rix,
  @{bin}/passwd  rPx,
  @{bin}/cut     rix,

  owner /dev/tty rw,

  include if exists <local/pam-abort-on-locked-password>
}

# vim:syntax=apparmor
