Documentation ¶
Overview ¶
Package acl is a wrapper over libacl that dlopens it instead of being linked to it. The code is based on go-acl by Joseph Naegele (https://github.com/naegelejd/go-acl).
Index ¶
Constants ¶
View Source
const ( TagUserObj Tag = C.ACL_USER_OBJ TagUser = C.ACL_USER TagGroupObj = C.ACL_GROUP_OBJ TagGroup = C.ACL_GROUP TagMask = C.ACL_MASK TagOther = C.ACL_OTHER )
View Source
const ( PermRead Perm = C.ACL_READ PermWrite = C.ACL_WRITE PermExecute = C.ACL_EXECUTE )
Variables ¶
View Source
var ErrSoNotFound = errors.New("unable to open a handle to libacl")
Functions ¶
This section is empty.
Types ¶
type ACL ¶
type ACL struct {
// contains filtered or unexported fields
}
func (*ACL) AddBaseEntries ¶
AddBaseEntries adds the base ACL entries from the file permissions.
func (*ACL) SetFileACLDefault ¶
SetFileACLDefault sets the "default" ACL for path.
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
Entry is an entry in an ACL.
Click to show internal directories.
Click to hide internal directories.