mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
AdditionalGids must include effective group ID
otherwise this one won't be considered for permission checks Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
3e32104e0e
commit
25345f2c04
1 changed files with 1 additions and 0 deletions
|
@ -198,6 +198,7 @@ func getUser(c *container.Container, username string) (specs.User, error) {
|
|||
}
|
||||
usr.UID = uint32(execUser.Uid)
|
||||
usr.GID = uint32(execUser.Gid)
|
||||
usr.AdditionalGids = []uint32{usr.GID}
|
||||
|
||||
var addGroups []int
|
||||
if len(c.HostConfig.GroupAdd) > 0 {
|
||||
|
|
Loading…
Reference in a new issue