Skip to content

Commit 681439e

Browse files
committed
secboot/secboot_tpm.go: allow user mode on core
1 parent f7187e4 commit 681439e

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

secboot/secboot_sb_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,6 +1654,7 @@ func (s *secbootSuite) TestResealKeysWithTPM(c *C) {
16541654
// add options for legacy PCR configuration
16551655
expectedOptions = append(
16561656
expectedOptions,
1657+
sb_efi.WithAllowSecureBootUserMode(),
16571658
sb_efi.WithSecureBootPolicyProfile(),
16581659
sb_efi.WithBootManagerCodeProfile(),
16591660
)

secboot/secboot_tpm.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,7 @@ func buildPCRProtectionProfileLegacy(modelParams []*SealKeyModelParams, allowIns
925925

926926
var options []sb_efi.PCRProfileOption
927927
options = append(options,
928+
sb_efi.WithAllowSecureBootUserMode(),
928929
sb_efi.WithSecureBootPolicyProfile(),
929930
sb_efi.WithBootManagerCodeProfile(),
930931
sb_efi.WithSignatureDBUpdates(updateDB...),

0 commit comments

Comments
 (0)