mirror of https://github.com/CISOfy/lynis.git
[AUTH-9308] Skip testing some files when systemd is used
This commit is contained in:
parent
d7c8233dd4
commit
0779005b46
|
@ -825,6 +825,7 @@
|
||||||
FOUND=0
|
FOUND=0
|
||||||
TEST_PERFORMED=0
|
TEST_PERFORMED=0
|
||||||
|
|
||||||
|
if [ ${HAS_SYSTEMD} -eq 0 ]; then
|
||||||
# Check inittab
|
# Check inittab
|
||||||
LogText "Test: Searching /etc/inittab"
|
LogText "Test: Searching /etc/inittab"
|
||||||
if [ -f /etc/inittab ]; then
|
if [ -f /etc/inittab ]; then
|
||||||
|
@ -855,6 +856,7 @@
|
||||||
else
|
else
|
||||||
LogText "Result: file /etc/sysconfig/init does not exist"
|
LogText "Result: file /etc/sysconfig/init does not exist"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Systemd support
|
# Systemd support
|
||||||
SYTEMD_DIRECTORY="/lib/systemd/system"
|
SYTEMD_DIRECTORY="/lib/systemd/system"
|
||||||
|
@ -894,7 +896,7 @@
|
||||||
AddHP 2 2
|
AddHP 2 2
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
LogText "Result: No inittab or init file found, unsure if system is protected"
|
LogText "Result: no tests performed"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue