From af0899de9640b4336050b07b739818fdc3add08b Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 1 Aug 2025 21:23:52 +0900 Subject: hst/container: mount tmpfs via magic src string There's often good reason to mount tmpfs in the container. Signed-off-by: Ophestra --- hst/container.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'hst') diff --git a/hst/container.go b/hst/container.go index 56229929..9ca14a8b 100644 --- a/hst/container.go +++ b/hst/container.go @@ -6,6 +6,20 @@ import ( "hakurei.app/container/seccomp" ) +const ( + // SourceTmpfs causes tmpfs to be mounted on [FilesystemConfig.Dst] + // when assigned to [FilesystemConfig.Src]. + SourceTmpfs = "tmpfs" + + // TmpfsPerm is the permission bits for tmpfs mount points + // configured through [FilesystemConfig]. + TmpfsPerm = 0755 + + // TmpfsSize is the size for tmpfs mount points + // configured through [FilesystemConfig]. + TmpfsSize = 0 +) + type ( // ContainerConfig describes the container configuration baseline to which the app implementation adds upon. ContainerConfig struct { -- cgit v1.3.1