aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/container_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-10 23:56:45 +0900
committerOphestra <cat@gensokyo.uk>2026-04-10 23:56:45 +0900
commitb39064037625d1757a65913086ec3a247ad5bb29 (patch)
tree7fd59329e779e195aaadab8846996844e5f45974 /container/container_test.go
parentad2c9f36cddfd8adcd06fbe9238d176a8eb89614 (diff)
internal/landlock: relocate from package container
This is not possible to use directly, so remove it from the public API. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/container_test.go')
-rw-r--r--container/container_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/container/container_test.go b/container/container_test.go
index 092a7a37..41d39f68 100644
--- a/container/container_test.go
+++ b/container/container_test.go
@@ -26,6 +26,7 @@ import (
"hakurei.app/fhs"
"hakurei.app/hst"
"hakurei.app/internal/info"
+ "hakurei.app/internal/landlock"
"hakurei.app/internal/params"
"hakurei.app/ldd"
"hakurei.app/message"
@@ -456,7 +457,7 @@ func TestContainer(t *testing.T) {
c.RetainSession = tc.session
c.HostNet = tc.net
if info.CanDegrade {
- if _, err := container.LandlockGetABI(); err != nil {
+ if _, err := landlock.GetABI(); err != nil {
if !errors.Is(err, syscall.ENOSYS) {
t.Fatalf("LandlockGetABI: error = %v", err)
}