mirror of https://github.com/CISOfy/lynis.git
Match for sulogin fails to detect inittab entry (#356)
A valid inittab entry was missed. Gentoo delivers an inittab containing su1:S:wait:/sbin/sulogin
This commit is contained in:
parent
08b6a40751
commit
f5d70a6889
|
@ -905,7 +905,7 @@
|
|||
TEST_PERFORMED=1
|
||||
LogText "Result: file /etc/inittab exists"
|
||||
LogText "Test: checking presence sulogin for single user mode"
|
||||
FIND=$(${EGREPBINARY} "^~~:S:(respawn|wait):/sbin/sulogin" /etc/inittab)
|
||||
FIND=$(${EGREPBINARY} "^[a-zA-Z0-9]+:S:(respawn|wait):/sbin/sulogin" /etc/inittab)
|
||||
FIND2=$(${EGREPBINARY} "^su:S:(respawn|wait):/sbin/sulogin" /etc/inittab)
|
||||
if [ ! -z "${FIND}" -o ! -z "${FIND2}" ]; then
|
||||
FOUND=1
|
||||
|
|
Loading…
Reference in New Issue