Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB hotplug connection functionality #103

Open
dominikfehr opened this issue Aug 2, 2024 · 0 comments
Open

USB hotplug connection functionality #103

dominikfehr opened this issue Aug 2, 2024 · 0 comments
Labels
enhancement potential new feature

Comments

@dominikfehr
Copy link

Due to several possible problems while detaching the kernel driver from a device, in some cases it is useful to use the usb hotplug event to actually wait for the device to be connected and directly opening it to prevent the system to take over before.

Implementation line might be:

device_handle = self.proxied_device.open(device, detach=True)

For reference, this way worked perfectly fine for most of my problem cases:
https://github.com/Fehr-GmbH/blackleak/blob/master/main.c#L40

@antoinevg antoinevg added the enhancement potential new feature label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement potential new feature
Projects
None yet
Development

No branches or pull requests

2 participants