diff --git a/include/consts b/include/consts index 4ae59e36..9a22da44 100644 --- a/include/consts +++ b/include/consts @@ -83,6 +83,7 @@ unset LANG GRPCKBINARY="" GROUP_NAME="" GRUB2INSTALLBINARY="" + HAS_SYSTEMD=0 HELPER="" HOSTID="" IPTABLESBINARY="" diff --git a/lynis b/lynis index 43fcc1f6..471bb50a 100755 --- a/lynis +++ b/lynis @@ -30,7 +30,7 @@ PROGRAM_name="Lynis" PROGRAM_VERSION="2.2.1" PROGRAM_version="${PROGRAM_VERSION}" - PROGRAM_RELEASEDATE="2016-03-18" + PROGRAM_RELEASEDATE="2016-03-24" PROGRAM_releasedate="${PROGRAM_RELEASEDATE}" PROGRAM_RELEASE_TIMESTAMP=1458294642 PROGRAM_AUTHOR="CISOfy" @@ -688,6 +688,20 @@ # ################################################################################# # + # Check for systemd presence + if [ -d /lib/systemd/system -a -f /usr/lib/systemd/systemd ]; then + LogText "Result: systemd is using systemd" + HAS_SYSTEMD=1 + Report "systemd=1" + else + LogText "Result: systemd not found, or partially" + Report "systemd=0" + fi +# +################################################################################# +# + + if [ ${RUN_PLUGINS} -eq 1 ]; then N_PLUGIN=0