Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Ginsbach <brian.ginsbach@gmail.com>2020-03-22 03:30:07 +0300
committerBrian Ginsbach <brian.ginsbach@gmail.com>2020-03-22 04:03:37 +0300
commit33ba896b41b194ceced8a29910f172f18f4f0644 (patch)
treefc1ca684d4664a3e8cc1d6f04b033c11d7f143a0 /include/tests_authentication
parentf3426697777d87de31d6229ebecd875a2fc2f0c4 (diff)
Add FreeBSD and NetBSD to AUTH-9268
Add FreeBSD and NetBSD as both support PAM. Simplify the PREQS_MET test by using a case rather than a long if or.
Diffstat (limited to 'include/tests_authentication')
-rw-r--r--include/tests_authentication9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/tests_authentication b/include/tests_authentication
index b4520035..d2a23f9e 100644
--- a/include/tests_authentication
+++ b/include/tests_authentication
@@ -691,8 +691,13 @@
#
# Test : AUTH-9268
# Description : Searching available PAM files
- # Notes : PAM is used on AIX, FreeBSD, Linux, HPUX, Solaris
- if [ ${OS} = "AIX" -o ${OS} = "Linux" -o ${OS} = "HPUX" -o ${OS} = "Solaris" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
+ # Notes : PAM is used on AIX, FreeBSD, Linux, HPUX, NetBSD, Solaris
+ case "${OS}" in
+ "AIX"|"FreeBSD"|"Linux"|"HPUX"|"NetBSD"|"Solaris")
+ PREQS_MET="YES" ;;
+ *)
+ PREQS_MET="NO" ;;
+ esac
Register --test-no AUTH-9268 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Checking presence pam.d files"
if [ ${SKIPTEST} -eq 0 ]; then
FOUND=0