-
Notifications
You must be signed in to change notification settings - Fork 49
tcsd.service starts up on a TPM 2.0 machine #208
Copy link
Copy link
Closed
Closed
Copy link
Labels
kind/bugSomething isn't workingSomething isn't working
Description
Description
For machines like the Equinix Metal c3.small.x86 the tcsd.service unit is reported as failing on the login prompt. This is due to the implementation only working with TPM 1.2 devices while the newer machines are using TPM 2.0.
Impact
It is not only confusing but also causes the kola test suite to report errors.
Environment and steps to reproduce
- Set-up: Boot the mentioned machine tyype
- Task: Check the status of the
tcsd.serviceand the output ofcat /sys/devices/platform/*/tpm/tpm0/tpm_version_major - Error: Because the major version is
2the service fails to start withTCSD TDDL ioctl: (25) Inappropriate ioctl for deviceand exit code30
Expected behavior
The service should not be started at all when TPM 2.0 is detetced.
Additional information
The service unit should be modified to check the content of /sys/devices/platform/*/tpm/tpm0/tpm_version_major and decide to skip execution.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't workingSomething isn't working