diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-07 20:06:26 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-07 20:57:58 +0900 |
| commit | 0e6c1a50260de141c50bb50fd3f2b2bcf9a3fe64 (patch) | |
| tree | dfe9c40ceb8c1be8d2728a2db9017bffef174d3d /internal/app/spcontainer.go | |
| parent | d23b4dc9e64d3f00e746c65f3038a1a6de44b8f5 (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 'internal/app/spcontainer.go')
| -rw-r--r-- | internal/app/spcontainer.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/app/spcontainer.go b/internal/app/spcontainer.go index ffbee7db..6dd2bca3 100644 --- a/internal/app/spcontainer.go +++ b/internal/app/spcontainer.go @@ -9,6 +9,7 @@ import ( "hakurei.app/container" "hakurei.app/container/bits" + "hakurei.app/container/check" "hakurei.app/container/seccomp" "hakurei.app/hst" "hakurei.app/system/dbus" @@ -183,7 +184,7 @@ func (s spFilesystemOp) toSystem(state *outcomeStateSys, _ *hst.Config) error { } } - hidePathSource := make([]*container.Absolute, 0, hidePathSourceCount) + hidePathSource := make([]*check.Absolute, 0, hidePathSourceCount) // fs append for _, c := range filesystem { @@ -234,8 +235,8 @@ func (s spFilesystemOp) toSystem(state *outcomeStateSys, _ *hst.Config) error { // copy matched paths for shim for i, ok := range hidePathMatch { if ok { - if a, err := container.NewAbs(hidePaths[i]); err != nil { - var absoluteError *container.AbsoluteError + if a, err := check.NewAbs(hidePaths[i]); err != nil { + var absoluteError *check.AbsoluteError if !errors.As(err, &absoluteError) { return newWithMessageError(absoluteError.Error(), absoluteError) } |
