Skip to content

Commit

Permalink
shim: pass seal data prepared by enclave-agent to runtime-boot
Browse files Browse the repository at this point in the history
Signed-off-by: Mikko Ylinen <[email protected]>
  • Loading branch information
mythi committed Dec 15, 2023
1 parent a80b2be commit 988a80a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/shim/runtime/v2/rune/v2/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ func (c *agent) PullImage(ctx context.Context, req *image.PullImageReq) (*image.
}

// Create dir for store unionfs image (based on sefs)
sefsDir := filepath.Join(c.Bundle, "rootfs/images/", cid, "sefs")
lowerDir := filepath.Join(sefsDir, "lower")
upperDir := filepath.Join(sefsDir, "upper")
for _, dir := range []string{lowerDir, upperDir} {
if err := os.MkdirAll(dir, defaultDirPerm); err != nil {
for _, dir := range []string{"upper", "lower"} {
if err := os.MkdirAll(filepath.Join(c.Bundle, "rootfs", "images", cid, "sefs", dir), defaultDirPerm); err != nil {
return nil, err
}
if err := os.MkdirAll(filepath.Join(c.Bundle, "rootfs", "images", cid, "keys", "sefs", dir), defaultDirPerm); err != nil {
return nil, err
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
includes:
- base.yaml
targets:
- target: /
mkdirs:
- keys
- target: /bin
copy:
- files:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
includes:
- base.yaml
targets:
- target: /
mkdirs:
- keys
- target: /bin
copy:
- files:
Expand Down

0 comments on commit 988a80a

Please sign in to comment.