From 5d18af00077ae6ba8ef686d1fd93d888f69681b2 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 7 Oct 2025 21:29:16 +0900 Subject: container/fhs: move pathname constants This allows referencing FHS pathnames without importing container. Signed-off-by: Ophestra --- ldd/exec.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ldd') diff --git a/ldd/exec.go b/ldd/exec.go index 77b46ded..5554d9b0 100644 --- a/ldd/exec.go +++ b/ldd/exec.go @@ -11,6 +11,7 @@ import ( "hakurei.app/container" "hakurei.app/container/bits" "hakurei.app/container/check" + "hakurei.app/container/fhs" "hakurei.app/container/seccomp" ) @@ -43,9 +44,9 @@ func Exec(ctx context.Context, msg container.Msg, p string) ([]*Entry, error) { z.Stdout = stdout z.Stderr = stderr z. - Bind(container.AbsFHSRoot, container.AbsFHSRoot, 0). - Proc(container.AbsFHSProc). - Dev(container.AbsFHSDev, false) + Bind(fhs.AbsRoot, fhs.AbsRoot, 0). + Proc(fhs.AbsProc). + Dev(fhs.AbsDev, false) if err := z.Start(); err != nil { return nil, err -- cgit v1.3.1