Skip to content

Commit

Permalink
setup_test: don't enable landlock
Browse files Browse the repository at this point in the history
Signed-off-by: Morten Linderud <[email protected]>
  • Loading branch information
Foxboron committed Jul 30, 2024
1 parent 4f3cb5f commit dad85b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/sbctl/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ func TestSetup(t *testing.T) {

conf := config.DefaultConfig()

// Disable landlock
conf.Landlock = false

// Include test file into our file config
conf.Files = []*config.FileConfig{
{"/boot/test.efi", "/boot/new.efi"},
Expand Down Expand Up @@ -123,6 +126,9 @@ func TestSetupTPMKeys(t *testing.T) {

conf := config.DefaultConfig()

// Disable landlock
conf.Landlock = false

// Set PK to be a TPM key
conf.Keys.PK.Type = "tpm"
conf.Keys.KEK.Type = "tpm"
Expand Down

0 comments on commit dad85b6

Please sign in to comment.