Saadaval on USB Raw Gadget, Linuxi moodul USB-seadmete emuleerimiseks.

Andrei Konovalov from Google is developing a new module USB Raw Gadget, mis võimaldab to emulate USB devices in user space. It's currently under review application for including this module in the mainline of the Linux kernel. USB Raw Gadget is already rakendatakse in Google to simplify fuzz testing of the USB stack in the kernel using tools Buildroot — on ehitusüsteem, mis loob Linuxi keskkonna allikatest ja on väljatöötatud silmas pidades kasutamist sisseehitatud süsteemides. Buildrooti tugevateks külgedeks on kompaktsete piltide loomise optimeerimine (tüüpiline pilt võtab paar megabaiti), toetus umbes 20 erinevale protsessori arhitektuurile, lihtne ristkompileerimine (pildi koostamiseks on sageli piisav kolme käsku — git clone/make nconfig/make)..

The module adds a new programming interface to the kernel's USB Gadget and is being developed as an alternative to GadgetFS. The creation of the new API is driven by the need for low-level and direct access to the USB Gadget subsystem from user space, allowing all possible USB requests to be processed (GadgetFS handles some requests on its own, without passing to user space). The USB Raw Gadget is controlled via the device /dev/raw-gadget, similar to /dev/gadget in GadgetFS, but it uses an ioctl()-based interface rather than a pseudo-FS.

In addition to directly handling all USB requests by a user-space process, the new interface also has the capability to return any data in response to a USB request (GadgetFS performs a validity check of USB descriptors and filters certain responses, which hinders error detection during fuzz testing of the USB stack). Raw Gadget also allows the selection of a specific UDC (USB Device Controller) and driver for attachment, whereas GadgetFS attaches to the first available UDC. Predictable names are assigned for different UDCs endpoint to differentiate between different types of data channels within a single device.

Allikas: opennet.ru

Osta usaldusväärne hostimine veebilehtede jaoks DDoS-i kaitsega, VPS VDS serverid 🔥 Osta usaldusväärne hostimine veebilehtede jaoks DDoS-i kaitsega, VPS VDS serverid | ProHoster