diff options
author | maczniak <maczniak@gmail.com> | 2020-02-24 17:17:09 +0300 |
---|---|---|
committer | maczniak <maczniak@gmail.com> | 2020-02-24 17:17:09 +0300 |
commit | d8a3bc8afae3430abc1b1c366d77496c0e06d17a (patch) | |
tree | f948303bfb63a26fd4cdef0b372f113fd043bcf1 /include/tests_ssh | |
parent | d81cc71790144ed9ff354748254d300d297f3da6 (diff) |
fix CISOfy/lynis#844
Diffstat (limited to 'include/tests_ssh')
-rw-r--r-- | include/tests_ssh | 2 |
1 files changed, 1 insertions, 1 deletions
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}" |