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:
authorMichael Boelen <michael.boelen@cisofy.com>2020-03-19 13:00:38 +0300
committerGitHub <noreply@github.com>2020-03-19 13:00:38 +0300
commit671c4436419b0c881de1d8a92275d6899fc63075 (patch)
treec55af41fdcfdbb2a4f89bc599d3094d35db7a405 /include/tests_ssh
parentb523352a59f046ee8a086216b83e779b0bab4e45 (diff)
parentd8a3bc8afae3430abc1b1c366d77496c0e06d17a (diff)
Merge pull request #845 from maczniak/master
[SSH-7408] fix OpenSSH server version check
Diffstat (limited to 'include/tests_ssh')
-rw-r--r--include/tests_ssh2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_ssh b/include/tests_ssh
index 44424b3a..3c1d379a 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}"