aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/autoetc.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-20 02:37:11 +0900
committerOphestra <cat@gensokyo.uk>2025-08-20 02:37:11 +0900
commitb4c018da8f5280bf3e2716c8ccfea82f4459e80a (patch)
tree9389a3584cdc4a85421d61cc7f803bdee47c3e55 /container/autoetc.go
parent66f52407d3a7f59fd7e2743fe1ccee7ad46df795 (diff)
container/autoetc: do not bypass absolute check
This can now be done cleanly via path function wrappers. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/autoetc.go')
-rw-r--r--container/autoetc.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/container/autoetc.go b/container/autoetc.go
index 23b1a86c..44b5d761 100644
--- a/container/autoetc.go
+++ b/container/autoetc.go
@@ -61,8 +61,7 @@ func (e *AutoEtcOp) apply(state *setupState) error {
return nil
}
-// bypasses abs check, use with caution!
-func (e *AutoEtcOp) hostPath() *Absolute { return &Absolute{FHSEtc + e.hostRel()} }
+func (e *AutoEtcOp) hostPath() *Absolute { return AbsFHSEtc.Append(e.hostRel()) }
func (e *AutoEtcOp) hostRel() string { return ".host/" + e.Prefix }
func (e *AutoEtcOp) Is(op Op) bool {