Skip to content

Tailscaled tpm seems to default to /dev/tpm0 not /dev/tpmrm0 #18026

@udf2457

Description

@udf2457

What is the issue?

I am running the service as non-root user, and seeing this in the logs:

tailscaled[10907]: TPM: error opening: open /dev/tpm0: permission denied

Which, of course is to be expected....

crw-rw---- 1 tss root 10, 224 Nov 21 18:16 /dev/tpm0

But the problem is, you see that I have put the tailscale user into the tss group:

$ fgrep tss /etc/group
tss:x:107:tailscale

And so none of this would happen if tailscaled tried tpmrm0 first !

crw-rw---- 1 tss tss 254, 65536 Nov 21 18:16 /dev/tpmrm0

Steps to reproduce

No response

Are there any recent changes that introduced the issue?

No response

OS

Debian

OS version

Trixie

Tailscale version

1.90.8
  tailscale commit: edc9d22455eb839bd411d1b0555da979d1fb4d75
  long version: 1.90.8-tedc9d2245-ged5c52ee2
  other commit: ed5c52ee2e5854e3bf8c3c06229198b17f0d3a77
  go version: go1.25.3

Other software

No response

Bug report

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions