aboutsummaryrefslogtreecommitdiffhomepage
path: root/system
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-06-25 03:59:52 +0900
committerOphestra <cat@gensokyo.uk>2025-06-25 04:57:41 +0900
commit87e008d56de974947ebb99c2cc40b25d3c2cf43e (patch)
tree31791911e5226d6ec04e3fac7d91b0bf53e63aa5 /system
parent399207321265307bb15f37d867f9370cd51c82a8 (diff)
treewide: rename to hakurei
Fortify makes little sense for a container tool. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system')
-rw-r--r--system/acl.go2
-rw-r--r--system/acl_test.go16
-rw-r--r--system/dbus.go2
-rw-r--r--system/enablement_test.go2
-rw-r--r--system/mkdir_test.go12
-rw-r--r--system/op_test.go2
-rw-r--r--system/output.go2
-rw-r--r--system/tmpfiles_test.go8
-rw-r--r--system/wayland.go4
-rw-r--r--system/xhost.go2
10 files changed, 26 insertions, 26 deletions
diff --git a/system/acl.go b/system/acl.go
index 381d1eb0..fe44ea5b 100644
--- a/system/acl.go
+++ b/system/acl.go
@@ -6,7 +6,7 @@ import (
"os"
"slices"
- "git.gensokyo.uk/security/fortify/acl"
+ "git.gensokyo.uk/security/hakurei/acl"
)
// UpdatePerm appends an ephemeral acl update Op.
diff --git a/system/acl_test.go b/system/acl_test.go
index 22a33c65..5dcccd1d 100644
--- a/system/acl_test.go
+++ b/system/acl_test.go
@@ -3,7 +3,7 @@ package system
import (
"testing"
- "git.gensokyo.uk/security/fortify/acl"
+ "git.gensokyo.uk/security/hakurei/acl"
)
func TestUpdatePerm(t *testing.T) {
@@ -11,8 +11,8 @@ func TestUpdatePerm(t *testing.T) {
path string
perms []acl.Perm
}{
- {"/run/user/1971/fortify", []acl.Perm{acl.Execute}},
- {"/tmp/fortify.1971/tmpdir/150", []acl.Perm{acl.Read, acl.Write, acl.Execute}},
+ {"/run/user/1971/hakurei", []acl.Perm{acl.Execute}},
+ {"/tmp/hakurei.1971/tmpdir/150", []acl.Perm{acl.Read, acl.Write, acl.Execute}},
}
for _, tc := range testCases {
@@ -29,11 +29,11 @@ func TestUpdatePermType(t *testing.T) {
perms []acl.Perm
tcOp
}{
- {[]acl.Perm{acl.Execute}, tcOp{User, "/tmp/fortify.1971/tmpdir"}},
- {[]acl.Perm{acl.Read, acl.Write, acl.Execute}, tcOp{User, "/tmp/fortify.1971/tmpdir/150"}},
- {[]acl.Perm{acl.Execute}, tcOp{Process, "/run/user/1971/fortify/fcb8a12f7c482d183ade8288c3de78b5"}},
- {[]acl.Perm{acl.Read}, tcOp{Process, "/tmp/fortify.1971/fcb8a12f7c482d183ade8288c3de78b5/passwd"}},
- {[]acl.Perm{acl.Read}, tcOp{Process, "/tmp/fortify.1971/fcb8a12f7c482d183ade8288c3de78b5/group"}},
+ {[]acl.Perm{acl.Execute}, tcOp{User, "/tmp/hakurei.1971/tmpdir"}},
+ {[]acl.Perm{acl.Read, acl.Write, acl.Execute}, tcOp{User, "/tmp/hakurei.1971/tmpdir/150"}},
+ {[]acl.Perm{acl.Execute}, tcOp{Process, "/run/user/1971/hakurei/fcb8a12f7c482d183ade8288c3de78b5"}},
+ {[]acl.Perm{acl.Read}, tcOp{Process, "/tmp/hakurei.1971/fcb8a12f7c482d183ade8288c3de78b5/passwd"}},
+ {[]acl.Perm{acl.Read}, tcOp{Process, "/tmp/hakurei.1971/fcb8a12f7c482d183ade8288c3de78b5/group"}},
{[]acl.Perm{acl.Read, acl.Write, acl.Execute}, tcOp{EWayland, "/run/user/1971/wayland-0"}},
}
diff --git a/system/dbus.go b/system/dbus.go
index b2639a83..f0532c4a 100644
--- a/system/dbus.go
+++ b/system/dbus.go
@@ -9,7 +9,7 @@ import (
"sync"
"syscall"
- "git.gensokyo.uk/security/fortify/dbus"
+ "git.gensokyo.uk/security/hakurei/dbus"
)
var (
diff --git a/system/enablement_test.go b/system/enablement_test.go
index f4f362d2..69d16f76 100644
--- a/system/enablement_test.go
+++ b/system/enablement_test.go
@@ -3,7 +3,7 @@ package system_test
import (
"testing"
- "git.gensokyo.uk/security/fortify/system"
+ "git.gensokyo.uk/security/hakurei/system"
)
func TestEnablementString(t *testing.T) {
diff --git a/system/mkdir_test.go b/system/mkdir_test.go
index 14a47b02..4b00bb35 100644
--- a/system/mkdir_test.go
+++ b/system/mkdir_test.go
@@ -10,10 +10,10 @@ func TestEnsure(t *testing.T) {
name string
perm os.FileMode
}{
- {"/tmp/fortify.1971", 0701},
- {"/tmp/fortify.1971/tmpdir", 0700},
- {"/tmp/fortify.1971/tmpdir/150", 0700},
- {"/run/user/1971/fortify", 0700},
+ {"/tmp/hakurei.1971", 0701},
+ {"/tmp/hakurei.1971/tmpdir", 0700},
+ {"/tmp/hakurei.1971/tmpdir/150", 0700},
+ {"/run/user/1971/hakurei", 0700},
}
for _, tc := range testCases {
t.Run(tc.name+"_"+tc.perm.String(), func(t *testing.T) {
@@ -29,8 +29,8 @@ func TestEphemeral(t *testing.T) {
perm os.FileMode
tcOp
}{
- {0700, tcOp{Process, "/run/user/1971/fortify/ec07546a772a07cde87389afc84ffd13"}},
- {0701, tcOp{Process, "/tmp/fortify.1971/ec07546a772a07cde87389afc84ffd13"}},
+ {0700, tcOp{Process, "/run/user/1971/hakurei/ec07546a772a07cde87389afc84ffd13"}},
+ {0701, tcOp{Process, "/tmp/hakurei.1971/ec07546a772a07cde87389afc84ffd13"}},
}
for _, tc := range testCases {
t.Run(tc.path+"_"+tc.perm.String()+"_"+TypeString(tc.et), func(t *testing.T) {
diff --git a/system/op_test.go b/system/op_test.go
index 5fb1beb0..b5baf149 100644
--- a/system/op_test.go
+++ b/system/op_test.go
@@ -4,7 +4,7 @@ import (
"strconv"
"testing"
- "git.gensokyo.uk/security/fortify/system"
+ "git.gensokyo.uk/security/hakurei/system"
)
func TestNew(t *testing.T) {
diff --git a/system/output.go b/system/output.go
index 8dab60ff..a1d677a1 100644
--- a/system/output.go
+++ b/system/output.go
@@ -1,6 +1,6 @@
package system
-import "git.gensokyo.uk/security/fortify/sandbox"
+import "git.gensokyo.uk/security/hakurei/sandbox"
var msg sandbox.Msg = new(sandbox.DefaultMsg)
diff --git a/system/tmpfiles_test.go b/system/tmpfiles_test.go
index c7402f59..27a21a08 100644
--- a/system/tmpfiles_test.go
+++ b/system/tmpfiles_test.go
@@ -28,8 +28,8 @@ func TestLink(t *testing.T) {
testCases := []struct {
dst, src string
}{
- {"/tmp/fortify.1971/f587afe9fce3c8e1ad5b64deb6c41ad5/pulse-cookie", "/home/ophestra/xdg/config/pulse/cookie"},
- {"/tmp/fortify.1971/62154f708b5184ab01f9dcc2bbe7a33b/pulse-cookie", "/home/ophestra/xdg/config/pulse/cookie"},
+ {"/tmp/hakurei.1971/f587afe9fce3c8e1ad5b64deb6c41ad5/pulse-cookie", "/home/ophestra/xdg/config/pulse/cookie"},
+ {"/tmp/hakurei.1971/62154f708b5184ab01f9dcc2bbe7a33b/pulse-cookie", "/home/ophestra/xdg/config/pulse/cookie"},
}
for _, tc := range testCases {
t.Run("link file "+tc.dst+" from "+tc.src, func(t *testing.T) {
@@ -47,8 +47,8 @@ func TestLinkFileType(t *testing.T) {
tcOp
dst string
}{
- {tcOp{User, "/tmp/fortify.1971/f587afe9fce3c8e1ad5b64deb6c41ad5/pulse-cookie"}, "/home/ophestra/xdg/config/pulse/cookie"},
- {tcOp{Process, "/tmp/fortify.1971/62154f708b5184ab01f9dcc2bbe7a33b/pulse-cookie"}, "/home/ophestra/xdg/config/pulse/cookie"},
+ {tcOp{User, "/tmp/hakurei.1971/f587afe9fce3c8e1ad5b64deb6c41ad5/pulse-cookie"}, "/home/ophestra/xdg/config/pulse/cookie"},
+ {tcOp{Process, "/tmp/hakurei.1971/62154f708b5184ab01f9dcc2bbe7a33b/pulse-cookie"}, "/home/ophestra/xdg/config/pulse/cookie"},
}
for _, tc := range testCases {
t.Run("link file "+tc.dst+" from "+tc.path+" with type "+TypeString(tc.et), func(t *testing.T) {
diff --git a/system/wayland.go b/system/wayland.go
index 7a459ddb..cb547406 100644
--- a/system/wayland.go
+++ b/system/wayland.go
@@ -5,8 +5,8 @@ import (
"fmt"
"os"
- "git.gensokyo.uk/security/fortify/acl"
- "git.gensokyo.uk/security/fortify/sandbox/wl"
+ "git.gensokyo.uk/security/hakurei/acl"
+ "git.gensokyo.uk/security/hakurei/sandbox/wl"
)
// Wayland sets up a wayland socket with a security context attached.
diff --git a/system/xhost.go b/system/xhost.go
index 480cacc7..dcb2eff3 100644
--- a/system/xhost.go
+++ b/system/xhost.go
@@ -3,7 +3,7 @@ package system
import (
"fmt"
- "git.gensokyo.uk/security/fortify/system/internal/xcb"
+ "git.gensokyo.uk/security/hakurei/system/internal/xcb"
)
// ChangeHosts appends an X11 ChangeHosts command Op.