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:
authormboelen <michael@cisofy.com>2016-03-17 18:40:53 +0300
committermboelen <michael@cisofy.com>2016-03-17 18:40:53 +0300
commita33b3c828fc17685c2faa90f14928777c76d193c (patch)
treee8a9bc55659432621e011f7603d6f2d4b9b129b7
parent7adf2425a68240f5d9cccb9167c1ef578b7e3afa (diff)
Check system manager and allow init as option in /proc/1/cmdline
-rw-r--r--include/tests_boot_services2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_boot_services b/include/tests_boot_services
index d4d4494f..1a225cc3 100644
--- a/include/tests_boot_services
+++ b/include/tests_boot_services
@@ -70,7 +70,7 @@
case ${OS} in
"Linux")
if [ -f /proc/1/cmdline ]; then
- FIND=`awk '/^\// { print $1 }' /proc/1/cmdline`
+ FIND=`awk '/(^\/|init)/ { print $1 }' /proc/1/cmdline`
if [ ! "${FIND}" = "" ]; then
SHORTNAME=`echo ${FIND} | awk -F/ '{ print $NF }'`
LogText "Found: ${SHORTNAME}"