From 8accd3b2190d0527ec0d848c877b1a68abaac28c Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 22 Oct 2025 06:55:02 +0900 Subject: internal/app/shim: use syscall dispatcher This enables instrumented testing of the shim. Signed-off-by: Ophestra --- cmd/hakurei/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/hakurei/command.go b/cmd/hakurei/command.go index 2a387607..15973cf7 100644 --- a/cmd/hakurei/command.go +++ b/cmd/hakurei/command.go @@ -50,7 +50,7 @@ func buildCommand(ctx context.Context, msg message.Msg, early *earlyHardeningErr Flag(&flagVerbose, "v", command.BoolFlag(false), "Increase log verbosity"). Flag(&flagJSON, "json", command.BoolFlag(false), "Serialise output in JSON when applicable") - c.Command("shim", command.UsageInternal, func([]string) error { app.ShimMain(); return errSuccess }) + c.Command("shim", command.UsageInternal, func([]string) error { app.Shim(msg); return errSuccess }) c.Command("app", "Load and start container from configuration file", func(args []string) error { if len(args) < 1 { -- cgit v1.3.1