Skip to content

Commit a4db8e9

Browse files
committed
Merge pull request #217 from mrunalp/fix_ids
Use unsigned for IDs
2 parents 3633d03 + 7352b37 commit a4db8e9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

config_linux.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ type Linux struct {
1717
// main process.
1818
type User struct {
1919
// UID is the user id.
20-
UID int32 `json:"uid"`
20+
UID uint32 `json:"uid"`
2121
// GID is the group id.
22-
GID int32 `json:"gid"`
22+
GID uint32 `json:"gid"`
2323
// AdditionalGids are additional group ids set for the container's process.
24-
AdditionalGids []int32 `json:"additionalGids"`
24+
AdditionalGids []uint32 `json:"additionalGids"`
2525
}

runtime_config_linux.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ const (
7373
// IDMapping specifies UID/GID mappings
7474
type IDMapping struct {
7575
// HostID is the UID/GID of the host user or group
76-
HostID int32 `json:"hostID"`
76+
HostID uint32 `json:"hostID"`
7777
// ContainerID is the UID/GID of the container's user or group
78-
ContainerID int32 `json:"containerID"`
78+
ContainerID uint32 `json:"containerID"`
7979
// Size is the length of the range of IDs mapped between the two namespaces
80-
Size int32 `json:"size"`
80+
Size uint32 `json:"size"`
8181
}
8282

8383
// Rlimit type and restrictions

0 commit comments

Comments
 (0)