From 274686d10d3386a41f8fb6bc3363269a734afe0e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 29 Oct 2025 03:40:09 +0900 Subject: internal/validate: relocate from app These are free of the dispatcher from internal/app. This change relocates them into their own package. Signed-off-by: Ophestra --- internal/app/spcontainer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/app/spcontainer.go') diff --git a/internal/app/spcontainer.go b/internal/app/spcontainer.go index 65071f7c..d411cb9f 100644 --- a/internal/app/spcontainer.go +++ b/internal/app/spcontainer.go @@ -16,6 +16,7 @@ import ( "hakurei.app/container/fhs" "hakurei.app/container/seccomp" "hakurei.app/hst" + "hakurei.app/internal/validate" "hakurei.app/message" "hakurei.app/system" "hakurei.app/system/acl" @@ -243,7 +244,7 @@ func (s *spFilesystemOp) toSystem(state *outcomeStateSys) error { continue } - if ok, err := deepContainsH(p[0], hidePaths[i]); err != nil { + if ok, err := validate.DeepContainsH(p[0], hidePaths[i]); err != nil { return &hst.AppError{Step: "determine path hiding outcome", Err: err} } else if ok { hidePathMatch[i] = true -- cgit v1.3.1