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

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/systemd-ask-password
@{att} = ""
profile systemd-ask-password /{,usr/}bin/systemd-ask-password flags=(complain) {
  include <abstractions/base-strict>
  include <abstractions/consoles>

  @{exec_path} mr,

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

  include if exists <local/systemd-ask-password>
}

# vim:syntax=apparmor
