Wanting to play around with Trusted Platform Module stuff, I installed TrouSerS and tried to start tcsd
, but I got this error:
TCSD TDDL ERROR: Could not find a device to open!
However, my kernel has multiple TPM modules loaded:
# lsmod | grep tpm
tpm_crb 16384 0
tpm_tis 16384 0
tpm_tis_core 20480 1 tpm_tis
tpm 40960 3 tpm_tis,tpm_crb,tpm_tis_core
So, how do I determine if my computer is lacking TPM vs TrouSerS having a bug?
Neither dmidecode
nor cpuid
output anything about "tpm" or "trust". Looking in /var/log/messages
, on the one hand I see rngd: /dev/tpm0: No such file or directory
, but on the other hand I see kernel: Initialise system trusted keyrings
and according to this kernel doc trusted keys use TPM.
EDIT: My computer's BIOS setup menus mention nothing about TPM.
Also, looking at /proc/keys
:
# cat /proc/keys
******** I--Q--- 1 perm 1f3f0000 0 65534 keyring _uid_ses.0: 1
******** I--Q--- 7 perm 3f030000 0 0 keyring _ses: 1
******** I--Q--- 3 perm 1f3f0000 0 65534 keyring _uid.0: empty
******** I------ 2 perm 1f0b0000 0 0 keyring .builtin_trusted_keys: 1
******** I------ 1 perm 1f0b0000 0 0 keyring .system_blacklist_keyring: empty
******** I------ 1 perm 1f0f0000 0 0 keyring .secondary_trusted_keys: 1
******** I------ 1 perm 1f030000 0 0 asymmetri Fedora kernel signing key: 34ae686b57a59c0bf2b8c27b98287634b0f81bf8: X509.rsa b0f81bf8 []
dmesg | grep -w tpm
doesn't give messages about initializing a tpm then you haven't got one which is recognised by the kernel. Most laptops and desktops don't have TPMs, they are pretty standard on machines sold as servers (i.e. things big enough to run IPMI), and also on chromebooks where they are part of the security story.