aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/acl.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-17 02:31:46 +0900
committerOphestra <cat@gensokyo.uk>2025-03-17 02:44:07 +0900
commit9a1f8e129fe0f9919981b8a1d345a9b455bd76de (patch)
treee52f33a3908c256aebb30f059cabd40f371a886f /system/acl.go
parentee108603572101ad3c285830e04ee248916b6c5d (diff)
sandbox: wrap fmsg interface
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/acl.go')
-rw-r--r--system/acl.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/system/acl.go b/system/acl.go
index e6ae7d2c..381d1eb0 100644
--- a/system/acl.go
+++ b/system/acl.go
@@ -35,24 +35,24 @@ type ACL struct {
func (a *ACL) Type() Enablement { return a.et }
func (a *ACL) apply(sys *I) error {
- sys.println("applying ACL", a)
- return sys.wrapErrSuffix(acl.Update(a.path, sys.uid, a.perms...),
+ msg.Verbose("applying ACL", a)
+ return 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)
+ msg.Verbose("stripping ACL", a)
err := acl.Update(a.path, sys.uid)
if errors.Is(err, os.ErrNotExist) {
// the ACL is effectively stripped if the file no longer exists
- sys.printf("target of ACL %s no longer exists", a)
+ msg.Verbosef("target of ACL %s no longer exists", a)
err = nil
}
- return sys.wrapErrSuffix(err,
+ return wrapErrSuffix(err,
fmt.Sprintf("cannot strip ACL entry from %q:", a.path))
} else {
- sys.println("skipping ACL", a)
+ msg.Verbose("skipping ACL", a)
return nil
}
}