diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-14 02:11:38 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-14 02:11:38 +0900 |
| commit | a092b042abca15ce3ba9def9b502d8a7cb889c1b (patch) | |
| tree | d08ce3dcae3707992050a2f98fc92382af854c6e /internal/sandbox/sequential.go | |
| parent | e94b09d3372d9034c0da2142adb6293d2f6162eb (diff) | |
sandbox: pass params to setup ops
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/sandbox/sequential.go')
| -rw-r--r-- | internal/sandbox/sequential.go | 6 |
1 files changed, 3 insertions, 3 deletions
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)) |
