-
Notifications
You must be signed in to change notification settings - Fork 142
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
Ignoring access control file because of malformed name #540
Comments
Hi @brphilly, a quick look at the code reveals that the error message is produced at… usbguard/src/Daemon/Daemon.cpp Lines 466 to 472 in 87e5c2d
parseIPCAccessControlFilename threw an exception. The way I read function parseIPCAccessControlFilename at… usbguard/src/Daemon/Daemon.cpp Lines 446 to 457 in 87e5c2d
user:group and user but it then calls out to checkIPCAccessControlName for an empty group name, which then checkIPCAccessControlName forwards to checkAccessControlName at… usbguard/src/Daemon/Daemon.cpp Lines 441 to 444 in 87e5c2d
isValidName at… usbguard/src/Library/public/usbguard/IPCServer.cpp Lines 33 to 42 in 64f7169
usbguard/src/Common/Utility.cpp Lines 546 to 554 in b15ef71
So one possible fix would be to adjust function Best, Sebastian |
Regression from commit b15ef71 of release 1.1.0, detailed analysis online at USBGuard#540 (comment)
Regression from commit b15ef71 of release 1.1.0, detailed analysis online at USBGuard#540 (comment)
Just compiled this PR and can confirm it fixed the problem. The logs now show
and everything seems to work. Thanks so much for the quick fix! |
@brphilly thanks for testing and reporting back! 👍 @radosroka any chance for a release 1.1.1 with the regression fix from PR #541 ? |
Regression from commit b15ef71 of release 1.1.0, detailed analysis online at USBGuard#540 (comment)
Regression from commit b15ef71 of release 1.1.0, detailed analysis online at #540 (comment)
@radosroka I'm currently considering to backport PR #541 in Gentoo packaging of USBGuard but since it's a regression fix from 1.0.0, all distros should ideally have this patch and not need to accumulate distro-agnostic patches. Any chance you could cut release 1.1.1 from Git |
I'll do it later today. |
@radosroka awesome, thank you! 👍 |
Ever since upgrading to usbguard 1.1.0, I'm getting this error
ERROR: IPC connect: service=usbguard: Operation not permitted
when trying to use usbguard as my user. I ranusbguard-daemon -d
and the logs showedThe file
/etc/usbguard/IPCAccessControl.d/brady
was created byand it has the correct permissions.
I saw #479 and thought maybe that is causing the issue. I'm using Arch Linux in case it matters.
The text was updated successfully, but these errors were encountered: