Merge pull request #1593 from s7v7nislands/drop_go1.5

Drop support golang 1.5
This commit is contained in:
Michael Crosby 2017-09-12 15:22:00 -04:00 committed by GitHub
commit 593914b8bd
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
}