From d2904c57621fd5469b0647218dbf0cd51c70a052 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Fri, 15 Apr 2022 17:54:32 +0200 Subject: [PATCH] fix --- pkg/de-p1st-pam/PKGBUILD | 2 +- pkg/de-p1st-pam/faillock.conf.holoscript | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/de-p1st-pam/PKGBUILD b/pkg/de-p1st-pam/PKGBUILD index 49c3d7c..9e2d351 100644 --- a/pkg/de-p1st-pam/PKGBUILD +++ b/pkg/de-p1st-pam/PKGBUILD @@ -2,7 +2,7 @@ _pkgname=pam _reponame=arch pkgname="de-p1st-$_pkgname" -pkgver=0.0.4 +pkgver=0.0.5 pkgrel=1 pkgdesc="PAM configuration" arch=('any') diff --git a/pkg/de-p1st-pam/faillock.conf.holoscript b/pkg/de-p1st-pam/faillock.conf.holoscript index 6bbf0c0..c38a9b2 100644 --- a/pkg/de-p1st-pam/faillock.conf.holoscript +++ b/pkg/de-p1st-pam/faillock.conf.holoscript @@ -14,6 +14,7 @@ echo "$stdin" # Make locks persistent over reboot. # # Assert +echo "=== assert dir ===" 1>&2 echo "$stdin" | grep --quiet '^# dir = /var/run/faillock$' ! echo "$stdin" | grep --quiet '^dir[[:space:]]*=' # Insert @@ -22,6 +23,7 @@ echo 'dir = /var/lib/faillock' # Lock account after 5 failed entries. # # Assert +echo "=== assert deny ===" 1>&2 echo "$stdin" | grep --quiet '^# deny = 3$' ! echo "$stdin" | grep --quiet '^deny[[:space:]]*=' # Insert @@ -30,6 +32,7 @@ echo 'deny = 5' # Also lock root # # Assert +echo "=== assert even_deny_root ===" 1>&2 echo "$stdin" | grep --quiet '^# even_deny_root$' ! echo "$stdin" | grep --quiet '^even_deny_root[[:space:]]*' # Insert @@ -38,7 +41,8 @@ echo 'even_deny_root' # Different unlock time for root: 60s # # Assert -echo "$stdin" | grep --quiet '^root_unlock_time = 900$' +echo "=== assert root_unlock_time ===" 1>&2 +echo "$stdin" | grep --quiet '^# root_unlock_time = 900$' ! echo "$stdin" | grep --quiet '^root_unlock_time[[:space:]]*=' # Insert echo 'root_unlock_time = 60'