mirror of https://github.com/CISOfy/lynis.git
[STRG-1842] renamed to USB-2000
This commit is contained in:
parent
7ec81715aa
commit
52610e1abe
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue