aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/acl/deprecated.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/acl/deprecated.go')
-rw-r--r--system/acl/deprecated.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/system/acl/deprecated.go b/system/acl/deprecated.go
new file mode 100644
index 00000000..4119057b
--- /dev/null
+++ b/system/acl/deprecated.go
@@ -0,0 +1,25 @@
+// Package acl exposes the internal/system/acl package.
+//
+// Deprecated: This package will be removed in 0.4.
+package acl
+
+import (
+ _ "unsafe" // for go:linkname
+
+ "hakurei.app/internal/system/acl"
+)
+
+type Perm = acl.Perm
+
+const (
+ Read = acl.Read
+ Write = acl.Write
+ Execute = acl.Execute
+)
+
+// Update replaces ACL_USER entry with qualifier uid.
+//
+//go:linkname Update hakurei.app/internal/system/acl.Update
+func Update(name string, uid int, perms ...Perm) error
+
+type Perms = acl.Perms