acl

package
v0.2.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package acl implements simple ACL manipulation via libacl.

Index

Constants

View Source
const (
	Read    = C.ACL_READ
	Write   = C.ACL_WRITE
	Execute = C.ACL_EXECUTE

	TypeDefault = C.ACL_TYPE_DEFAULT
	TypeAccess  = C.ACL_TYPE_ACCESS

	UndefinedTag = C.ACL_UNDEFINED_TAG
	UserObj      = C.ACL_USER_OBJ
	User         = C.ACL_USER
	GroupObj     = C.ACL_GROUP_OBJ
	Group        = C.ACL_GROUP
	Mask         = C.ACL_MASK
	Other        = C.ACL_OTHER
)

Variables

This section is empty.

Functions

func UpdatePerm

func UpdatePerm(name string, uid int, perms ...Perm) error

Types

type ACL

type ACL struct {
	// contains filtered or unexported fields
}

type Perm

type Perm C.acl_perm_t

type Perms

type Perms []Perm

func (Perms) String

func (ps Perms) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL