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

Question: How to change HidePII and PresentControllerPolicy settings via CLI #598

Open solidc0re opened 1 year ago

solidc0re commented 1 year ago

Hi there,

I've been a happy user of USBGuard for a while and I'm going to include it in a script I am writing to harden Fedora's immutable spins.

I'd like to automate changing the HidePII and PresentControllerPolicy before starting the service and wondered if there was a way of doing this through the command line.

I've attempted sudo usbguard set-parameter HidePII true to no avail.

I'm happy to use the sed command to update the usbguard-daemon.conf file directly, but thought I'd ask here in case there's a baked-in way of doing it within usbguard/usbguard-daemon.

Many thanks in advance /\

radosroka commented 10 months ago

You can only run set-parameter when the daemon is up and not all options have support for that.