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

Keyboard and mouse disabled after reboot #644

Open
nturns opened this issue Nov 29, 2024 · 6 comments
Open

Keyboard and mouse disabled after reboot #644

nturns opened this issue Nov 29, 2024 · 6 comments

Comments

@nturns
Copy link

nturns commented Nov 29, 2024

I had this issue on Kali and now Debian 12. The keyboard and mouse are blocked after reboot. Have to boot into safe mode and systemctl disable usbguard and usbguard-dbus. Then regular boot enable again. It doesn't happen on every reboot. If I enable usbguard after I log in it is OK. I think it has a timing issue if usbguard is enabled too soon in the booting process. Is there a way to change when the system enables usbguard?

@muelli
Copy link
Contributor

muelli commented Nov 29, 2024

Sounds like a duplicate of #268 or rather #267

@rsramkis
Copy link

Out of curiosity, what directory is your rules.conf file in? Also are the permissions set to 600?

@nturns
Copy link
Author

nturns commented Dec 14, 2024

Yes.

/etc/usbguard# ls -l
total 20
drwxr-xr-x 2 root root 4096 Nov 28 00:42 IPCAccessControl.d
-rw------- 1 root root 922 Nov 28 00:42 rules.conf
drwx------ 2 root root 4096 Nov 22 2022 rules.d
-rw------- 1 root root 6652 Nov 22 2022 usbguard-daemon.conf

@rsramkis
Copy link

Can you check the usbguard-daemon.conf file and see if you have these settings:

# RuleFile=/path/to/rules.conf
#
RuleFile=/etc/usbguard/rules.d/rules.conf

# RuleFolder=/path/to/rulesfolder/
#
RuleFolder=/etc/usbguard/rules.d/

If yes, then you should move your rules.conf file into the rules.d directory.

Think you ran into what I identified here "#645".

@nturns
Copy link
Author

nturns commented Dec 14, 2024

My usbguard-daemon.conf has RuleFile pointing to where it actually is.

RuleFile=/etc/usbguard/rules.conf

RuleFolder=/etc/usbguard/rules.d/

The rules.d directory is empty.

I moved rules.conf into rules.d/ and I changed "RuleFile=" to point to it, thus setting it up like yours. When I "systemctl start usbguard" I lost both mouse and keyboard. That was unexpected. As I mentioned I originally was able to start usbguard from the command line and it worked OK.

Checking other items, file rules.conf lists two host controllers and the mouse and keyboard.

In usbguard-daemon.conf the following is correct.

IPCAccessControlFiles=/etc/usbguard/IPCAccessControl.d/

@rsramkis
Copy link

Thought I would let you know that when I booted my systems today I also lost my external USB keyboard and mouse plugged into my dock. So I have updated my defect ticket for the USBGuard team to investigate.

A temporary workaround for me was to downgrade my Linux Kernel from 6.12 to 6.11.9. So I am not sure if the 6.12 Kernel Branch introduced some new feature which is causing an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants