aboutsummaryrefslogtreecommitdiffhomepage
path: root/ldd
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-07 21:29:16 +0900
committerOphestra <cat@gensokyo.uk>2025-10-07 21:29:16 +0900
commit5d18af00077ae6ba8ef686d1fd93d888f69681b2 (patch)
treeeff32422fe3ef095c6a915ccb41c2a10a06990f7 /ldd
parent0e6c1a50260de141c50bb50fd3f2b2bcf9a3fe64 (diff)
container/fhs: move pathname constants
This allows referencing FHS pathnames without importing container. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'ldd')
-rw-r--r--ldd/exec.go7
1 files changed, 4 insertions, 3 deletions
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