diff options
Diffstat (limited to 'system')
| -rw-r--r-- | system/acl.go | 2 | ||||
| -rw-r--r-- | system/acl_test.go | 16 | ||||
| -rw-r--r-- | system/dbus.go | 2 | ||||
| -rw-r--r-- | system/enablement_test.go | 2 | ||||
| -rw-r--r-- | system/mkdir_test.go | 12 | ||||
| -rw-r--r-- | system/op_test.go | 2 | ||||
| -rw-r--r-- | system/output.go | 2 | ||||
| -rw-r--r-- | system/tmpfiles_test.go | 8 | ||||
| -rw-r--r-- | system/wayland.go | 4 | ||||
| -rw-r--r-- | system/xhost.go | 2 |
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. |
