mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-08-21 21:28:39 +00:00
swtpm_setup: Write active_pcr_banks into swtpm_setup.conf
Write the active_pcr_banks into swtpm_setup.conf with the default PCR banks from the configure script. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
a5cc0bf6e2
commit
30fa8b47d2
@ -2,3 +2,5 @@
|
||||
create_certs_tool= @BINDIR@/swtpm_localca
|
||||
create_certs_tool_config = @SYSCONFDIR@/swtpm-localca.conf
|
||||
create_certs_tool_options = @SYSCONFDIR@/swtpm-localca.options
|
||||
# Comma-separated list (no spaces) of PCR banks to activate by default
|
||||
active_pcr_banks = @DEFAULT_PCR_BANKS@
|
||||
|
||||
@ -134,10 +134,13 @@ int create_config_files(gboolean overwrite, gboolean root_flag,
|
||||
filedata[SWTPM_SETUP_CONF] = g_strdup_printf(
|
||||
"create_certs_tool = %s\n"
|
||||
"create_certs_tool_config = %s\n"
|
||||
"create_certs_tool_options = %s\n",
|
||||
"create_certs_tool_options = %s\n"
|
||||
"# Comma-separated list (no spaces) of PCR banks to activate by default\n"
|
||||
"active_pcr_banks = %s\n",
|
||||
create_certs_tool,
|
||||
configfiles[SWTPM_LOCALCA_CONF],
|
||||
configfiles[SWTPM_LOCALCA_OPTIONS]
|
||||
configfiles[SWTPM_LOCALCA_OPTIONS],
|
||||
DEFAULT_PCR_BANKS
|
||||
);
|
||||
|
||||
/* swtpm-localca.conf */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user