Versions in this module Expand all Collapse all v1 v1.0.1 May 17, 2024 Changes in this version + func CheckHostConfig(context *cli.Context, spec *specs.Spec) error + func CheckUidShifting(sysMgr *Mgr, spec *specs.Spec) (sh.IDShiftType, sh.IDShiftType, error) + type Fs struct + Active bool + Id string + Mountpoint string + PreReg bool + Reg bool + func NewFs(id string, enable bool) *Fs + func (fs *Fs) Enabled() bool + func (fs *Fs) GetConfig() error + func (fs *Fs) PreRegister(linuxNamespaces []specs.LinuxNamespace) error + func (fs *Fs) Register(info *FsRegInfo) error + func (fs *Fs) SendCreationTime(t time.Time) error + func (fs *Fs) SendSeccompInit(pid int, id string, seccompFd int32) error + func (fs *Fs) Unregister() error + type FsRegInfo struct + Gid int + Hostname string + IdSize int + Pid int + ProcMaskPaths []string + ProcRoPaths []string + Uid int + type Mgr struct + Active bool + Config *ipcLib.ContainerConfig + Id string + func NewMgr(id string, enable bool) *Mgr + func (mgr *Mgr) ChownClonedRootfs(uidOffset, gidOffset int32) error + func (mgr *Mgr) CloneRootfs() (string, error) + func (mgr *Mgr) Enabled() bool + func (mgr *Mgr) GetClonedRootfs() string + func (mgr *Mgr) IsRootfsCloned() bool + func (mgr *Mgr) Pause() error + func (mgr *Mgr) PrepMounts(uid, gid uint32, prepList []ipcLib.MountPrepInfo) error + func (mgr *Mgr) Register(spec *specs.Spec) error + func (mgr *Mgr) ReqFsState(rootfs string) ([]configs.FsEntry, error) + func (mgr *Mgr) ReqMounts(rootfsUidShiftType sh.IDShiftType, reqList []ipcLib.MountReqInfo) ([]specs.Mount, error) + func (mgr *Mgr) ReqShiftfsMark(mounts []shiftfs.MountPoint) ([]shiftfs.MountPoint, error) + func (mgr *Mgr) ReqSubid(size uint32) (uint32, uint32, error) + func (mgr *Mgr) Resume() error + func (mgr *Mgr) RevertClonedRootfsChown() error + func (mgr *Mgr) Unregister() error + func (mgr *Mgr) Update(userns, netns string, uidMappings, gidMappings []specs.LinuxIDMapping, ...) error + type Sysbox struct + BindMntUidShiftType sh.IDShiftType + Fs *Fs + IDshiftIgnoreList []string + Id string + Mgr *Mgr + OrigMounts []specs.Mount + OrigRootfs string + RootfsCloned bool + RootfsUidShiftType sh.IDShiftType + SwitchDockerDns bool + func NewSysbox(id string, withMgr, withFs bool) *Sysbox