diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-03 18:34:55 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-03 19:13:46 +0900 |
| commit | 7b416d47dcb830aab5daa432cf79af5f8bbacaef (patch) | |
| tree | dc6ca9d3cfde243d0659d0cb29fde2d9ee134d12 /internal/app/container_linux.go | |
| parent | 15170735badf9c8c8f13840efcb70bf7ba192b4d (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 'internal/app/container_linux.go')
| -rw-r--r-- | internal/app/container_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/app/container_linux.go b/internal/app/container_linux.go index ce3a5154..35483018 100644 --- a/internal/app/container_linux.go +++ b/internal/app/container_linux.go @@ -85,7 +85,7 @@ func newContainer(s *hst.ContainerConfig, os sys.State, prefix string, uid, gid Tmpfs(hst.Tmp, 1<<12, 0755) if !s.Device { - params.Dev("/dev").Mqueue("/dev/mqueue") + params.Dev("/dev", true) } else { params.Bind("/dev", "/dev", container.BindWritable|container.BindDevice) } |
