aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/acl_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-09-06 19:47:58 +0900
committerOphestra <cat@gensokyo.uk>2025-09-06 19:47:58 +0900
commit6cc2b406a45dee7c3fcb686036efdccc1776368d (patch)
treebc05b1f63856841802d1dc4544ef26e633919c93 /system/acl_test.go
parentfcd0f2ede7e51b92ffbc91e57f6096e29b3b5b7d (diff)
system/link: use syscall dispatcher
This enables hardlink op methods to be instrumented. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/acl_test.go')
-rw-r--r--system/acl_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/system/acl_test.go b/system/acl_test.go
index 910e5a13..5228b902 100644
--- a/system/acl_test.go
+++ b/system/acl_test.go
@@ -54,7 +54,7 @@ func TestACLUpdateOp(t *testing.T) {
}, nil},
})
- checkOpsBuilder(t, "UpdatePerm", []opsBuilderTestCase{
+ checkOpsBuilder(t, "UpdatePermType", []opsBuilderTestCase{
{"simple",
0xdeadbeef,
func(_ *testing.T, sys *I) {
@@ -65,8 +65,7 @@ func TestACLUpdateOp(t *testing.T) {
&aclUpdateOp{Process, "/run/user/1971/hakurei", []acl.Perm{acl.Execute}},
&aclUpdateOp{Process, "/tmp/hakurei.0/tmpdir/150", []acl.Perm{acl.Read, acl.Write, acl.Execute}},
}, stub.Expect{}},
- })
- checkOpsBuilder(t, "UpdatePermType", []opsBuilderTestCase{
+
{"tmpdirp", 0xdeadbeef, func(_ *testing.T, sys *I) {
sys.UpdatePermType(User, "/tmp/hakurei.0/tmpdir", acl.Execute)
}, []Op{