aboutsummaryrefslogtreecommitdiffhomepage
path: root/helper/direct.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-14 23:23:57 +0900
committerOphestra <cat@gensokyo.uk>2025-03-14 23:23:57 +0900
commit9e18d1de77b2c9bb24a51c2e99b060c6d06818ee (patch)
tree7141db9055c96a4ae1767304336180c20ca61c0c /helper/direct.go
parent2647a71be1f287e50011a65653b9e9c806627899 (diff)
helper/proc: pass extra files and start
For integration with native container tooling. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'helper/direct.go')
-rw-r--r--helper/direct.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/helper/direct.go b/helper/direct.go
index fcc7b4e8..9e279130 100644
--- a/helper/direct.go
+++ b/helper/direct.go
@@ -9,8 +9,7 @@ import (
"git.gensokyo.uk/security/fortify/helper/proc"
)
-// direct wraps *exec.Cmd and manages status and args fd.
-// Args is always 3 and status if set is always 4.
+// direct starts the helper directly and manages status and args fd.
type direct struct {
lock sync.RWMutex
*helperCmd
@@ -28,7 +27,7 @@ func (h *direct) Start(stat bool) error {
args := h.finalise(stat)
h.Cmd.Args = append(h.Cmd.Args, args...)
- return proc.Fulfill(h.ctx, h.Cmd, h.files, h.extraFiles)
+ return proc.Fulfill(h.ctx, &h.ExtraFiles, h.Cmd.Start, h.files, h.extraFiles)
}
// New initialises a new direct Helper instance with wt as the null-terminated argument writer.