Drop support golang 1.5

Signed-off-by: Xiaobing Jiang <s7v7nislands@gmail.com>
This commit is contained in:
s7v7nislands 2017-09-12 20:56:51 +08:00
parent f1e19e9744
commit 00ad8e1e56
2 changed files with 0 additions and 21 deletions

View File

@ -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) {
}

View File

@ -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
}