2016-04-15 01:54:02 -07:00
|
|
|
// +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) {
|
2016-04-17 21:13:18 -07:00
|
|
|
sys.GidMappingsEnableSetgroups = false
|
2016-04-15 01:54:02 -07:00
|
|
|
}
|