From a092b042abca15ce3ba9def9b502d8a7cb889c1b Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 14 Mar 2025 02:11:38 +0900 Subject: sandbox: pass params to setup ops Signed-off-by: Ophestra --- internal/sandbox/sequential.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/sandbox/sequential.go') diff --git a/internal/sandbox/sequential.go b/internal/sandbox/sequential.go index 445ae8f8..75d62685 100644 --- a/internal/sandbox/sequential.go +++ b/internal/sandbox/sequential.go @@ -20,7 +20,7 @@ type BindMount struct { Flags int } -func (b *BindMount) apply() error { +func (b *BindMount) apply(*InitParams) error { if !path.IsAbs(b.Source) || !path.IsAbs(b.Target) { return fmsg.WrapError(syscall.EBADE, "path is not absolute") @@ -47,7 +47,7 @@ type MountProc struct { Path string } -func (p *MountProc) apply() error { +func (p *MountProc) apply(*InitParams) error { if !path.IsAbs(p.Path) { return fmsg.WrapError(syscall.EBADE, fmt.Sprintf("path %q is not absolute", p.Path)) @@ -78,7 +78,7 @@ type MountTmpfs struct { Perm os.FileMode } -func (t *MountTmpfs) apply() error { +func (t *MountTmpfs) apply(*InitParams) error { if !path.IsAbs(t.Path) { return fmsg.WrapError(syscall.EBADE, fmt.Sprintf("path %q is not absolute", t.Path)) -- cgit v1.3.1