Skip to content

Commit e8d8934

Browse files
committed
proto/config: User as extensions
Signed-off-by: Vincent Batts <[email protected]>
1 parent 9adb993 commit e8d8934

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

proto/config.proto

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,8 @@ message User {
7272
// expected
7373
optional PlatformType type = 1;
7474

75-
optional LinuxUser linux_type = 2;
76-
}
77-
78-
// LinuxUser specifies linux specific user and group information for the
79-
// container's main process.
80-
message LinuxUser {
81-
// Uid is the user id.
82-
optional int32 uid = 1;
83-
// Gid is the group id.
84-
optional int32 gid = 2;
85-
repeated int32 additional_gids = 3;
75+
//optional LinuxUser linux_type = 2;
76+
extensions 100 to 499;
8677
}
8778

8879
// Root contains information about the container's root filesystem on the host.

proto/config_linux.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package oci;
2+
3+
import "config.proto";
4+
5+
// LinuxUser specifies linux specific user and group information for the
6+
// container's main process.
7+
extend oci.User {
8+
// Uid is the user id.
9+
optional int32 uid = 101;
10+
// Gid is the group id.
11+
optional int32 gid = 102;
12+
repeated int32 additional_gids = 103;
13+
}
14+

0 commit comments

Comments
 (0)