Reputation: 607
I need to write a driver of sorts for a printer. The control of the printer is done via Printer Control Language. Data is transferred via usb or ethernet.
For the usb side Initial research has lead me to consider using lib_usb and create a user space program rather than any kernel space driver. From my understanding this program would still have to run as root for the usb access to work correctly however this can be overcome with a udev rule.
My concern is now what security considerations should I now consider that I have opened this door? I am aware that this udev rule will be restricted by vendor id and product id and somewhere in lib_usb I should be able to use libusb_control_transfer to set comms as host to device but is there anything else I should consider?
Upvotes: -2
Views: 22