From 44ba7a5f02b7575a706a22aac53c8ac608d18f23 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 29 Sep 2025 06:32:15 +0900 Subject: hst/enablement: move bits from system This is part of the hst API, should not be in the implementation package. Signed-off-by: Ophestra --- system/acl.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'system/acl.go') diff --git a/system/acl.go b/system/acl.go index f65ba916..eb0fe8ab 100644 --- a/system/acl.go +++ b/system/acl.go @@ -6,6 +6,7 @@ import ( "os" "slices" + "hakurei.app/hst" "hakurei.app/system/acl" ) @@ -16,19 +17,19 @@ func (sys *I) UpdatePerm(path string, perms ...acl.Perm) *I { } // UpdatePermType maintains [acl.Perms] on a file until its [Enablement] is no longer satisfied. -func (sys *I) UpdatePermType(et Enablement, path string, perms ...acl.Perm) *I { +func (sys *I) UpdatePermType(et hst.Enablement, path string, perms ...acl.Perm) *I { sys.ops = append(sys.ops, &aclUpdateOp{et, path, perms}) return sys } // aclUpdateOp implements [I.UpdatePermType]. type aclUpdateOp struct { - et Enablement + et hst.Enablement path string perms acl.Perms } -func (a *aclUpdateOp) Type() Enablement { return a.et } +func (a *aclUpdateOp) Type() hst.Enablement { return a.et } func (a *aclUpdateOp) apply(sys *I) error { sys.msg.Verbose("applying ACL", a) -- cgit v1.3.1