This commit is contained in:
Daniel Langbein 2022-04-15 17:54:32 +02:00
parent 4387a23410
commit d2904c5762
2 changed files with 6 additions and 2 deletions

View File

@ -2,7 +2,7 @@
_pkgname=pam _pkgname=pam
_reponame=arch _reponame=arch
pkgname="de-p1st-$_pkgname" pkgname="de-p1st-$_pkgname"
pkgver=0.0.4 pkgver=0.0.5
pkgrel=1 pkgrel=1
pkgdesc="PAM configuration" pkgdesc="PAM configuration"
arch=('any') arch=('any')

View File

@ -14,6 +14,7 @@ echo "$stdin"
# Make locks persistent over reboot. # Make locks persistent over reboot.
# #
# Assert # Assert
echo "=== assert dir ===" 1>&2
echo "$stdin" | grep --quiet '^# dir = /var/run/faillock$' echo "$stdin" | grep --quiet '^# dir = /var/run/faillock$'
! echo "$stdin" | grep --quiet '^dir[[:space:]]*=' ! echo "$stdin" | grep --quiet '^dir[[:space:]]*='
# Insert # Insert
@ -22,6 +23,7 @@ echo 'dir = /var/lib/faillock'
# Lock account after 5 failed entries. # Lock account after 5 failed entries.
# #
# Assert # Assert
echo "=== assert deny ===" 1>&2
echo "$stdin" | grep --quiet '^# deny = 3$' echo "$stdin" | grep --quiet '^# deny = 3$'
! echo "$stdin" | grep --quiet '^deny[[:space:]]*=' ! echo "$stdin" | grep --quiet '^deny[[:space:]]*='
# Insert # Insert
@ -30,6 +32,7 @@ echo 'deny = 5'
# Also lock root # Also lock root
# #
# Assert # Assert
echo "=== assert even_deny_root ===" 1>&2
echo "$stdin" | grep --quiet '^# even_deny_root$' echo "$stdin" | grep --quiet '^# even_deny_root$'
! echo "$stdin" | grep --quiet '^even_deny_root[[:space:]]*' ! echo "$stdin" | grep --quiet '^even_deny_root[[:space:]]*'
# Insert # Insert
@ -38,7 +41,8 @@ echo 'even_deny_root'
# Different unlock time for root: 60s # Different unlock time for root: 60s
# #
# Assert # 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:]]*=' ! echo "$stdin" | grep --quiet '^root_unlock_time[[:space:]]*='
# Insert # Insert
echo 'root_unlock_time = 60' echo 'root_unlock_time = 60'