"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/report" between
lynis-3.0.1.tar.gz and lynis-3.0.2.tar.gz

About: Lynis is a security and system auditing tool.

report  (lynis-3.0.1):report  (lynis-3.0.2)
skipping to change at line 153 skipping to change at line 153
if [ -z "${IS_CUSTOM}" ]; then if [ -z "${IS_CUSTOM}" ]; then
echo " ${CONTROL_URL_PROTOCOL}://${CONTROL_URL_PREP END}${ADDLINK}${CONTROL_URL_APPEND}" echo " ${CONTROL_URL_PROTOCOL}://${CONTROL_URL_PREP END}${ADDLINK}${CONTROL_URL_APPEND}"
else else
echo " ${CUSTOM_URL_PROTOCOL}://${CUSTOM_URL_PREPEN D}${ADDLINK}${CUSTOM_URL_APPEND}" echo " ${CUSTOM_URL_PROTOCOL}://${CUSTOM_URL_PREPEN D}${ADDLINK}${CUSTOM_URL_APPEND}"
fi fi
echo "" echo ""
done done
fi fi
# Show suggestions from logfile # Show suggestions from logfile
SSUGGESTIONS=$(${GREPBINARY} 'Suggestion: ' ${LOGFILE} | sed 's/ /!s pace!/g') SUGGESTIONS=$(${GREPBINARY} 'Suggestion: ' ${LOGFILE} | sed 's/ /!sp ace!/g')
if [ -z "${SSUGGESTIONS}" ]; then if [ -z "${SUGGESTIONS}" ]; then
echo " ${OK}No suggestions${NORMAL}"; echo "" echo " ${OK}No suggestions${NORMAL}"; echo ""
else else
echo " ${YELLOW}Suggestions${NORMAL} (${TOTAL_SUGGESTIONS}):" echo " ${YELLOW}Suggestions${NORMAL} (${TOTAL_SUGGESTIONS}):"
echo " ${WHITE}----------------------------${NORMAL}" echo " ${WHITE}----------------------------${NORMAL}"
for SUGGESTION in ${SSUGGESTIONS}; do for SUGGESTION in ${SUGGESTIONS}; do
SOLUTION="" SOLUTION=""
SHOWSUGGESTION=$(echo ${SUGGESTION} | sed 's/!space!/ /g' | sed 's/^.* Suggestion: //' | sed 's/\[details:\(.*\)\] \[solution:\(.*\)\]//' | sed 's/test://') SHOWSUGGESTION=$(echo ${SUGGESTION} | sed 's/!space!/ /g' | sed 's/^.* Suggestion: //' | sed 's/\[details:\(.*\)\] \[solution:\(.*\)\]//' | sed 's/test://')
ADDLINK=$(echo ${SUGGESTION} | sed 's/!space!/ /g' | sed 's/ ^.* Suggestion: \(.*\)\[test://' | sed 's/\]\(.*\)]//' | ${AWKBINARY} -F: '{prin t $1}') ADDLINK=$(echo ${SUGGESTION} | sed 's/!space!/ /g' | sed 's/ ^.* Suggestion: \(.*\)\[test://' | sed 's/\]\(.*\)]//' | ${AWKBINARY} -F: '{prin t $1}')
DETAILS=$(echo ${SUGGESTION} | sed 's/!space!/ /g' | sed 's/ ^.* Suggestion: \(.*\)\[details://' | sed 's/\]\(.*\)]//') DETAILS=$(echo ${SUGGESTION} | sed 's/!space!/ /g' | sed 's/ ^.* Suggestion: \(.*\)\[details://' | sed 's/\]\(.*\)]//')
SUGGESTION_PIECES=$(echo ${SUGGESTION} | sed 's/\[/ [/g') SUGGESTION_PIECES=$(echo ${SUGGESTION} | sed 's/\[/ [/g')
for PIECE in ${SUGGESTION_PIECES}; do for PIECE in ${SUGGESTION_PIECES}; do
if [ -z "${SOLUTION}" ]; then if [ -z "${SOLUTION}" ]; then
SEARCH=$(echo ${PIECE} | grep "^\[solution:") SEARCH=$(echo ${PIECE} | grep "^\[solution:")
if [ $? -eq 0 ]; then SOLUTION=$(echo ${SEARCH} | se d 's/!space!/ /g' | sed 's/solution://' | sed 's/text://' | tr -d '[]'); fi if [ $? -eq 0 ]; then SOLUTION=$(echo ${SEARCH} | se d 's/!space!/ /g' | sed 's/solution://' | sed 's/text://' | tr -d '[]'); fi
fi fi
skipping to change at line 185 skipping to change at line 185
if [ ${SHOW_REPORT_SOLUTION} -eq 1 -a ! "${SOLUTION}" = "-" ]; then echo " - Solution : ${SOLUTION}"; fi if [ ${SHOW_REPORT_SOLUTION} -eq 1 -a ! "${SOLUTION}" = "-" ]; then echo " - Solution : ${SOLUTION}"; fi
if [ -z "${IS_CUSTOM}" ]; then if [ -z "${IS_CUSTOM}" ]; then
echo " ${GRAY}${CONTROL_URL_PROTOCOL}://${CONTROL_U RL_PREPEND}${ADDLINK}${CONTROL_URL_APPEND}${NORMAL}" echo " ${GRAY}${CONTROL_URL_PROTOCOL}://${CONTROL_U RL_PREPEND}${ADDLINK}${CONTROL_URL_APPEND}${NORMAL}"
else else
echo " ${GRAY}${CUSTOM_URL_PROTOCOL}://${CUSTOM_URL _PREPEND}${ADDLINK}${CUSTOM_URL_APPEND}${NORMAL}" echo " ${GRAY}${CUSTOM_URL_PROTOCOL}://${CUSTOM_URL _PREPEND}${ADDLINK}${CUSTOM_URL_APPEND}${NORMAL}"
fi fi
echo "" echo ""
done done
fi fi
# Show tip on how to continue (next steps) # Show tip on how to continue (next steps)
if [ ! "${SWARNINGS}" = "" -o ! "${SSUGGESTIONS}" = "" ]; then if [ ! "${SWARNINGS}" = "" -o ! "${SUGGESTIONS}" = "" ]; then
echo " ${CYAN}Follow-up${NORMAL}:" echo " ${CYAN}Follow-up${NORMAL}:"
echo " ${WHITE}----------------------------${NORMAL}" echo " ${WHITE}----------------------------${NORMAL}"
echo " ${WHITE}-${NORMAL} Show details of a test (lynis show de tails TEST-ID)" echo " ${WHITE}-${NORMAL} Show details of a test (lynis show de tails TEST-ID)"
echo " ${WHITE}-${NORMAL} Check the logfile for all details (le ss ${LOGFILE})" echo " ${WHITE}-${NORMAL} Check the logfile for all details (le ss ${LOGFILE})"
echo " ${WHITE}-${NORMAL} Read security controls texts (https:/ /cisofy.com)" echo " ${WHITE}-${NORMAL} Read security controls texts (https:/ /cisofy.com)"
if [ ${UPLOAD_DATA} -eq 0 ]; then echo " ${WHITE}-${NORMAL} Use --upload to upload data to central system (Lynis Enterprise users)"; fi if [ ${UPLOAD_DATA} -eq 0 ]; then echo " ${WHITE}-${NORMAL} Use --upload to upload data to central system (Lynis Enterprise users)"; fi
echo "" echo ""
fi fi
echo "============================================================== ==================" echo "============================================================== =================="
echo "" echo ""
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 lines changed or added

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