USBGuard / usbguard

USBGuard is a software framework for implementing USB device authorization policies (what kind of USB devices are authorized) as well as method of use policies (how a USB device may interact with the system)
https://usbguard.github.io/
GNU General Public License v2.0
1.12k stars 138 forks source link

usbguard-rule-parser: Handle rules file opening error (fixes #530) #533

Closed hartwork closed 2 years ago

hartwork commented 2 years ago

Fixes #530

New behavior:

$ ./usbguard-rule-parser -f /no/such/file ; echo $?
! ERROR: Rules file could not be opened: /no/such/file: No such file or directory
1