mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-23 13:54:35 +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
|
case ${OS} in
|
||||||
"Linux")
|
"Linux")
|
||||||
if [ -f /proc/1/cmdline ]; then
|
if [ -f /proc/1/cmdline ]; then
|
||||||
FIND=`awk '/^\// { print $1 }' /proc/1/cmdline`
|
FIND=`awk '/(^\/|init)/ { print $1 }' /proc/1/cmdline`
|
||||||
if [ ! "${FIND}" = "" ]; then
|
if [ ! "${FIND}" = "" ]; then
|
||||||
SHORTNAME=`echo ${FIND} | awk -F/ '{ print $NF }'`
|
SHORTNAME=`echo ${FIND} | awk -F/ '{ print $NF }'`
|
||||||
LogText "Found: ${SHORTNAME}"
|
LogText "Found: ${SHORTNAME}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user