From 59584e5ba165c7d63b39791aba80be26cdb66421 Mon Sep 17 00:00:00 2001 From: unclejack Date: Mon, 3 Nov 2014 21:50:36 +0200 Subject: [PATCH] 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 (github: unclejack) --- namespaces/init.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/namespaces/init.go b/namespaces/init.go index 879ac21e..8204345b 100644 --- a/namespaces/init.go +++ b/namespaces/init.go @@ -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) }