diff --git a/apparmor.d/profiles-s-z/update-cracklib b/apparmor.d/profiles-s-z/update-cracklib new file mode 100644 index 000000000..b6e414597 --- /dev/null +++ b/apparmor.d/profiles-s-z/update-cracklib @@ -0,0 +1,36 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}{s,}bin/update-cracklib +profile update-cracklib @{exec_path} { + include + include + + @{exec_path} mr, + + /{usr/,}{s,}bin/cracklib-format rix, + /{usr/,}{s,}bin/cracklib-packer rPx, + /{usr/,}bin/{,ba,da}sh rix, + /{usr/,}bin/env rix, + /{usr/,}bin/file rix, + /{usr/,}bin/find rix, + /{usr/,}bin/grep rix, + /{usr/,}bin/gzip rix, + /{usr/,}bin/sort rix, + /{usr/,}bin/tr rix, + + / r, + /usr/share/dict/{,*} r, + + /etc/magic r, + /etc/cracklib/cracklib.conf r, + + /var/cache/cracklib/{,**} rw, + + include if exists +} \ No newline at end of file