Comments (11)
Executing journalctl -xe -u usbguard
should give you some hint on the root cause of the problem.
What permissions/ownership does the rules file have?
from usbguard.
permissions:
-rw-------. 1 luca luca
from usbguard.
What about SELinux? What is the context of the file? Are there any AVCs?
from usbguard.
unconfined_u:object_r:user_home_t:s0 /etc/usbguard/rules.conf
from usbguard.
I believe that the owner/group is not part of the IPCAllowedUsers/IPCAllowedGroups group. There are two ways on how to configure IPC access control, please refer to the IPC ACCESS CONTROL section inside the usbguard-daemon.conf man page.
from usbguard.
unconfined_u:object_r:user_home_t:s0 /etc/usbguard/rules.conf
It should be
-rw-------. 1 root root system_u:object_r:usbguard_rules_t:s0 0 Jul 23 2022 rules.conf
from usbguard.
I changed it to
-rw-------. 1 root root unconfined_u:object_r:user_home_t:s0 1186 Aug 2 10:06 /etc/usbguard/rules.conf
and still not being able to start the service, I already did daemon reload
from usbguard.
Try
sudo restorecon -f /etc/usbguard/rules.conf
from usbguard.
getting the following error:
restorecon: SELinux: Could not get canonical path for allow id 1d6b:0002 serial "0000:00:14.0" name "xHCI Host Controller" hash "jEP/6WzviqdJ5VSeTUY8PatCNBKeaREvo2OqdplND/o=" parent-hash "rV9bfLq7c2eA4tYjVjwO4bxhm+y6GgZpl9J60L0fBkY=" with-interface 09:00:00 with-connect-type "" restorecon: No such file or directory.
from usbguard.
getting the following error:
restorecon: SELinux: Could not get canonical path for allow id 1d6b:0002 serial "0000:00:14.0" name "xHCI Host Controller" hash "jEP/6WzviqdJ5VSeTUY8PatCNBKeaREvo2OqdplND/o=" parent-hash "rV9bfLq7c2eA4tYjVjwO4bxhm+y6GgZpl9J60L0fBkY=" with-interface 09:00:00 with-connect-type "" restorecon: No such file or directory.
Sorry, I made a mistake. -f does something different.
sudo restorecon -v /etc/usbguard/rules.conf
from usbguard.
that did the trick!
from usbguard.
Related Issues (20)
- feature request: a rule property that makes the rule match only on daemon startup
- feature-request: persistenly store temporary rules for daemon restarts/crashes HOT 1
- outdated dbus docs on the web site HOT 2
- Add option --version HOT 2
- usbguard fails to start if rule line in rules.conf ends with space character. HOT 1
- clarify the exact semantics of comments in the rules config HOT 1
- Modification of the permanent policy is not possible if RuleFile is not specified
- configure: error: Link test failed both with and without -lstdc++fs; something is broken HOT 11
- USB-C behavior & potential bypasses HOT 3
- [question] What is a "parent-hash" HOT 2
- USBGuard failing to block new devices HOT 10
- Failed to permanently add device to rules.conf: Rule set upsert: rule: Cannot upsert; multiple matching rules HOT 2
- [Fedora?] With recent kernel updates, USB root hubs changed ports
- Installing USBGuard to Debain 11 custom livecd causes squashfs read errors HOT 1
- USBGuard daemon won't start at booting. HOT 11
- Device blocked after suspend despite being allowed in rules HOT 8
- Partially block device by interface HOT 2
- USBguard blocks allowed device after kernel disconnects and reconnects USB fingerprint reader HOT 6
- Question: How to change HidePII and PresentControllerPolicy settings via CLI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from usbguard.