package acl
import "github.com/coreos/rkt/pkg/acl"
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
- Variables
- type ACL
- func InitACL() (*ACL, error)
- func (a *ACL) AddBaseEntries(path string) error
- func (a *ACL) Free() error
- func (a *ACL) ParseACL(acl string) error
- func (a *ACL) SetFileACLDefault(path string) error
- func (a *ACL) Valid() error
- type Entry
- type Perm
- type Permset
- type Tag
Constants ¶
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 )
Variables ¶
Types ¶
type ACL ¶
type ACL struct {
// contains filtered or unexported fields
}
func InitACL ¶
InitACL dlopens libacl and returns an ACL object if successful.
func (*ACL) AddBaseEntries ¶
AddBaseEntries adds the base ACL entries from the file permissions.
func (*ACL) Free ¶
Free frees libacl's internal structures and closes libacl.
func (*ACL) ParseACL ¶
ParseACL parses a string representation of an ACL.
func (*ACL) SetFileACLDefault ¶
SetFileACLDefault sets the "default" ACL for path.
func (*ACL) Valid ¶
Valid checks whether the ACL is valid.
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
Entry is an entry in an ACL.
type Perm ¶
type Perm int
Perm represents a permission in the e_perm ACL field
type Permset ¶
type Permset struct {
// contains filtered or unexported fields
}
Permset is a set of permissions.
type Tag ¶
type Tag int
Tag represents an ACL e_tag entry
Source Files ¶
- Version
- v1.30.0 (latest)
- Published
- Apr 13, 2018
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 29 minutes ago –
Tools for package owners.