Skip to content

Restart is needed to allow devices on every USB port #685

@achataigner

Description

@achataigner

Tested platform
Ubuntu 22.04

Steps to reproduce

  • usbguard service is running and 2 USB ports are available
  • Open a terminal and run this command: sudo dmesg -w
  • Plug a device on a USB port:
    • dmesg indicates "Device is not authorized for usage"
    • note idVendor and idProduct displayed by dmesg
  • Run usbguard allow-device --permanent "$idVendor:$idProduct" => Now the device works correctly
  • Plug the device on another USB port

Result
The device is NOT authorized for usage

Expected result
The device is authorized for usage

Remarks

  • The device is authorized for usage after restarting the PC.
  • Same behavior if I use usbguard generate-policy --no-ports-sn and then restart usbguard service
  • /etc/usbguard/rules.conf is ok: there is no "via-port" attribute

Is it expected ?
If yes a message like "PC restart is required to apply completely the rules" could be nice ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions