Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
initrd-setup: create /priv/factory
Browse files Browse the repository at this point in the history
Signed-off-by: Serge Hallyn <[email protected]>
  • Loading branch information
hallyn committed May 8, 2023
1 parent d77d771 commit 1b98eab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/trust/tpm2.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,10 @@ func setupFactory() (string, error) {
}

tmpfsDir := filepath.Join(priv, "factory")
if err := EnsureDir(tmpfsDir); err != nil {
return "", fmt.Errorf("Failed creating %q: %w", tmpfsDir, err)
}

if err = os.Chmod(tmpfsDir, 0644); err != nil {
return "", fmt.Errorf("Failed making tmpfs private: %w", err)
}
Expand Down

0 comments on commit 1b98eab

Please sign in to comment.