1
0
forked from rosa/hakurei

check: move from container

This package is not container specific, and widely used across the project.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-03-17 15:35:58 +09:00
parent e9a72490db
commit 6d015a949e
103 changed files with 103 additions and 103 deletions

View File

@@ -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"

2
internal/env/env.go vendored
View File

@@ -6,7 +6,7 @@ import (
"os"
"strconv"
"hakurei.app/container/check"
"hakurei.app/check"
"hakurei.app/hst"
)

View File

@@ -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"

View File

@@ -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"
)

View File

@@ -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"
)

View File

@@ -3,7 +3,7 @@ package info
import (
"log"
"hakurei.app/container/check"
"hakurei.app/check"
)
// Absolute paths to the Hakurei installation.

View File

@@ -4,7 +4,7 @@ import (
"reflect"
"testing"
"hakurei.app/container/check"
"hakurei.app/check"
)
func TestMustCheckPath(t *testing.T) {

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -3,7 +3,7 @@ package outcome
import (
"encoding/gob"
"hakurei.app/container/check"
"hakurei.app/check"
"hakurei.app/hst"
"hakurei.app/internal/pipewire"
)

View File

@@ -10,7 +10,7 @@ import (
"strconv"
"syscall"
"hakurei.app/container/check"
"hakurei.app/check"
"hakurei.app/hst"
"hakurei.app/message"
)

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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].

View File

@@ -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"

View File

@@ -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"

View File

@@ -3,7 +3,7 @@ package pkg_test
import (
"testing"
"hakurei.app/container/check"
"hakurei.app/check"
"hakurei.app/internal/pkg"
)

View File

@@ -6,7 +6,7 @@ import (
"reflect"
"testing"
"hakurei.app/container/check"
"hakurei.app/check"
"hakurei.app/internal/pkg"
)

View File

@@ -10,7 +10,7 @@ import (
"unique"
"unsafe"
"hakurei.app/container/check"
"hakurei.app/check"
"hakurei.app/internal/pkg"
)

View File

@@ -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"

View File

@@ -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"

View File

@@ -12,7 +12,7 @@ import (
"testing"
"testing/fstest"
"hakurei.app/container/check"
"hakurei.app/check"
"hakurei.app/container/stub"
"hakurei.app/internal/pkg"
)

View File

@@ -12,7 +12,7 @@ import (
"slices"
"strings"
"hakurei.app/container/check"
"hakurei.app/check"
"hakurei.app/container/fhs"
"hakurei.app/vfs"
)

View File

@@ -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"

View File

@@ -8,7 +8,7 @@ import (
"strconv"
"sync"
"hakurei.app/container/check"
"hakurei.app/check"
"hakurei.app/hst"
"hakurei.app/internal/lockedfile"
)

View File

@@ -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"

View File

@@ -10,7 +10,7 @@ import (
"sync"
"syscall"
"hakurei.app/container/check"
"hakurei.app/check"
"hakurei.app/hst"
"hakurei.app/internal/lockedfile"
)

View File

@@ -14,7 +14,7 @@ import (
"time"
_ "unsafe" // for go:linkname
"hakurei.app/container/check"
"hakurei.app/check"
"hakurei.app/hst"
"hakurei.app/internal/store"
)

View File

@@ -6,7 +6,7 @@ import (
"os"
"slices"
"hakurei.app/container/check"
"hakurei.app/check"
"hakurei.app/hst"
"hakurei.app/internal/acl"
)

View File

@@ -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"

View File

@@ -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"

View File

@@ -3,7 +3,7 @@ package system
import (
"fmt"
"hakurei.app/container/check"
"hakurei.app/check"
"hakurei.app/hst"
)

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"os"
"hakurei.app/container/check"
"hakurei.app/check"
"hakurei.app/hst"
)

View File

@@ -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"

View File

@@ -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"

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"io"
"hakurei.app/container/check"
"hakurei.app/check"
"hakurei.app/hst"
"hakurei.app/internal/acl"
)

View File

@@ -5,7 +5,7 @@ import (
"os"
"syscall"
"hakurei.app/container/check"
"hakurei.app/check"
)
// SecurityContext holds resources associated with a Wayland security_context.

View File

@@ -8,7 +8,7 @@ import (
"syscall"
"testing"
"hakurei.app/container/check"
"hakurei.app/check"
)
func TestSecurityContextClose(t *testing.T) {