Bug 1835210

Summary: Crash: usbguard-daemon[2792]: sigwaitinfo failed: errno=4; Shutting down.
Product: Red Hat Enterprise Linux 8 Reporter: Leon Fauster <leonfauster>
Component: usbguardAssignee: Radovan Sroka <rsroka>
Status: CLOSED ERRATA QA Contact: Dalibor Pospíšil <dapospis>
Severity: high Docs Contact:
Priority: high    
Version: 8.1CC: dapospis, sjohnson
Target Milestone: rcKeywords: Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: usbguard-0.7.8-2.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 03:16:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1738590    
Bug Blocks:    

Description Leon Fauster 2020-05-13 11:55:01 UTC
################
Description of problem:
################


RHEL8 Workstation 

Usbguard does not run anymore. It crashes in this case after ~1 hour. Is systemd's reload triggering this?

# journalctl -b |tee
Mai 13 13:42:33 sd.localdomain systemd[1]: Started /usr/bin/systemctl start man-db-cache-update.
Mai 13 13:42:33 sd.localdomain systemd[1]: cgroup compatibility translation between legacy and unified hierarchy settings activated. See cgroup-compat debug messages for details.
Mai 13 13:42:33 sd.localdomain systemd[1]: Starting man-db-cache-update.service...
Mai 13 13:42:33 sd.localdomain systemd[1]: Reloading.
Mai 13 13:42:33 sd.localdomain usbguard-daemon[2792]: sigwaitinfo failed: errno=4; Shutting down.


# systemctl status usbguard
● usbguard.service - USBGuard daemon
   Loaded: loaded (/usr/lib/systemd/system/usbguard.service; enabled; vendor preset: disabled)
   Active: inactive (dead) since Wed 2020-05-13 13:42:33 CEST; 5min ago
     Docs: man:usbguard-daemon(8)
 Main PID: 2792 (code=exited, status=0/SUCCESS)

Mai 13 12:44:06 stand.localdomain usbguard-daemon[2792]: _____________<snip my device list>_________
Mai 13 13:42:33 stand.localdomain usbguard-daemon[2792]: sigwaitinfo failed: errno=4; Shutting down.

# systemctl is-enabled  usbguard
enabled



################
Version-Release number of selected component (if applicable):
################


# rpm -q usbguard
usbguard-0.7.4-2.el8.x86_64


################
Expected results:
################


Running daemon like:

# systemctl status usbguard
● usbguard.service - USBGuard daemon
   Loaded: loaded (/usr/lib/systemd/system/usbguard.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2020-05-13 13:52:54 CEST; 1s ago
     Docs: man:usbguard-daemon(8)
  Process: 14995 ExecStart=/usr/sbin/usbguard-daemon -f -s -c /etc/usbguard/usbguard-daemon.conf (code=exited, status=0/SUCCESS)
 Main PID: 14997 (usbguard-daemon)
    Tasks: 3 (limit: 26213)
   Memory: 1.7M
   CGroup: /system.slice/usbguard.service
           └─14997 /usr/sbin/usbguard-daemon -f -s -c /etc/usbguard/usbguard-daemon.conf



################
Additional info:
################


# cat /etc/usbguard/rules.conf|wc -l
27

# grep -v ^"#" /etc/usbguard/usbguard-daemon.conf |sort -u

AuditBackend=FileAudit
AuditFilePath=/var/log/usbguard/usbguard-audit.log
DeviceManagerBackend=uevent
DeviceRulesWithPort=false
ImplicitPolicyTarget=block
InsertedDevicePolicy=apply-policy
IPCAccessControlFiles=/etc/usbguard/IPCAccessControl.d/
IPCAllowedGroups=wheel
IPCAllowedUsers=root
PresentControllerPolicy=apply-policy
PresentDevicePolicy=apply-policy
RestoreControllerDeviceState=false
RuleFile=/etc/usbguard/rules.conf

Comment 13 errata-xmlrpc 2020-11-04 03:16:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (usbguard bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:4719