From 00ad8e1e5631e51763016b274a666671823b0819 Mon Sep 17 00:00:00 2001 From: s7v7nislands Date: Tue, 12 Sep 2017 20:56:51 +0800 Subject: [PATCH] Drop support golang 1.5 Signed-off-by: Xiaobing Jiang --- libcontainer/compat_1.5_linux.go | 10 ---------- libcontainer/setgroups_linux.go | 11 ----------- 2 files changed, 21 deletions(-) delete mode 100644 libcontainer/compat_1.5_linux.go delete mode 100644 libcontainer/setgroups_linux.go diff --git a/libcontainer/compat_1.5_linux.go b/libcontainer/compat_1.5_linux.go deleted file mode 100644 index c7bdf1f60a0..00000000000 --- a/libcontainer/compat_1.5_linux.go +++ /dev/null @@ -1,10 +0,0 @@ -// +build linux,!go1.5 - -package libcontainer - -import "syscall" - -// GidMappingsEnableSetgroups was added in Go 1.5, so do nothing when building -// with earlier versions -func enableSetgroups(sys *syscall.SysProcAttr) { -} diff --git a/libcontainer/setgroups_linux.go b/libcontainer/setgroups_linux.go deleted file mode 100644 index c7bdb605aa8..00000000000 --- a/libcontainer/setgroups_linux.go +++ /dev/null @@ -1,11 +0,0 @@ -// +build linux,go1.5 - -package libcontainer - -import "syscall" - -// Set the GidMappingsEnableSetgroups member to true, so the process's -// setgroups proc entry wont be set to 'deny' if GidMappings are set -func enableSetgroups(sys *syscall.SysProcAttr) { - sys.GidMappingsEnableSetgroups = true -}