mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 15:54:09 +02:00
[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
|
# 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
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
LogText "Test: Checking USB devices authorization to connect to the system"
|
LogText "Test: Checking USB devices authorization to connect to the system"
|
||||||
FOUND=0
|
FOUND=0
|
||||||
USBDEVICESPATH="/sys/bus/usb/devices/usb"
|
USBDEVICESPATH="${ROOTDIR}sys/bus/usb/devices/usb"
|
||||||
for device in "${USBDEVICESPATH}"*; do
|
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
|
if [ $(cat "${device}/authorized_default") -eq 1 ]; then
|
||||||
FOUND=1
|
FOUND=1
|
||||||
LogText "Test: ${device} is authorized by default"
|
LogText "Test: ${device} is authorized by default"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user