mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Check system manager and allow init as option in /proc/1/cmdline
This commit is contained in:
parent
7adf2425a6
commit
a33b3c828f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue