CHROMIUM: device_jail: detach all interfaces
permission_broker iterates through every available interface of
the USB device to detach drivers. We should do the same thing
kill permission_broker, set up device_jail_utility server.
Use lsusb -t to find a device with an attached kernel driver,
i.e. btusb, add a jail for it
>>> f = open("/dev/jailed-189-XXX", "rb")
Choose "detach" in the server. Check syslog, lsusb -t again
to make sure the driver was detached.
Ensure the driver is reattached. (If using btusb you can also
check visually that the bluetooth menu disables itself when
you detach the driver, and re-enables itself when you attach
Commit-Ready: Eric Caruso <firstname.lastname@example.org>
Tested-by: Eric Caruso <email@example.com>
Reviewed-by: Dylan Reid <firstname.lastname@example.org>
1 file changed