aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/config.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-07 20:06:26 +0900
committerOphestra <cat@gensokyo.uk>2025-10-07 20:57:58 +0900
commit0e6c1a50260de141c50bb50fd3f2b2bcf9a3fe64 (patch)
treedfe9c40ceb8c1be8d2728a2db9017bffef174d3d /hst/config.go
parentd23b4dc9e64d3f00e746c65f3038a1a6de44b8f5 (diff)
container/check: move absolute pathname
This allows use of absolute pathname values without importing container. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/config.go')
-rw-r--r--hst/config.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/hst/config.go b/hst/config.go
index e661d2d3..7c96874f 100644
--- a/hst/config.go
+++ b/hst/config.go
@@ -5,12 +5,12 @@ import (
"strconv"
"time"
- "hakurei.app/container"
+ "hakurei.app/container/check"
)
const Tmp = "/.hakurei"
-var AbsTmp = container.MustAbs(Tmp)
+var AbsTmp = check.MustAbs(Tmp)
const (
// WaitDelayDefault is used when WaitDelay has its zero value.
@@ -107,12 +107,12 @@ type (
// Defaults to passwd name of target uid or chronos.
Username string `json:"username,omitempty"`
// Pathname of shell in the container filesystem to use for the emulated user.
- Shell *container.Absolute `json:"shell"`
+ Shell *check.Absolute `json:"shell"`
// Directory in the container filesystem to enter and use as the home directory of the emulated user.
- Home *container.Absolute `json:"home"`
+ Home *check.Absolute `json:"home"`
// Pathname to executable file in the container filesystem.
- Path *container.Absolute `json:"path,omitempty"`
+ Path *check.Absolute `json:"path,omitempty"`
// Final args passed to the initial program.
Args []string `json:"args"`
}
@@ -161,11 +161,11 @@ func (config *Config) Validate() error {
// ExtraPermConfig describes an acl update op.
type ExtraPermConfig struct {
- Ensure bool `json:"ensure,omitempty"`
- Path *container.Absolute `json:"path"`
- Read bool `json:"r,omitempty"`
- Write bool `json:"w,omitempty"`
- Execute bool `json:"x,omitempty"`
+ Ensure bool `json:"ensure,omitempty"`
+ Path *check.Absolute `json:"path"`
+ Read bool `json:"r,omitempty"`
+ Write bool `json:"w,omitempty"`
+ Execute bool `json:"x,omitempty"`
}
func (e *ExtraPermConfig) String() string {