11.8. Logging USBguard authorization events to the Linux Audit log
By default, the usbguard daemon logs events to the /var/log/usbguard/usbguard-audit.log file. You can integrate logging of USBguard authorization events to the standard Linux Audit log.
Prerequisites
-
The
usbguardservice is installed and running. -
The
auditdservice is running.
Procedure
In the
/etc/usbguard/usbguard-daemon.conffile, change theAuditBackendoption fromFileAudittoLinuxAudit:AuditBackend=LinuxAuditRestart the
usbguarddaemon to apply the configuration change:# systemctl restart usbguard
Verification
Query the
auditdaemon log for a USB authorization event, for example:# ausearch -ts recent -m USER_DEVICE