From d8a3bc8afae3430abc1b1c366d77496c0e06d17a Mon Sep 17 00:00:00 2001 From: maczniak Date: Mon, 24 Feb 2020 23:17:09 +0900 Subject: fix CISOfy/lynis#844 --- include/tests_ssh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/tests_ssh') diff --git a/include/tests_ssh b/include/tests_ssh index 5c8b3775..36de9c4b 100644 --- a/include/tests_ssh +++ b/include/tests_ssh @@ -117,7 +117,7 @@ # Test : SSH-7408 # Description : Check SSH specific defined options # Notes : Instead of parsing the configuration file, we query the SSH daemon itself - if [ ${OPENSSHD_RUNNING} -eq 1 -a -n "${SSH_DAEMON_OPTIONS_FILE}" -a ${OPENSSHD_VERSION_MAJOR} -ge 5 -a ${OPENSSHD_VERSION_MINOR} -ge 1 ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi + if [ ${OPENSSHD_RUNNING} -eq 1 -a -n "${SSH_DAEMON_OPTIONS_FILE}" -a \( ${OPENSSHD_VERSION_MAJOR} -gt 5 -o ${OPENSSHD_VERSION_MAJOR} -eq 5 -a ${OPENSSHD_VERSION_MINOR} -ge 1 \) ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi Register --test-no SSH-7408 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check SSH specific defined options" if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: Checking specific defined options in ${SSH_DAEMON_OPTIONS_FILE}" -- cgit v1.2.3