Versions in this module Expand all Collapse all v6 v6.2.0 May 31, 2024 v6.1.0 May 4, 2024 Changes in this version + const IdmapStorageIdmapped — linux/amd64 + const IdmapStorageNone — linux/amd64 + const VFS3FSCapsSupported — linux/amd64 + const VFS3FSCapsUnknown — linux/amd64 + const VFS3FSCapsUnsupported — linux/amd64 + var DefaultFullKernelSet = &Set + var ErrHostIDIsSubID = fmt.Errorf("Host ID is in the range of subids") + var ErrNoSuitableSubmap = fmt.Errorf("Couldn't find a suitable submap") + var ErrNoUserMap = fmt.Errorf("No map found for user") + var ErrSubidUnsupported = fmt.Errorf("System doesn't support subuid/subgid") + var VFS3FSCaps = VFS3FSCapsUnknown — linux/amd64 + func CanIdmapMount(path string, fstype string) bool — linux/amd64 + func GetCaps(path string) ([]byte, error) — linux/amd64 + func SetCaps(path string, caps []byte, uid int64) error — linux/amd64 + func ShiftACL(path string, shiftIds func(uid int64, gid int64) (int64, int64)) error — linux/amd64 + func ShiftOwner(basepath string, path string, uid int, gid int) error — linux/amd64 + func SupportsVFS3FSCaps(prefix string) bool — linux/amd64 + func UnshiftACL(value string, set *Set) (string, error) — linux/amd64 + func UnshiftCaps(value string, set *Set) (string, error) — linux/amd64 + type ByHostID Set + func (s ByHostID) Len() int + func (s ByHostID) Less(i, j int) bool + func (s ByHostID) Swap(i, j int) + type Entry struct + HostID int64 + IsGID bool + IsUID bool + MapRange int64 + NSID int64 + func (e *Entry) Clone() *Entry + func (e *Entry) HostIDsCoveredBy(allowedHostUIDs []Entry, allowedHostGIDs []Entry) bool + func (e *Entry) HostIDsIntersect(i Entry) bool + func (e *Entry) Intersects(i Entry) bool + func (e *Entry) ToLXCString() []string + func (e *Entry) Usable() error + type IdmapStorageType string — linux/amd64 + type Range struct + EndID int64 + IsGID bool + IsUID bool + StartID int64 + func (i *Range) Contains(id int64) bool + type Set struct + Entries []Entry + func NewSetFromCurrentProcess() (*Set, error) + func NewSetFromIncusIDMap(value string) (*Set, error) + func NewSetFromJSON(data string) (*Set, error) + func NewSetFromSystem(rootfs string, username string) (*Set, error) + func (m *Set) AddSafe(i Entry) error + func (m *Set) Append(s string) (*Set, error) + func (m *Set) Equals(other *Set) bool + func (m *Set) FilterPOSIX() *Set + func (m *Set) HostIDsIntersect(i Entry) bool + func (m *Set) Includes(sub *Set) bool + func (m *Set) Intersects(i Entry) bool + func (m *Set) Len() int + func (m *Set) Less(i, j int) bool + func (m *Set) ShiftFromNS(uid int64, gid int64) (int64, int64) + func (m *Set) ShiftIntoNS(uid int64, gid int64) (int64, int64) + func (m *Set) ShiftPath(p string, skipper ShiftSkipper) error + func (m *Set) Split(minSize int64, maxSize int64, minHost int64, maxHost int64) (*Set, error) + func (m *Set) Swap(i, j int) + func (m *Set) ToGIDMappings() []syscall.SysProcIDMap + func (m *Set) ToJSON() (string, error) + func (m *Set) ToLXCString() []string + func (m *Set) ToUIDMappings() []syscall.SysProcIDMap + func (m *Set) UnshiftPath(p string, skipper ShiftSkipper) error + func (m *Set) Usable() error + func (m *Set) ValidRanges() ([]*Range, error) + type ShiftSkipper func(dir string, absPath string, fi os.FileInfo, newuid int64, newgid int64) error — linux/amd64 Other modules containing this package github.com/lxc/incus