aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/sandbox/sequential.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-14 02:12:35 +0900
committerOphestra <cat@gensokyo.uk>2025-03-14 02:12:35 +0900
commit2eff47009102d53844906aa90fb2b8eddae78c1b (patch)
treefce33594aa17c9847295cd86fe469a7d5c13d437 /internal/sandbox/sequential.go
parenta092b042abca15ce3ba9def9b502d8a7cb889c1b (diff)
sandbox/mount: pass custom tmpfs name
The tmpfs driver allows arbitrary fsname. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/sandbox/sequential.go')
-rw-r--r--internal/sandbox/sequential.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/sandbox/sequential.go b/internal/sandbox/sequential.go
index 75d62685..719af5f1 100644
--- a/internal/sandbox/sequential.go
+++ b/internal/sandbox/sequential.go
@@ -87,7 +87,7 @@ func (t *MountTmpfs) apply(*InitParams) error {
return fmsg.WrapError(syscall.EBADE,
fmt.Sprintf("size %d out of bounds", t.Size))
}
- return mountTmpfs(t.Path, t.Size, t.Perm)
+ return mountTmpfs("tmpfs", t.Path, t.Size, t.Perm)
}
func (t *MountTmpfs) Is(op Op) bool { vt, ok := op.(*MountTmpfs); return ok && *t == *vt }