From 7adf2425a68240f5d9cccb9167c1ef578b7e3afa Mon Sep 17 00:00:00 2001 From: mboelen Date: Thu, 17 Mar 2016 16:36:52 +0100 Subject: Added STRG-1842 to check for authorized USB devices --- include/tests_storage | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/tests_storage b/include/tests_storage index d6bbdccd..88a13297 100644 --- a/include/tests_storage +++ b/include/tests_storage @@ -64,7 +64,13 @@ Display --indent 2 --text "- Checking usb-storage driver (modprobe config)" --result "DISABLED" --color GREEN AddHP 3 3 fi - +# +################################################################################# +# + # Test : STRG-1842 + # Description : Check USB authorizations + Register --test-no STRG-1842 --os Linux --weight L --network NO --description "Check USB authorizations" + if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: Checking USB devices authorization to connect to the system" FOUND=0 USBDEVICESPATH="/sys/bus/usb/devices/usb" @@ -84,7 +90,7 @@ if [ ${FOUND} -eq 1 ]; then LogText "Result: Some USB devices are authorized by default (or temporary) to connect to the system" - Display --indent 2 --text "- Checking USB devices authorization" --result "ENABLED" --color RED + Display --indent 2 --text "- Checking USB devices authorization" --result "ENABLED" --color YELLOW # To-Be-Added: create documentation and enable the suggestion #ReportSuggestion ${TEST_NO} "Disable USB devices authorization, to prevent unauthorized storage or data theft" AddHP 0 3 -- cgit v1.2.3