diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-11-14 01:03:26 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-11-14 01:03:26 +0900 |
| commit | 6d14bb814f276fd61ca3ff75cb279815cf1bb95d (patch) | |
| tree | 7d26426940b6205a7b410055db485906a11d28de /internal/outcome/spcontainer.go | |
| parent | be0e387ab07c7d9f1441365a05c4c0141779184a (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to 'internal/outcome/spcontainer.go')
| -rw-r--r-- | internal/outcome/spcontainer.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |
