use system.Set{u,g}id to fix Set{u,g}id on Go 1.4
Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
This commit is contained in:
parent
d3eb885553
commit
59584e5ba1
|
@ -164,11 +164,11 @@ func SetupUser(u string) error {
|
|||
return fmt.Errorf("setgroups %s", err)
|
||||
}
|
||||
|
||||
if err := syscall.Setgid(gid); err != nil {
|
||||
if err := system.Setgid(gid); err != nil {
|
||||
return fmt.Errorf("setgid %s", err)
|
||||
}
|
||||
|
||||
if err := syscall.Setuid(uid); err != nil {
|
||||
if err := system.Setuid(uid); err != nil {
|
||||
return fmt.Errorf("setuid %s", err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue