Versions in this module Expand all Collapse all v1 v1.0.1 Apr 30, 2024 Changes in this version + const CtxIPCNamespace + type ID int32 + type Key int32 + type Mechanism interface + Destroy func() + Lock func() + Object func() *Object + Unlock func() + type Object struct + CreatorGID auth.KGID + CreatorUID auth.KUID + ID ID + Key Key + Mode linux.FileMode + OwnerGID auth.KGID + OwnerUID auth.KUID + UserNS *auth.UserNamespace + func NewObject(un *auth.UserNamespace, key Key, creator, owner *auth.Credentials, ...) *Object + func (o *Object) CheckOwnership(creds *auth.Credentials) bool + func (o *Object) CheckPermissions(creds *auth.Credentials, req vfs.AccessTypes) bool + func (o *Object) Set(ctx context.Context, perm *linux.IPCPerm) error + type Registry struct + UserNS *auth.UserNamespace + func NewRegistry(userNS *auth.UserNamespace) *Registry + func (r *Registry) DissociateID(id ID) + func (r *Registry) DissociateKey(key Key) + func (r *Registry) Find(ctx context.Context, key Key, mode linux.FileMode, create, exclusive bool) (Mechanism, error) + func (r *Registry) FindByID(id ID) Mechanism + func (r *Registry) ForAllObjects(f func(o Mechanism)) + func (r *Registry) LastIDUsed() ID + func (r *Registry) ObjectCount() int + func (r *Registry) Register(m Mechanism) error + func (r *Registry) Remove(id ID, creds *auth.Credentials) error