mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-29 08:44:21 +02:00
[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
|
||||
TEST_PERFORMED=0
|
||||
|
||||
if [ ${HAS_SYSTEMD} -eq 0 ]; then
|
||||
# Check inittab
|
||||
LogText "Test: Searching /etc/inittab"
|
||||
if [ -f /etc/inittab ]; then
|
||||
@ -855,6 +856,7 @@
|
||||
else
|
||||
LogText "Result: file /etc/sysconfig/init does not exist"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Systemd support
|
||||
SYTEMD_DIRECTORY="/lib/systemd/system"
|
||||
@ -894,7 +896,7 @@
|
||||
AddHP 2 2
|
||||
fi
|
||||
else
|
||||
LogText "Result: No inittab or init file found, unsure if system is protected"
|
||||
LogText "Result: no tests performed"
|
||||
fi
|
||||
fi
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user