You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkg/op/provider/archive/provider.go calls os.Open and os.OpenFile directly instead of going through the Root interface. This bypasses OS-enforced confinement in confined mode.
Sites
Line 98: os.Open(source) — reading the archive source
Line 138: os.OpenFile(target, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, ...) — tar extraction
Line 186: os.OpenFile(target, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, ...) — zip extraction
Expected
All file I/O in pkg/op/provider/** should go through the Root interface to respect confinement boundaries.
Found during
GoLand inspection cleanup — cross-referencing unhandled Close errors with Root API usage.
Activity
fix(archive): opens route through Root — the reported bypass and the …