From 6d14bb814f276fd61ca3ff75cb279815cf1bb95d Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 14 Nov 2025 01:03:26 +0900 Subject: container/fhs: add constant for /dev/shm/ This is mounted for the default read-only /dev/ when programs want to use shm_open(3). Defining it here is less error-prone and saves the extra append at runtime. Signed-off-by: Ophestra --- internal/outcome/spcontainer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/outcome/spcontainer.go') diff --git a/internal/outcome/spcontainer.go b/internal/outcome/spcontainer.go index a6eed75b..738d3383 100644 --- a/internal/outcome/spcontainer.go +++ b/internal/outcome/spcontainer.go @@ -116,7 +116,7 @@ func (s *spParamsOp) toContainer(state *outcomeStateParams) error { state.params.Bind(fhs.AbsDev, fhs.AbsDev, std.BindWritable|std.BindDevice) } // /dev is mounted readonly later on, this prevents /dev/shm from going readonly with it - state.params.Tmpfs(fhs.AbsDev.Append("shm"), 0, 01777) + state.params.Tmpfs(fhs.AbsDevShm, 0, 01777) return nil } -- cgit v1.3.1