aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/spruntime.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-10 01:20:16 +0900
committerOphestra <cat@gensokyo.uk>2025-10-10 01:21:01 +0900
commit4246256d781f169b86f76d8654f6df5ffc6ddae6 (patch)
tree71f05518ff960873661788c3dcf581eed314322b /internal/app/spruntime.go
parenta941ac025f9f3a942cab04a6f2447e4cab0e616c (diff)
internal/app: hold config address in state
This can be removed eventually as it is barely used. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/spruntime.go')
-rw-r--r--internal/app/spruntime.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/app/spruntime.go b/internal/app/spruntime.go
index 87decd11..54281c1b 100644
--- a/internal/app/spruntime.go
+++ b/internal/app/spruntime.go
@@ -6,7 +6,6 @@ import (
"hakurei.app/container/bits"
"hakurei.app/container/check"
"hakurei.app/container/fhs"
- "hakurei.app/hst"
"hakurei.app/system"
"hakurei.app/system/acl"
)
@@ -16,7 +15,7 @@ func init() { gob.Register(spRuntimeOp{}) }
// spRuntimeOp sets up XDG_RUNTIME_DIR inside the container.
type spRuntimeOp struct{}
-func (s spRuntimeOp) toSystem(state *outcomeStateSys, _ *hst.Config) error {
+func (s spRuntimeOp) toSystem(state *outcomeStateSys) error {
runtimeDir, runtimeDirInst := s.commonPaths(state.outcomeState)
state.sys.Ensure(runtimeDir, 0700)
state.sys.UpdatePermType(system.User, runtimeDir, acl.Execute)