mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-28 00:04:16 +02:00
[AUTH-9308] Made 'sulogin' more generic for systemd rescue shell
This commit is contained in:
parent
e858233eb6
commit
105befb2e9
@ -962,7 +962,7 @@
|
|||||||
# Mark test as performed only when at least 1 target exists (e.g. Ubuntu 14.04 has limited systemd support)
|
# Mark test as performed only when at least 1 target exists (e.g. Ubuntu 14.04 has limited systemd support)
|
||||||
TEST_PERFORMED=1
|
TEST_PERFORMED=1
|
||||||
LogText "Result: found target ${I}"
|
LogText "Result: found target ${I}"
|
||||||
FIND=$(${EGREPBINARY} "^ExecStart=" ${FILE} | ${GREPBINARY} "/sulogin")
|
FIND=$(${EGREPBINARY} "^ExecStart=" ${FILE} | ${GREPBINARY} "sulogin")
|
||||||
if [ "${FIND}" = "" ]; then
|
if [ "${FIND}" = "" ]; then
|
||||||
LogText "Result: did not find sulogin specified, possible risk of getting into single user mode without authentication"
|
LogText "Result: did not find sulogin specified, possible risk of getting into single user mode without authentication"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user