Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

USBGuard


sudo dnf install usbguard usbguard-selinux
sudo systemctl enable --now usbguard
sudo bash -c "usbguard generate-policy > /etc/usbguard/rules.conf"

Manejar dispositivos temporalmente

sudo usbguard list-devices
sudo usbguard allow-device #ID
sudo usbguard block-device #ID

Permitir dispositivos permanentemente

Forma rápida

sudo usbguard allow-device #ID -p

Primera vez (setup inicial)

usbguard generate-policy > rules.conf
hx rules.conf
sudo install -m 0600 -o root -g root rules.conf /etc/usbguard/rules.conf
sudo systemctl restart usbguard

Edición manual

Agregar toda la ruta que aparece en usbguard list-devices, sin el primer número y poniendo allow.

sudo hx /etc/usbguard/rules.conf
sudo systemctl restart usbguard