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 --- container/fhs/fhs.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'container/fhs/fhs.go') diff --git a/container/fhs/fhs.go b/container/fhs/fhs.go index 6a3a3041..7e0d36c7 100644 --- a/container/fhs/fhs.go +++ b/container/fhs/fhs.go @@ -29,6 +29,8 @@ const ( // Dev points to the root directory for device nodes. Dev = "/dev/" + // DevShm is the place for POSIX shared memory segments, as created via shm_open(3). + DevShm = "/dev/shm/" // Proc points to a virtual kernel file system exposing the process list and other functionality. Proc = "/proc/" // ProcSys points to a hierarchy below /proc/ that exposes a number of kernel tunables. -- cgit v1.3.1