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:
authorMichael Boelen <michael.boelen@cisofy.com>2019-07-15 21:00:14 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-07-15 21:00:14 +0300
commit52610e1abed9234cb7162bfe2f8f1ebfa711fc63 (patch)
tree6c76826f36a0e5de2c62f10cb2e85fb09e2f5793 /include/tests_usb
parent7ec81715aab4e92d88c3ac1df0460230e713fe59 (diff)
[STRG-1842] renamed to USB-2000
Diffstat (limited to 'include/tests_usb')
-rw-r--r--include/tests_usb8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/tests_usb b/include/tests_usb
index 4f5eff59..ef92efd2 100644
--- a/include/tests_usb
+++ b/include/tests_usb
@@ -87,15 +87,15 @@
#
#################################################################################
#
- # Test : STRG-1842 (future ID: USB-2000)
+ # Test : USB-2000 (was STRG-1842)
# Description : Check USB authorizations
- Register --test-no STRG-1842 --os Linux --weight L --network NO --category security --description "Check USB authorizations"
+ Register --test-no USB-2000 --os Linux --weight L --network NO --category security --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"
+ USBDEVICESPATH="${ROOTDIR}sys/bus/usb/devices/usb"
for device in "${USBDEVICESPATH}"*; do
- if [ -e "${device}/authorized" ] || [ -e "${device}/authorized_default" ]; then
+ if [ -e "${device}/authorized" -o -e "${device}/authorized_default" ]; then
if [ $(cat "${device}/authorized_default") -eq 1 ]; then
FOUND=1
LogText "Test: ${device} is authorized by default"