aboutsummaryrefslogtreecommitdiffhomepage
path: root/ldd/exec.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-03 18:34:55 +0900
committerOphestra <cat@gensokyo.uk>2025-08-03 19:13:46 +0900
commit7b416d47dcb830aab5daa432cf79af5f8bbacaef (patch)
treedc6ca9d3cfde243d0659d0cb29fde2d9ee134d12 /ldd/exec.go
parent15170735badf9c8c8f13840efcb70bf7ba192b4d (diff)
container/ops: merge mqueue and dev Ops
There is no reason to mount mqueue anywhere else, and these Ops usually follow each other. This change merges them. This helps decrease IPC overhead and also enables mounting dev readonly. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'ldd/exec.go')
-rw-r--r--ldd/exec.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldd/exec.go b/ldd/exec.go
index c1593680..538d5446 100644
--- a/ldd/exec.go
+++ b/ldd/exec.go
@@ -28,7 +28,7 @@ func Exec(ctx context.Context, p string) ([]*Entry, error) {
stdout, stderr := new(bytes.Buffer), new(bytes.Buffer)
z.Stdout = stdout
z.Stderr = stderr
- z.Bind("/", "/", 0).Proc("/proc").Dev("/dev")
+ z.Bind("/", "/", 0).Proc("/proc").Dev("/dev", false)
if err := z.Start(); err != nil {
return nil, err