mirror of https://github.com/CISOfy/lynis.git
Display skipped root-only tests
This commit is contained in:
parent
29442cdfcf
commit
2644399057
|
@ -201,6 +201,23 @@
|
|||
fi
|
||||
fi
|
||||
|
||||
# Display what tests are skipped in non-privileged scan for awareness
|
||||
if [ ${PENTESTINGMODE} -eq 1 -a ! "${SKIPPED_TESTS_ROOTONLY}" = "" ]; then
|
||||
echo ""
|
||||
echo " ${PURPLE}Skipped tests due to non-privileged scan${NORMAL}"
|
||||
|
||||
FIND=`echo ${SKIPPED_TESTS_ROOTONLY} | sed 's/ /:space:/g'`
|
||||
# Split entries
|
||||
FIND=`echo ${FIND} | sed 's/====/ /g'`
|
||||
# Display found entries
|
||||
for I in ${FIND}; do
|
||||
J=`echo ${I} | sed 's/:space:/ /g'`
|
||||
echo " ${J}"
|
||||
done
|
||||
echo ""
|
||||
echo "================================================================================"
|
||||
fi
|
||||
|
||||
if [ ${SHOW_TOOL_TIPS} -eq 1 ]; then
|
||||
echo " Tip: Disable all tests which are not relevant or are too strict for the"
|
||||
echo " purpose of this particular machine. This will remove unwanted suggestions"
|
||||
|
|
Loading…
Reference in New Issue