mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
fix
This commit is contained in:
parent
4387a23410
commit
d2904c5762
@ -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')
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user