From 6cc2b406a45dee7c3fcb686036efdccc1776368d Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 6 Sep 2025 19:47:58 +0900 Subject: system/link: use syscall dispatcher This enables hardlink op methods to be instrumented. Signed-off-by: Ophestra --- system/acl_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'system/acl_test.go') 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{ -- cgit v1.3.1