• pastaq@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    3 hours ago

    Be careful with this. These udev rules usually grant uaccess to your entire keyboard. uaccess is explicitly disabled for keyboards by default because it presents the event device to all of userspace, which allows any unprivileged app to log all key presses. This includes any malicious scripts running in a browser. If you do want to set up these rules, use them only for the single session you’re setting up your device and don’t type any passwords with it active, or change them immediately after (you won’t be able to remove them without your sudo password).

    For the same reason, stop using OpenRGB for devices that don’t have kernel drivers.

    • ElectroLisa@piefed.blahaj.zone
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 hour ago

      You’re right, one of the guides I’ve found explicitly mentioned that, and recommended toggling the rules on only when you need it.

      If I’m not mistaken, you can make rules per device ID. Keychron devices show up as a keyboard/mouse and a “Link” device. You could make a passthrough rule just for the Link, thus not granting access to the actual input device.

      Could you elaborate on the OpenRGB thing? I’ve used it a few times but never paid attention to the rules it asks for