Documentation ¶
Index ¶
- Constants
- type Cache
- type Entries
- type Entry
- type Rule
- func (r *Rule) CanAccess(uid uint32, gids []uint32, fUid, fGid uint32, mMask uint8) bool
- func (r *Rule) Checksum() uint32
- func (r *Rule) ChildAccessACL(mode uint16) *Rule
- func (r *Rule) Decode(buf []byte)
- func (r *Rule) Encode() []byte
- func (r *Rule) GetMode() uint16
- func (r *Rule) InheritPerms(mode uint16)
- func (r *Rule) IsEmpty() bool
- func (r *Rule) IsEqual(other *Rule) bool
- func (r *Rule) IsMinimal() bool
- func (r *Rule) SetMode(mode uint16)
- func (r *Rule) String() string
Constants ¶
View Source
const ( TypeNone = iota TypeAccess TypeDefault )
View Source
const None = 0
View Source
const Version uint8 = 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Put(id uint32, r *Rule) Get(id uint32) *Rule GetAll() map[uint32]*Rule GetId(r *Rule) uint32 Size() int GetMissIds() []uint32 Clear() GetOrPut(r *Rule, currId *uint32) (id uint32, got bool) }
Cache all rules - cache all rules when meta init. - on getfacl failure, read and cache rule from meta. - on setfacl success, read and cache all missed rules from meta. (considered as a low-frequency operation) - concurrent mounts may result in duplicate rules.
type Rule ¶
type Rule struct { Owner uint16 Group uint16 Mask uint16 Other uint16 NamedUsers Entries NamedGroups Entries }
Rule acl rule
func (*Rule) ChildAccessACL ¶
ChildAccessACL return the child node access acl with this default acl
func (*Rule) InheritPerms ¶
InheritPerms from normal permission
Click to show internal directories.
Click to hide internal directories.