From 5cbe2a0ec1a9b1a2ad6810e6a848646c7ad9bb80 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Thu, 7 Apr 2022 21:03:41 +0100 Subject: [PATCH] feat: add update-cracklib --- apparmor.d/profiles-s-z/update-cracklib | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 apparmor.d/profiles-s-z/update-cracklib 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