sandbox: pass params to setup ops
All checks were successful
Test / Create distribution (push) Successful in 20s
Test / Fortify (push) Successful in 2m5s
Test / Fpkg (push) Successful in 3m26s
Test / Data race detector (push) Successful in 3m49s
Test / Flake checks (push) Successful in 55s

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

View File

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