aboutsummaryrefslogtreecommitdiffhomepage
path: root/system
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-02-17 20:33:18 +0900
committerOphestra <cat@gensokyo.uk>2025-02-17 20:33:18 +0900
commit7e69893264f4b3ee3fc9168a61908552f7fbddac (patch)
treee1fb3bcb000156a2ed80928a9697373d0142aa0c /system
parent38a3e6af03e638f82f72e5659588eaf17c78aafa (diff)
acl: rename UpdatePerms to Update
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system')
-rw-r--r--system/acl.go4
-rw-r--r--system/wayland.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/system/acl.go b/system/acl.go
index 840c3971..8cd49cbd 100644
--- a/system/acl.go
+++ b/system/acl.go
@@ -34,14 +34,14 @@ func (a *ACL) Type() Enablement { return a.et }
func (a *ACL) apply(sys *I) error {
sys.println("applying ACL", a)
- return sys.wrapErrSuffix(acl.UpdatePerm(a.path, sys.uid, a.perms...),
+ return sys.wrapErrSuffix(acl.Update(a.path, sys.uid, a.perms...),
fmt.Sprintf("cannot apply ACL entry to %q:", a.path))
}
func (a *ACL) revert(sys *I, ec *Criteria) error {
if ec.hasType(a) {
sys.println("stripping ACL", a)
- return sys.wrapErrSuffix(acl.UpdatePerm(a.path, sys.uid),
+ return sys.wrapErrSuffix(acl.Update(a.path, sys.uid),
fmt.Sprintf("cannot strip ACL entry from %q:", a.path))
} else {
sys.println("skipping ACL", a)
diff --git a/system/wayland.go b/system/wayland.go
index 11f54d80..70b7dbd2 100644
--- a/system/wayland.go
+++ b/system/wayland.go
@@ -58,7 +58,7 @@ func (w *Wayland) apply(sys *I) error {
} else {
*w.sync = sp
sys.printf("wayland listening on %q", w.dst)
- return sys.wrapErrSuffix(errors.Join(os.Chmod(w.dst, 0), acl.UpdatePerm(w.dst, sys.uid, acl.Read, acl.Write, acl.Execute)),
+ return sys.wrapErrSuffix(errors.Join(os.Chmod(w.dst, 0), acl.Update(w.dst, sys.uid, acl.Read, acl.Write, acl.Execute)),
fmt.Sprintf("cannot chmod socket on %q:", w.dst))
}
}