From 46cd3a28c83e93b5d66c52d06a8366c11910d5c0 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 29 Sep 2025 02:33:10 +0900 Subject: container: remove global msg This frees all container instances of side effects. Signed-off-by: Ophestra --- ldd/exec.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldd/exec.go') diff --git a/ldd/exec.go b/ldd/exec.go index 79083d41..bdd8fa9e 100644 --- a/ldd/exec.go +++ b/ldd/exec.go @@ -22,7 +22,7 @@ var ( msgStaticGlibc = []byte("not a dynamic executable") ) -func Exec(ctx context.Context, p string) ([]*Entry, error) { +func Exec(ctx context.Context, msg container.Msg, p string) ([]*Entry, error) { c, cancel := context.WithTimeout(ctx, lddTimeout) defer cancel() @@ -33,7 +33,7 @@ func Exec(ctx context.Context, p string) ([]*Entry, error) { return nil, err } - z := container.NewCommand(c, toolPath, lddName, p) + z := container.NewCommand(c, msg, toolPath, lddName, p) z.Hostname = "hakurei-" + lddName z.SeccompFlags |= seccomp.AllowMultiarch z.SeccompPresets |= seccomp.PresetStrict -- cgit v1.3.1