aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/acl/deprecated.go
blob: 4119057bf2565c43a7911c02ac8951a6d654eb55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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