Skip to content

Commit

Permalink
proto/config: User as extensions
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
  • Loading branch information
vbatts committed Sep 15, 2015
1 parent eb1d649 commit c0c399e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
13 changes: 2 additions & 11 deletions proto/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,8 @@ message User {
// expected
optional PlatformType type = 1;

optional LinuxUser linux_type = 2;
}

// LinuxUser specifies linux specific user and group information for the
// container's main process.
message LinuxUser {
// Uid is the user id.
optional int32 uid = 1;
// Gid is the group id.
optional int32 gid = 2;
repeated int32 additional_gids = 3;
//optional LinuxUser linux_type = 2;
extensions 100 to 499;
}

// Root contains information about the container's root filesystem on the host.
Expand Down
14 changes: 14 additions & 0 deletions proto/config_linux.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package oci;

import "config.proto";

// LinuxUser specifies linux specific user and group information for the
// container's main process.
extend oci.User {
// Uid is the user id.
optional int32 uid = 101;
// Gid is the group id.
optional int32 gid = 102;
repeated int32 additional_gids = 103;
}

0 comments on commit c0c399e

Please sign in to comment.