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

Usb Guard


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

Manejar Dispositivos Temporalmentes

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

Permitir Dispositivos Permanentemente

Primera vez

Esto es en Nushell, para hacerlo en POSIX cambiar | save por -> >

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

Cambio Normal

Agregar todo el path que aparece en usbguard list-devices. Sin el primer número y poniendo allow

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