diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-01 21:23:52 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-01 21:23:52 +0900 |
| commit | af0899de9640b4336050b07b739818fdc3add08b (patch) | |
| tree | dfc84b596e4d256b929ca91978c40db5eca5bdc4 /hst/container.go | |
| parent | 547a2adaa488556f0504e186c5c1dfb0e679c935 (diff) | |
hst/container: mount tmpfs via magic src string
There's often good reason to mount tmpfs in the container.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/container.go')
| -rw-r--r-- | hst/container.go | 14 |
1 files changed, 14 insertions, 0 deletions
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 { |
