1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Setup user groups in lxc driver

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
Alexander Morozov 2015-03-10 09:43:11 -07:00
parent c8c11bfc36
commit 821ec8334f

View file

@ -420,6 +420,9 @@ func setupUser(userSpec string) error {
if err != nil {
return err
}
if err := syscall.Setgroups(execUser.Sgids); err != nil {
return err
}
if err := system.Setgid(execUser.Gid); err != nil {
return err
}