]> git.proxmox.com Git - swtpm.git/commit
swtpm_setup: Get active PCR banks from swtpm_setup.conf
authorStefan Berger <stefanb@linux.ibm.com>
Thu, 28 Oct 2021 16:23:14 +0000 (12:23 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Fri, 29 Oct 2021 19:36:35 +0000 (15:36 -0400)
commita5cc0bf6e26eb4af5cbfd0e66fcd7e6af13f503d
tree59785c534a89d13aba705b51304b5ff8b2f60205
parent87755f8cc4e4f04a835ab7d5b91f45584a0cae62
swtpm_setup: Get active PCR banks from swtpm_setup.conf

If the user did not provide the PCR banks to activate through the command
line options, try to read it from the config file and if nothing is found
there, fall back to the DEFAULT_PCR_BANKS as set during configure time.

Move the check for the PCR banks after the access check to the
configuration file.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
man/man8/swtpm_setup.conf.pod
man/man8/swtpm_setup.pod
src/swtpm_setup/swtpm_setup.c