From 87b5c30ef6d5b7b8a10d6a5a8610054c403923e6 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 9 Oct 2025 05:04:08 +0900 Subject: message: relocate from container This package is quite useful. This change allows it to be imported without importing container. Signed-off-by: Ophestra --- ldd/exec.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ldd/exec.go') diff --git a/ldd/exec.go b/ldd/exec.go index 5554d9b0..ef5bf7b8 100644 --- a/ldd/exec.go +++ b/ldd/exec.go @@ -13,6 +13,7 @@ import ( "hakurei.app/container/check" "hakurei.app/container/fhs" "hakurei.app/container/seccomp" + "hakurei.app/message" ) const ( @@ -25,7 +26,7 @@ var ( msgStaticGlibc = []byte("not a dynamic executable") ) -func Exec(ctx context.Context, msg container.Msg, p string) ([]*Entry, error) { +func Exec(ctx context.Context, msg message.Msg, p string) ([]*Entry, error) { c, cancel := context.WithTimeout(ctx, lddTimeout) defer cancel() -- cgit v1.3.1