"Fossies" - the Fresh Open Source Software Archive  

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

About: Lynis is a security and system auditing tool.

tests_usb  (lynis-3.0.1):tests_usb  (lynis-3.0.2)
skipping to change at line 22 skipping to change at line 22
# Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are # Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
# welcome to redistribute it under the terms of the GNU General Public License. # welcome to redistribute it under the terms of the GNU General Public License.
# See LICENSE file for usage of this software. # See LICENSE file for usage of this software.
# #
################################################################################ # ################################################################################ #
# #
# USB Devices # USB Devices
# #
################################################################################ # ################################################################################ #
# #
InsertSection "USB Devices" InsertSection "${SECTION_USB_DEVICES}"
# #
################################################################################ # ################################################################################ #
# #
USBGUARD_FOUND=0 USBGUARD_FOUND=0
USBGUARD_CONFIG="" USBGUARD_CONFIG=""
USBGUARD_RULES="" USBGUARD_RULES=""
USBGUARD_RESTORE_POLICY="" USBGUARD_RESTORE_POLICY=""
USBGUARD_CONTROLLER_POLICY="" USBGUARD_CONTROLLER_POLICY=""
USBGUARD_DEVICE_POLICY="" USBGUARD_DEVICE_POLICY=""
USBGUARD_INSERTED_POLICY="" USBGUARD_INSERTED_POLICY=""
skipping to change at line 76 skipping to change at line 76
fi fi
if [ -f ${ROOTDIR}etc/modprobe.conf ]; then if [ -f ${ROOTDIR}etc/modprobe.conf ]; then
FIND=$(${EGREPBINARY} "install usb[-_]storage /bin/(false|true)" ${R OOTDIR}etc/modprobe.conf | ${GREPBINARY} "usb-storage" | ${GREPBINARY} -v "#") FIND=$(${EGREPBINARY} "install usb[-_]storage /bin/(false|true)" ${R OOTDIR}etc/modprobe.conf | ${GREPBINARY} "usb-storage" | ${GREPBINARY} -v "#")
if [ -n "${FIND}" ]; then if [ -n "${FIND}" ]; then
FOUND=1 FOUND=1
LogText "Result: found usb-storage driver in disabled state" LogText "Result: found usb-storage driver in disabled state"
fi fi
fi fi
if [ ${FOUND} -eq 0 ]; then if [ ${FOUND} -eq 0 ]; then
LogText "Result: usb-storage driver is not explicitly disabled" LogText "Result: usb-storage driver is not explicitly disabled"
Display --indent 2 --text "- Checking usb-storage driver (modprobe c onfig)" --result "NOT DISABLED" --color WHITE Display --indent 2 --text "- Checking usb-storage driver (modprobe c onfig)" --result "${STATUS_NOT_DISABLED}" --color WHITE
if [ "${USBGUARD_FOUND}" -eq "0" ]; then if [ "${USBGUARD_FOUND}" -eq "0" ]; then
ReportSuggestion "${TEST_NO}" "Disable drivers like USB storage when not used, to prevent unauthorized storage or data theft" ReportSuggestion "${TEST_NO}" "Disable drivers like USB storage when not used, to prevent unauthorized storage or data theft"
fi fi
AddHP 2 3 AddHP 2 3
else else
LogText "Result: usb-storage driver is disabled" LogText "Result: usb-storage driver is disabled"
Display --indent 2 --text "- Checking usb-storage driver (modprobe c onfig)" --result "${STATUS_DISABLED}" --color GREEN Display --indent 2 --text "- Checking usb-storage driver (modprobe c onfig)" --result "${STATUS_DISABLED}" --color GREEN
AddHP 3 3 AddHP 3 3
fi fi
fi fi
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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