"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/tests_ports_packages" between
lynis-3.0.5.tar.gz and lynis-3.0.6.tar.gz

About: Lynis is a security and system auditing tool.

tests_ports_packages  (lynis-3.0.5):tests_ports_packages  (lynis-3.0.6)
skipping to change at line 1319 skipping to change at line 1319
ReportSuggestion "${TEST_NO}" "Remove any unneeded kernel packag es" ReportSuggestion "${TEST_NO}" "Remove any unneeded kernel packag es"
else else
LogText "Result: found ${KERNELS} kernel packages on the system, which is fine" LogText "Result: found ${KERNELS} kernel packages on the system, which is fine"
fi fi
fi fi
if [ ${KERNELS} -eq 0 -a ${TESTED} -eq 1 ]; then if [ ${KERNELS} -eq 0 -a ${TESTED} -eq 1 ]; then
# Only report exception if there are kernels actually there. For exa mple, LXC use the kernel of host system # Only report exception if there are kernels actually there. For exa mple, LXC use the kernel of host system
case "${OS}" in case "${OS}" in
"Linux") "Linux")
if [ -d "${ROOTDIR}boot" ]; then case "${CONTAINER_TYPE}" in
if [ -z "$(${FINDBINARY} /boot -maxdepth 1 -type f -name "LXC")
'vmlinuz*' -print -quit)" ]; then LogText "Info: LXC shares the kernel with host, so s
ReportException "${TEST_NO}" "Could not find any ker kipping further testing"
nel packages via package manager" ;;
fi *)
fi if [ -d "${ROOTDIR}boot" ]; then
if [ -z "$(${FINDBINARY} /boot -maxdepth 1 -type
f -name 'vmlinuz*' -print -quit)" ]; then
ReportException "${TEST_NO}" "Could not find
any kernel packages via package manager"
fi
fi
;;
esac
;; ;;
*) *)
ReportException "${TEST_NO}" "Could not find any kernel pack ages via package manager" ReportException "${TEST_NO}" "Could not find any kernel pack ages via package manager"
;; ;;
esac esac
fi fi
Report "installed_kernel_packages=${KERNELS}" Report "installed_kernel_packages=${KERNELS}"
fi fi
# #
 End of changes. 1 change blocks. 
7 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)