apparmor.d/apparmor.d/profiles-m-r/pwck
2023-08-27 14:54:04 +01:00

31 lines
623 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/pwck
profile pwck @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
@{exec_path} mr,
@{bin}/nscd rix,
/etc/login.defs r,
/etc/.pwd.lock wk,
/etc/passwd rw,
/etc/passwd.@{int} rw,
/etc/passwd.lock wl,
/etc/shadow rw,
/etc/shadow.@{int} rw,
/etc/shadow.lock wl,
/etc/machine-id r,
include if exists <local/pwck>
}