Skip to content

Commit 78750b7

Browse files
committed
Pass new --locality and --flags parameters to swtpm
Pass new --locality reject-locality-4 parameter to swtpm so that any attempts to choose locality 4 will fail. Also pass allow-set-locality to allow the vTPM driver to set the locality. The --flags not-need-init indicates that we don't need to send an INIT via the control channel. Signed-off-by: Stefan Berger <[email protected]>
1 parent 86e3a07 commit 78750b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libcontainer/vtpm/vtpm.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ again:
396396
if vtpm.Vtpmversion == VTPM_VERSION_2 {
397397
cmd.Args = append(cmd.Args, "--tpm2")
398398
}
399+
cmd.Args = append(cmd.Args, "--locality", "reject-locality-4,allow-set-locality", "--flags", "not-need-init")
399400
file := os.NewFile(uintptr(vtpm.fd), "[vtpm]")
400401
cmd.ExtraFiles = append(cmd.ExtraFiles, file)
401402

0 commit comments

Comments
 (0)