sandbox/mount: pass custom tmpfs name

The tmpfs driver allows arbitrary fsname.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-03-14 02:12:35 +09:00
parent a092b042ab
commit 2eff470091
2 changed files with 3 additions and 3 deletions

View File

@@ -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 }