-
Notifications
You must be signed in to change notification settings - Fork 141
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
USBGuard on Arch Linux continues to identify usb devices plugged into Thinkpad dock as blocked even when added in rules.conf #645
Comments
I did some more research today, and I get this feeling the usbguard.daemon.conf configuration is not being followed. I checked the file configuration and found:
I put the rules.conf file into "/etc/usbguard/rules.d/rules.conf" and when I try to start the usbguard.service I get the following error:
If I move the file to the directory "/etc/usbguard" the service will start. So maybe this is contributing to the several reported issues where people will not be able to authorize a device in the rules.conf file. |
Looks like the documentation needs to be updated when generating the rules.conf file. Found this error:
I ended up running 'chmod 600 /etc/usbguard/rules.d/rules.conf' and now the service starts. I'm going to re-test on the T470s to see what its configuration files say. I know it will have the wrong permission. since I deleted the original file. |
Looks like I figured out the issue (think it is a documentation bug). Looking at the setup page at https://github.com/USBGuard/usbguard it mentions to crate the rules.conf file you should "$ sudo sh -c 'usbguard generate-policy > /etc/usbguard/rules.conf". This did work in the past when there was no rules.d directory and the start service was not looking for the permission of 600. Suggest we change the instruction as follows:
I will leave bug open for the USBGuard team to review. Thank you. |
Looks like the issue is not fixed. I cold booted my laptop and all of a sudden all these devices are blocked (which are in the rules.conf):
I did get this output from the usbguard.service after i manually enabled the devices from the built in laptop keyboard:
If I downgrade my kernel from 6.12 to 6.11.9 then I will not have issues wth USBguard blocking devices already i the rule file. So I will wait for a response from our team. |
@radosroka @muelli Good Morning. I was reviewing a number of open issues for the USBGuard project and noticed quite a few where there is minimal information (possibly no triage done). Is this project still active (or in maintenance mode)? Thanks. |
Hi,
I've noticed recently that USB devices like my "Turtle Beach P11 Headset" or Logitech "USB Receiver" will get blocked on a cold boot or after a restart even though they are listed in the /etc/usbguard/rules.conf.
When I manually start the usbguard.service I will see the following item show as blocked:
Troubleshoot:
I can use the "sudo usbguard allow-device" command to manually add the devices and they are fully functional.
The problem shows in both kernels Linux-LTS 6.6.65-1 and Linux ZEN 6.12.4.zen1-1.
I did rename the rules.conf file. Then used the "usbguard generate-policy > /etc/usbguard/rules.conf" command as root to generate the file below. Still the "Turtle Beach P11 Headset" is blocked after I restart the T470.
Original laptop displaying this issue was a Thinkpad T470s (only Turtle beach headphones blocked). On Thinkpad T450 the "USB Receiver" was blocked.
This USBguard 1.1.3-8 Arch Linux Native package has also displayed a symptom where the rules.conf file will all of a sudden lose all its contents. I have seen this twice so far. But not repeatable.
System information:
USB Guard Version:
USB Guard Directory:
Contents of rules.conf
The text was updated successfully, but these errors were encountered: