feat: authenticate Windows command launcher and signal helper

This commit is contained in:
2026-09-06 14:38:16 +00:00
parent 158fd8f3aa
commit 0383155b86
13 changed files with 1270 additions and 189 deletions
@@ -33,7 +33,11 @@ var (
// token/session selection and Job Object containment in the native build; the
// test adapter uses the same shell and output limits without OS handles.
type NativeOptions struct {
Shells ShellPaths
Shells ShellPaths
// ExecutablePath is the canonical rvbox.exe path used for private
// per-command launcher mode. An empty value is resolved from the running
// service executable on Windows.
ExecutablePath string
WorkRoot string
JobProfiles map[string]JobProfile
MaxWrapperBytes uint64
@@ -87,6 +91,7 @@ type execProcess struct {
identity supervisor.EffectiveIdentity
cmd *exec.Cmd
pid uint32
creation uint64
stdin io.WriteCloser
stdout io.ReadCloser
stderr io.ReadCloser
@@ -96,6 +101,7 @@ type execProcess struct {
waitFn func() (int32, bool, error)
killFn func(uint32) error
releaseFn func() error
signalFn func(context.Context) (bool, error)
snapshotFn func() (supervisor.ResourceSnapshot, error)
mu sync.Mutex