diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-04-19 14:47:02 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-04-20 16:58:18 +0200 |
commit | 6e0cb81505deb8fd785492f90cdac10388d1858e (patch) | |
tree | fcc1a7ed9515e944ff3a9df830739b7678009bca /man/systemd.journal-fields.xml | |
parent | 0ea911d14c738447511b5a807750b356e0758895 (diff) | |
download | systemd-6e0cb81505deb8fd785492f90cdac10388d1858e.tar.gz |
creds-tool: add new "has-tpm2" verb
Sometimes it's useful from shell scripts to check if we have a working
TPM2 chip around. For example, when putting together encrypted
credentials for the initrd (after all: it might be wise to place the
root pw in a credential for the initrd to consume, but do so only if we
can lock it to the TPM2, and not otherwise, so that we risk nothing).
Hence, let's add a new "systemd-creds has-tpm2" verb: it returns zero if we
have a working TPM2 (which means: supported by kernel + firmware + us),
or non-zero otherwise. Also show which parts are available.
Use-case: in future the 'kernel-install' script should use this when
deciding whether to augment kernels with security sensitive credentials.
Diffstat (limited to 'man/systemd.journal-fields.xml')
0 files changed, 0 insertions, 0 deletions