Skip to content

hardware-wallets: Trezor udev rules add uaccess, which bypasses the group model #66

Closed

Description

@ostermayer

Question

modules/hardware-wallets.nix grants access to Trezor devices by group: MODE="0660", GROUP="${cfg.group}". The same rules also add TAG+="uaccess" (lines 72, 73, 76 to 78). The Ledger rule (line 60) doesn't.

With uaccess, systemd-logind adds an ACL on the device node for the user of the active local session. That user gets read and write access to the Trezor even if they aren't in the hardware-wallets group. The group-based model in this module doesn't say this.

Upstream Trezor udev rules use uaccess too, so this is the upstream default for desktops. On a node where the operator is the only local user, there's no change in exposure. On a shared desktop, there is.

Options

  • Remove TAG+="uaccess" so only the group grants access. This matches the Ledger rule and the option description.
  • Or keep it and document that any active local session can use the Trezor.

How found

LLM review (Kimi K3 max, GLM 5.3 max) flagged this. I verified it against the code. Severity: low.

Activity

  1. added
    area: modules
    status: needs decision
    type: security
    on Oct 23, 2026
  2. added 2 commits that reference this issue on Nov 18, 2026
    3cd4265
    771affc
  3. added a commit that references this issue on Nov 18, 2026
    50cb86f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: modulesstatus: needs decisiontype: security

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions