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_test.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_test.go')
| -rw-r--r-- | internal/outcome/spcontainer_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/outcome/spcontainer_test.go b/internal/outcome/spcontainer_test.go index 0334ac07..d6999b9d 100644 --- a/internal/outcome/spcontainer_test.go +++ b/internal/outcome/spcontainer_test.go @@ -72,7 +72,7 @@ func TestSpParamsOp(t *testing.T) { Root(m("/var/lib/hakurei/base/org.debian"), std.BindWritable). Proc(fhs.AbsProc).Tmpfs(hst.AbsPrivateTmp, 1<<12, 0755). DevWritable(fhs.AbsDev, true). - Tmpfs(fhs.AbsDev.Append("shm"), 0, 01777), + Tmpfs(fhs.AbsDevShm, 0, 01777), }, paramsWantEnv(config, map[string]string{ "TERM": "xterm", }, func(t *testing.T, state *outcomeStateParams) { @@ -110,7 +110,7 @@ func TestSpParamsOp(t *testing.T) { Root(m("/var/lib/hakurei/base/org.debian"), std.BindWritable). Proc(fhs.AbsProc).Tmpfs(hst.AbsPrivateTmp, 1<<12, 0755). Bind(fhs.AbsDev, fhs.AbsDev, std.BindWritable|std.BindDevice). - Tmpfs(fhs.AbsDev.Append("shm"), 0, 01777), + Tmpfs(fhs.AbsDevShm, 0, 01777), }, paramsWantEnv(config, map[string]string{ "TERM": "xterm", }, func(t *testing.T, state *outcomeStateParams) { |
