aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/system/acl.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/system/acl.go')
-rw-r--r--internal/system/acl.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/system/acl.go b/internal/system/acl.go
index f8f1dc68..efc48842 100644
--- a/internal/system/acl.go
+++ b/internal/system/acl.go
@@ -9,16 +9,20 @@ import (
)
// UpdatePerm appends an ephemeral acl update Op.
-func (sys *I) UpdatePerm(path string, perms ...acl.Perm) {
+func (sys *I) UpdatePerm(path string, perms ...acl.Perm) *I {
sys.UpdatePermType(Process, path, perms...)
+
+ return sys
}
// UpdatePermType appends an acl update Op.
-func (sys *I) UpdatePermType(et Enablement, path string, perms ...acl.Perm) {
+func (sys *I) UpdatePermType(et Enablement, path string, perms ...acl.Perm) *I {
sys.lock.Lock()
defer sys.lock.Unlock()
sys.ops = append(sys.ops, &ACL{et, path, perms})
+
+ return sys
}
type ACL struct {