This script is for Slackware 14.2 only and may be outdated.

SlackBuilds Repository

14.2 > System > usbguard (0.7.8)

The USBGuard software framework helps to protect your
computer against unauthorized use of USB ports on
a machine. To enforce the user-defined policy, it uses
the USB device authorization feature implemented in the
Linux kernel since 2007.

USBGuard supports granular policy options as well as
blacklisting and whitelisting capabilities for specifying
how USB devices will interact with a particular host system.

A device that is blocked will be listed by the operating
system as being connected, but no communication is allowed
for it. A device that is rejected will be completely ignored
after it is inserted into the port.

Optional dependencies:
- audit
- libseccomp

To have the USBGuard daemon start and stop with your host,
add to /etc/rc.d/rc.local:

if [ -x /etc/rc.d/rc.usbguard ]; then
/etc/rc.d/rc.usbguard start
fi

and to /etc/rc.d/rc.local_shutdown (creating it if needed):

if [ -x /etc/rc.d/rc.usbguard]; then
/etc/rc.d/rc.usbguard stop
fi

Warning: You must configure the daemon before you start it
or all USB devices will immediately be blocked!

In order to view the current policy execute the following
command: sudo usbguard generate-policy

If you are satisfied with the output then copy it to the rules file.
sudo usbguard generate-policy >> /etc/usbguard/rules.conf

This requires: protobuf, libsodium, libqb

Maintained by: Michael Edie
Keywords: usb,usbguard,compliance,badusb,stig,policy,removable storage
ChangeLog: usbguard

Homepage:
https://usbguard.github.io/

Source Downloads:
usbguard-0.7.8.tar.gz (b96dcae8c4169c455ac81adab44d59c8)

Download SlackBuild:
usbguard.tar.gz
usbguard.tar.gz.asc (FAQ)

(the SlackBuild does not include the source)

Individual Files:
README
config
doinst.sh
slack-desc
usbguard.SlackBuild
usbguard.info

Validated for Slackware 14.2

See our HOWTO for instructions on how to use the contents of this repository.

Access to the repository is available via:
ftp git cgit http rsync

© 2006-2024 SlackBuilds.org Project. All rights reserved.
Slackware® is a registered trademark of Patrick Volkerding
Linux® is a registered trademark of Linus Torvalds