commit | f4fcd75685c2976771d289e70f73ca74663fbf01 | [log] [tgz] |
---|---|---|
author | Stefan Berger <stefanb@linux.ibm.com> | Thu Mar 14 10:51:57 2024 -0400 |
committer | Stefan Berger <stefanb@us.ibm.com> | Thu Mar 14 12:09:20 2024 -0400 |
tree | f9213386d5435c96ed02706280a0468bfd5f1b18 | |
parent | e02626d038722d829e85bdec9771222b348e065b [diff] |
swtpm_setup: Fail --pcr-banks without --tpm2 Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
diff --git a/src/swtpm_setup/swtpm_setup.c b/src/swtpm_setup/swtpm_setup.c index bf562b4..8f87ad4 100644 --- a/src/swtpm_setup/swtpm_setup.c +++ b/src/swtpm_setup/swtpm_setup.c
@@ -1555,6 +1555,10 @@ logerr(gl_LOGFILE, "--decryption requires --tpm2.\n"); goto error; } + if (pcr_banks) { + logerr(gl_LOGFILE, "--pcr-banks requires --tpm2.\n"); + goto error; + } } if (!(flags & SETUP_RECONFIGURE_F)) {