mirror of
https://github.com/CISOfy/lynis.git
synced 2025-04-08 17:15:25 +02:00
Check system manager and allow init as option in /proc/1/cmdline
This commit is contained in:
parent
7adf2425a6
commit
a33b3c828f
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user