Drop support golang 1.5
Signed-off-by: Xiaobing Jiang <s7v7nislands@gmail.com>
This commit is contained in:
parent
f1e19e9744
commit
00ad8e1e56
|
@ -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) {
|
|
||||||
}
|
|
|
@ -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
|
|
||||||
}
|
|
Loading…
Reference in New Issue