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>2021-01-07 13:30:51 +0300
committerGitHub <noreply@github.com>2021-01-07 13:30:51 +0300
commitc38c89ae4e5128fb3347835ca311ea3b1a255a75 (patch)
tree0ae1ccf336ba8e416b91a2a55a132d6c38cca42e /include/tests_boot_services
parent0abf01b3583e595bca5370f8feb53da4ca8b467e (diff)
parent4a03c613438d25944680ed22f67276dff755ff3c (diff)
Merge pull request #1004 from Varbin/1003-os-detection
Test for LINUX_VERSION before setting it again
Diffstat (limited to 'include/tests_boot_services')
-rw-r--r--include/tests_boot_services8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/tests_boot_services b/include/tests_boot_services
index 7d6feeec..01310f7b 100644
--- a/include/tests_boot_services
+++ b/include/tests_boot_services
@@ -712,7 +712,13 @@
# Test : BOOT-5180
# Description : Check for Linux boot services (Debian style)
# Notes : Debian 8+ shows runlevel 5
- if [ "${LINUX_VERSION}" = "Debian" -o "${LINUX_VERSION}" = "Ubuntu" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
+ if [ "${LINUX_VERSION}" = "Debian" ] || [ "${LINUX_VERSION}" = "Ubuntu" ] ||
+ [ "${LINUX_VERSION_LIKE}" = "Debian" ] || [ "${LINUX_VERSION_LIKE}" = "Ubuntu" ]; then
+ PREQS_MET="YES"
+ else
+ PREQS_MET="NO"
+ fi
+
Register --test-no BOOT-5180 --os Linux --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check for Linux boot services (Debian style)"
if [ ${SKIPTEST} -eq 0 ]; then
# Runlevel check