diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-17 15:35:58 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-17 15:39:03 +0900 |
| commit | 6d015a949e27f20c86409c7d78053f0b0493f165 (patch) | |
| tree | 4d2bc1e9596fa30ea03e4c0cc575e6a7a969249d /internal | |
| parent | e9a72490db44426605debd3cc756a7924931d706 (diff) | |
check: move from container
This package is not container specific, and widely used across the project.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
47 files changed, 47 insertions, 47 deletions
diff --git a/internal/dbus/proc.go b/internal/dbus/proc.go index c934e89e..e7af8885 100644 --- a/internal/dbus/proc.go +++ b/internal/dbus/proc.go @@ -8,8 +8,8 @@ import ( "strconv" "syscall" + "hakurei.app/check" "hakurei.app/container" - "hakurei.app/container/check" "hakurei.app/container/seccomp" "hakurei.app/container/std" "hakurei.app/internal/helper" diff --git a/internal/env/env.go b/internal/env/env.go index cdacb203..45fd5fcb 100644 --- a/internal/env/env.go +++ b/internal/env/env.go @@ -6,7 +6,7 @@ import ( "os" "strconv" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/hst" ) diff --git a/internal/env/env_test.go b/internal/env/env_test.go index b3fc3987..8758ca31 100644 --- a/internal/env/env_test.go +++ b/internal/env/env_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" + "hakurei.app/check" "hakurei.app/container" - "hakurei.app/container/check" "hakurei.app/container/fhs" "hakurei.app/container/stub" "hakurei.app/hst" diff --git a/internal/helper/container.go b/internal/helper/container.go index 56a51954..7f088187 100644 --- a/internal/helper/container.go +++ b/internal/helper/container.go @@ -9,8 +9,8 @@ import ( "slices" "sync" + "hakurei.app/check" "hakurei.app/container" - "hakurei.app/container/check" "hakurei.app/internal/helper/proc" "hakurei.app/message" ) diff --git a/internal/helper/container_test.go b/internal/helper/container_test.go index f55da75c..300d17f4 100644 --- a/internal/helper/container_test.go +++ b/internal/helper/container_test.go @@ -6,8 +6,8 @@ import ( "os" "testing" + "hakurei.app/check" "hakurei.app/container" - "hakurei.app/container/check" "hakurei.app/container/fhs" "hakurei.app/internal/helper" ) diff --git a/internal/info/path.go b/internal/info/path.go index 9f96734a..5406f56b 100644 --- a/internal/info/path.go +++ b/internal/info/path.go @@ -3,7 +3,7 @@ package info import ( "log" - "hakurei.app/container/check" + "hakurei.app/check" ) // Absolute paths to the Hakurei installation. diff --git a/internal/info/path_test.go b/internal/info/path_test.go index 3137ee6a..754c634a 100644 --- a/internal/info/path_test.go +++ b/internal/info/path_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - "hakurei.app/container/check" + "hakurei.app/check" ) func TestMustCheckPath(t *testing.T) { diff --git a/internal/outcome/dispatcher.go b/internal/outcome/dispatcher.go index 93adfbb9..e9f75237 100644 --- a/internal/outcome/dispatcher.go +++ b/internal/outcome/dispatcher.go @@ -10,8 +10,8 @@ import ( "os/user" "path/filepath" + "hakurei.app/check" "hakurei.app/container" - "hakurei.app/container/check" "hakurei.app/container/seccomp" "hakurei.app/container/std" "hakurei.app/internal/dbus" diff --git a/internal/outcome/dispatcher_test.go b/internal/outcome/dispatcher_test.go index 84f06c7c..a11fb869 100644 --- a/internal/outcome/dispatcher_test.go +++ b/internal/outcome/dispatcher_test.go @@ -18,8 +18,8 @@ import ( "time" "unsafe" + "hakurei.app/check" "hakurei.app/container" - "hakurei.app/container/check" "hakurei.app/container/seccomp" "hakurei.app/container/std" "hakurei.app/container/stub" diff --git a/internal/outcome/outcome.go b/internal/outcome/outcome.go index c72f688f..98ad718a 100644 --- a/internal/outcome/outcome.go +++ b/internal/outcome/outcome.go @@ -7,8 +7,8 @@ import ( "maps" "strconv" + "hakurei.app/check" "hakurei.app/container" - "hakurei.app/container/check" "hakurei.app/hst" "hakurei.app/internal/acl" "hakurei.app/internal/env" diff --git a/internal/outcome/process.go b/internal/outcome/process.go index be919a63..6ee26f6d 100644 --- a/internal/outcome/process.go +++ b/internal/outcome/process.go @@ -12,8 +12,8 @@ import ( "syscall" "time" + "hakurei.app/check" "hakurei.app/container" - "hakurei.app/container/check" "hakurei.app/container/fhs" "hakurei.app/hst" "hakurei.app/internal/info" diff --git a/internal/outcome/run_test.go b/internal/outcome/run_test.go index 0f58dec6..83e6d98a 100644 --- a/internal/outcome/run_test.go +++ b/internal/outcome/run_test.go @@ -15,8 +15,8 @@ import ( "testing" "time" + "hakurei.app/check" "hakurei.app/container" - "hakurei.app/container/check" "hakurei.app/container/fhs" "hakurei.app/container/seccomp" "hakurei.app/container/std" diff --git a/internal/outcome/shim.go b/internal/outcome/shim.go index 91bd70a4..3f5a86dc 100644 --- a/internal/outcome/shim.go +++ b/internal/outcome/shim.go @@ -13,8 +13,8 @@ import ( "syscall" "time" + "hakurei.app/check" "hakurei.app/container" - "hakurei.app/container/check" "hakurei.app/container/fhs" "hakurei.app/container/seccomp" "hakurei.app/container/std" diff --git a/internal/outcome/spcontainer.go b/internal/outcome/spcontainer.go index 2d6bb78b..307729f4 100644 --- a/internal/outcome/spcontainer.go +++ b/internal/outcome/spcontainer.go @@ -10,8 +10,8 @@ import ( "strconv" "syscall" + "hakurei.app/check" "hakurei.app/container" - "hakurei.app/container/check" "hakurei.app/container/fhs" "hakurei.app/container/seccomp" "hakurei.app/container/std" diff --git a/internal/outcome/spcontainer_test.go b/internal/outcome/spcontainer_test.go index 51a04020..6b3d2b1c 100644 --- a/internal/outcome/spcontainer_test.go +++ b/internal/outcome/spcontainer_test.go @@ -7,8 +7,8 @@ import ( "syscall" "testing" + "hakurei.app/check" "hakurei.app/container" - "hakurei.app/container/check" "hakurei.app/container/fhs" "hakurei.app/container/seccomp" "hakurei.app/container/std" diff --git a/internal/outcome/sppipewire.go b/internal/outcome/sppipewire.go index 96675ebf..f2c38024 100644 --- a/internal/outcome/sppipewire.go +++ b/internal/outcome/sppipewire.go @@ -3,7 +3,7 @@ package outcome import ( "encoding/gob" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/hst" "hakurei.app/internal/pipewire" ) diff --git a/internal/outcome/sppulse.go b/internal/outcome/sppulse.go index 386800bb..d185abae 100644 --- a/internal/outcome/sppulse.go +++ b/internal/outcome/sppulse.go @@ -10,7 +10,7 @@ import ( "strconv" "syscall" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/hst" "hakurei.app/message" ) diff --git a/internal/outcome/sppulse_test.go b/internal/outcome/sppulse_test.go index f3f0635f..9b014470 100644 --- a/internal/outcome/sppulse_test.go +++ b/internal/outcome/sppulse_test.go @@ -7,8 +7,8 @@ import ( "syscall" "testing" + "hakurei.app/check" "hakurei.app/container" - "hakurei.app/container/check" "hakurei.app/container/stub" "hakurei.app/hst" "hakurei.app/internal/acl" diff --git a/internal/outcome/spruntime.go b/internal/outcome/spruntime.go index 727a5be0..1bf26a02 100644 --- a/internal/outcome/spruntime.go +++ b/internal/outcome/spruntime.go @@ -3,7 +3,7 @@ package outcome import ( "encoding/gob" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/container/fhs" "hakurei.app/container/std" "hakurei.app/hst" diff --git a/internal/outcome/sptmpdir.go b/internal/outcome/sptmpdir.go index 9fb3f8d1..44931867 100644 --- a/internal/outcome/sptmpdir.go +++ b/internal/outcome/sptmpdir.go @@ -3,7 +3,7 @@ package outcome import ( "encoding/gob" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/container/fhs" "hakurei.app/container/std" "hakurei.app/hst" diff --git a/internal/outcome/spwayland.go b/internal/outcome/spwayland.go index 55066611..3c60ff10 100644 --- a/internal/outcome/spwayland.go +++ b/internal/outcome/spwayland.go @@ -3,7 +3,7 @@ package outcome import ( "encoding/gob" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/hst" "hakurei.app/internal/acl" "hakurei.app/internal/wayland" diff --git a/internal/outcome/spx11.go b/internal/outcome/spx11.go index 70ab2421..49e5863f 100644 --- a/internal/outcome/spx11.go +++ b/internal/outcome/spx11.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/container/fhs" "hakurei.app/hst" "hakurei.app/internal/acl" diff --git a/internal/pkg/dir.go b/internal/pkg/dir.go index 1d98350f..ca7fc0fc 100644 --- a/internal/pkg/dir.go +++ b/internal/pkg/dir.go @@ -11,7 +11,7 @@ import ( "path/filepath" "syscall" - "hakurei.app/container/check" + "hakurei.app/check" ) // FlatEntry is a directory entry to be encoded for [Flatten]. diff --git a/internal/pkg/exec.go b/internal/pkg/exec.go index c5b8b10d..34837c35 100644 --- a/internal/pkg/exec.go +++ b/internal/pkg/exec.go @@ -15,8 +15,8 @@ import ( "time" "unique" + "hakurei.app/check" "hakurei.app/container" - "hakurei.app/container/check" "hakurei.app/container/fhs" "hakurei.app/container/seccomp" "hakurei.app/container/std" diff --git a/internal/pkg/exec_test.go b/internal/pkg/exec_test.go index 16e5031c..5b0fa765 100644 --- a/internal/pkg/exec_test.go +++ b/internal/pkg/exec_test.go @@ -13,7 +13,7 @@ import ( "testing" "unique" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/container/stub" "hakurei.app/hst" "hakurei.app/internal/pkg" diff --git a/internal/pkg/file_test.go b/internal/pkg/file_test.go index ee5359ee..ca0046ab 100644 --- a/internal/pkg/file_test.go +++ b/internal/pkg/file_test.go @@ -3,7 +3,7 @@ package pkg_test import ( "testing" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/internal/pkg" ) diff --git a/internal/pkg/ir_test.go b/internal/pkg/ir_test.go index c5ffc6dc..a946d60f 100644 --- a/internal/pkg/ir_test.go +++ b/internal/pkg/ir_test.go @@ -6,7 +6,7 @@ import ( "reflect" "testing" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/internal/pkg" ) diff --git a/internal/pkg/net_test.go b/internal/pkg/net_test.go index 5f92c2c0..9f668e71 100644 --- a/internal/pkg/net_test.go +++ b/internal/pkg/net_test.go @@ -10,7 +10,7 @@ import ( "unique" "unsafe" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/internal/pkg" ) diff --git a/internal/pkg/pkg.go b/internal/pkg/pkg.go index 6080fd68..995357e8 100644 --- a/internal/pkg/pkg.go +++ b/internal/pkg/pkg.go @@ -27,7 +27,7 @@ import ( "unique" "unsafe" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/internal/info" "hakurei.app/internal/lockedfile" "hakurei.app/message" diff --git a/internal/pkg/pkg_test.go b/internal/pkg/pkg_test.go index f8a72564..22f99683 100644 --- a/internal/pkg/pkg_test.go +++ b/internal/pkg/pkg_test.go @@ -21,8 +21,8 @@ import ( "unique" "unsafe" + "hakurei.app/check" "hakurei.app/container" - "hakurei.app/container/check" "hakurei.app/container/fhs" "hakurei.app/container/stub" "hakurei.app/internal/pkg" diff --git a/internal/pkg/tar_test.go b/internal/pkg/tar_test.go index 26a67d6c..09e1e4db 100644 --- a/internal/pkg/tar_test.go +++ b/internal/pkg/tar_test.go @@ -12,7 +12,7 @@ import ( "testing" "testing/fstest" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/container/stub" "hakurei.app/internal/pkg" ) diff --git a/internal/pkg/testdata/main.go b/internal/pkg/testdata/main.go index f013f088..b3b6d035 100644 --- a/internal/pkg/testdata/main.go +++ b/internal/pkg/testdata/main.go @@ -12,7 +12,7 @@ import ( "slices" "strings" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/container/fhs" "hakurei.app/vfs" ) diff --git a/internal/rosa/rosa_test.go b/internal/rosa/rosa_test.go index b4578cf3..c0b01a31 100644 --- a/internal/rosa/rosa_test.go +++ b/internal/rosa/rosa_test.go @@ -9,8 +9,8 @@ import ( "syscall" "testing" + "hakurei.app/check" "hakurei.app/container" - "hakurei.app/container/check" "hakurei.app/internal/pkg" "hakurei.app/internal/rosa" "hakurei.app/message" diff --git a/internal/store/segment.go b/internal/store/segment.go index 79f652e7..c2a718ca 100644 --- a/internal/store/segment.go +++ b/internal/store/segment.go @@ -8,7 +8,7 @@ import ( "strconv" "sync" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/hst" "hakurei.app/internal/lockedfile" ) diff --git a/internal/store/segment_test.go b/internal/store/segment_test.go index 67915459..671f27a0 100644 --- a/internal/store/segment_test.go +++ b/internal/store/segment_test.go @@ -12,7 +12,7 @@ import ( "testing" _ "unsafe" // for go:linkname - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/container/stub" "hakurei.app/hst" "hakurei.app/internal/store" diff --git a/internal/store/store.go b/internal/store/store.go index 4fefd5c9..3604521c 100644 --- a/internal/store/store.go +++ b/internal/store/store.go @@ -10,7 +10,7 @@ import ( "sync" "syscall" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/hst" "hakurei.app/internal/lockedfile" ) diff --git a/internal/store/store_test.go b/internal/store/store_test.go index 9abf480e..2210f543 100644 --- a/internal/store/store_test.go +++ b/internal/store/store_test.go @@ -14,7 +14,7 @@ import ( "time" _ "unsafe" // for go:linkname - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/hst" "hakurei.app/internal/store" ) diff --git a/internal/system/acl.go b/internal/system/acl.go index 060d8854..4df0d9c1 100644 --- a/internal/system/acl.go +++ b/internal/system/acl.go @@ -6,7 +6,7 @@ import ( "os" "slices" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/hst" "hakurei.app/internal/acl" ) diff --git a/internal/system/dispatcher.go b/internal/system/dispatcher.go index 88091595..d9a9fdb9 100644 --- a/internal/system/dispatcher.go +++ b/internal/system/dispatcher.go @@ -6,7 +6,7 @@ import ( "log" "os" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/hst" "hakurei.app/internal/acl" "hakurei.app/internal/dbus" diff --git a/internal/system/dispatcher_test.go b/internal/system/dispatcher_test.go index f69422c9..01236e4b 100644 --- a/internal/system/dispatcher_test.go +++ b/internal/system/dispatcher_test.go @@ -9,7 +9,7 @@ import ( "testing" "unsafe" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/container/stub" "hakurei.app/hst" "hakurei.app/internal/acl" diff --git a/internal/system/link.go b/internal/system/link.go index a13adaae..872ac80a 100644 --- a/internal/system/link.go +++ b/internal/system/link.go @@ -3,7 +3,7 @@ package system import ( "fmt" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/hst" ) diff --git a/internal/system/mkdir.go b/internal/system/mkdir.go index f375579c..cff5d662 100644 --- a/internal/system/mkdir.go +++ b/internal/system/mkdir.go @@ -5,7 +5,7 @@ import ( "fmt" "os" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/hst" ) diff --git a/internal/system/pipewire.go b/internal/system/pipewire.go index 2026b2b4..a78cee26 100644 --- a/internal/system/pipewire.go +++ b/internal/system/pipewire.go @@ -5,7 +5,7 @@ import ( "fmt" "io" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/hst" "hakurei.app/internal/acl" "hakurei.app/internal/pipewire" diff --git a/internal/system/system_test.go b/internal/system/system_test.go index f36ff54e..f82aa932 100644 --- a/internal/system/system_test.go +++ b/internal/system/system_test.go @@ -8,7 +8,7 @@ import ( "strconv" "testing" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/container/stub" "hakurei.app/hst" "hakurei.app/internal/xcb" diff --git a/internal/system/wayland.go b/internal/system/wayland.go index 43112784..ada91167 100644 --- a/internal/system/wayland.go +++ b/internal/system/wayland.go @@ -5,7 +5,7 @@ import ( "fmt" "io" - "hakurei.app/container/check" + "hakurei.app/check" "hakurei.app/hst" "hakurei.app/internal/acl" ) diff --git a/internal/wayland/conn.go b/internal/wayland/conn.go index 7aebafb8..0e709bbf 100644 --- a/internal/wayland/conn.go +++ b/internal/wayland/conn.go @@ -5,7 +5,7 @@ import ( "os" "syscall" - "hakurei.app/container/check" + "hakurei.app/check" ) // SecurityContext holds resources associated with a Wayland security_context. diff --git a/internal/wayland/conn_test.go b/internal/wayland/conn_test.go index 148f077b..a884c182 100644 --- a/internal/wayland/conn_test.go +++ b/internal/wayland/conn_test.go @@ -8,7 +8,7 @@ import ( "syscall" "testing" - "hakurei.app/container/check" + "hakurei.app/check" ) func TestSecurityContextClose(t *testing.T) { |
