mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
fix a (u|g)IDMappings type value convertion error
Signed-off-by: lfbzhm <lifubang@acmcoder.com>
This commit is contained in:
@@ -22,16 +22,16 @@ type Mapping struct {
|
||||
func (m Mapping) toSys() (uids, gids []syscall.SysProcIDMap) {
|
||||
for _, uid := range m.UIDMappings {
|
||||
uids = append(uids, syscall.SysProcIDMap{
|
||||
ContainerID: uid.ContainerID,
|
||||
HostID: uid.HostID,
|
||||
Size: uid.Size,
|
||||
ContainerID: int(uid.ContainerID),
|
||||
HostID: int(uid.HostID),
|
||||
Size: int(uid.Size),
|
||||
})
|
||||
}
|
||||
for _, gid := range m.GIDMappings {
|
||||
gids = append(gids, syscall.SysProcIDMap{
|
||||
ContainerID: gid.ContainerID,
|
||||
HostID: gid.HostID,
|
||||
Size: gid.Size,
|
||||
ContainerID: int(gid.ContainerID),
|
||||
HostID: int(gid.HostID),
|
||||
Size: int(gid.Size),
|
||||
})
|
||||
}
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user