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.1k stars 133 forks source link

Add option --version #570

Closed jk-10 closed 1 month ago

jk-10 commented 1 year ago

Running usbguard --version at least on Ubuntu 22.04 does not produce any versioning information. Handling these issues and fixes might be easier with known version numbers.

So please add support for new option --version

hartwork commented 1 year ago

@jk-10 I second that there should be --version supported by at least command usbguard. :+1:

Just for your information, one way to check which version of USBGuard (or any distro package) you have installed on Ubuntu (and Debian) is apt-cache policy usbguard, e.g.:

# cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux bookworm/sid"
NAME="Debian GNU/Linux"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

# apt-cache policy usbguard
usbguard:
  Installed: 1.1.2+ds-3+b1
  Candidate: 1.1.2+ds-3+b1
  Version table:
 *** 1.1.2+ds-3+b1 500
        500 http://deb.debian.org/debian sid/main amd64 Packages
        100 /var/lib/dpkg/status
Cropi commented 1 year ago

I agree that this could come in handy when debugging future issues.