Giter Club home page Giter Club logo

Comments (11)

Cropi avatar Cropi commented on June 2, 2024

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.

lucamaf avatar lucamaf commented on June 2, 2024

permissions:
-rw-------. 1 luca luca

from usbguard.

radosroka avatar radosroka commented on June 2, 2024

What about SELinux? What is the context of the file? Are there any AVCs?

from usbguard.

lucamaf avatar lucamaf commented on June 2, 2024

unconfined_u:object_r:user_home_t:s0 /etc/usbguard/rules.conf

from usbguard.

Cropi avatar Cropi commented on June 2, 2024

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.

radosroka avatar radosroka commented on June 2, 2024

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.

lucamaf avatar lucamaf commented on June 2, 2024

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.

radosroka avatar radosroka commented on June 2, 2024

Try

sudo restorecon -f /etc/usbguard/rules.conf

from usbguard.

lucamaf avatar lucamaf commented on June 2, 2024

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.

radosroka avatar radosroka commented on June 2, 2024

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.

lucamaf avatar lucamaf commented on June 2, 2024

that did the trick!

from usbguard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.