Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2016-03-08 11:50:28 +0300
committermboelen <michael@cisofy.com>2016-03-08 11:50:28 +0300
commitebdd94657089c3e470fcdc9c1aa517f2c8ee7ea5 (patch)
treed13a2b6f385417591e9d480b8f4834b28a60380b /include/tests_storage
parent62f31a8b82c5383285071f91a9ff30b8f3316e10 (diff)
STRG-1840: disabled suggestion as this is considered high secure item
Diffstat (limited to 'include/tests_storage')
-rw-r--r--include/tests_storage13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/tests_storage b/include/tests_storage
index 06d08c61..c6b05cab 100644
--- a/include/tests_storage
+++ b/include/tests_storage
@@ -61,7 +61,6 @@
AddHP 3 3
fi
-
LogText "Test: Checking USB devices authorization to connect to the system"
FOUND=0
USBDEVICESPATH="/sys/bus/usb/devices/usb"
@@ -70,24 +69,26 @@
if [ `cat "${device}/authorized_default"` -eq 1 ]; then
FOUND=1
LogText "Test: ${device} is authorized by default"
+ report "usb_authorized_default_device[]=${device}"
elif [ `cat "${device}/authorized"` -eq 1 ]; then
FOUND=1
- LogText "Test: ${device} is authorized for now"
+ LogText "Test: ${device} is authorized currently"
+ report "usb_authorized_device[]=${device}"
fi
fi
done
if [ ${FOUND} -eq 1 ]; then
- LogText "Result: Some USB devices are authorized by default or temporary to connect to the system"
+ 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
- ReportSuggestion ${TEST_NO} "Disable USB devices authorization, to prevent unauthorized storage or data theft"
+ # 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
else
- LogText "Result: None USB devices are authorized by default or temporary to connect to the system"
+ LogText "Result: None USB devices are authorized by default (or temporary) to connect to the system"
Display --indent 2 --text "- Checking USB devices authorization" --result "DISABLED" --color GREEN
AddHP 3 3
fi
-
fi
#
#################################################################################