aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/spaccount.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/spaccount.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/spaccount.go')
-rw-r--r--internal/app/spaccount.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/app/spaccount.go b/internal/app/spaccount.go
index 6976e80a..66633d4f 100644
--- a/internal/app/spaccount.go
+++ b/internal/app/spaccount.go
@@ -6,7 +6,6 @@ import (
"syscall"
"hakurei.app/container/fhs"
- "hakurei.app/hst"
)
func init() { gob.Register(spAccountOp{}) }
@@ -14,7 +13,7 @@ func init() { gob.Register(spAccountOp{}) }
// spAccountOp sets up user account emulation inside the container.
type spAccountOp struct{}
-func (s spAccountOp) toSystem(state *outcomeStateSys, _ *hst.Config) error {
+func (s spAccountOp) toSystem(state *outcomeStateSys) error {
const fallbackUsername = "chronos"
// do checks here to fail before fork/exec