traefik/vendor/github.com/opencontainers/runc/libcontainer/setgroups_linux.go

12 lines
293 B
Go
Raw Normal View History

2018-01-09 20:46:04 +00: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) {
sys.GidMappingsEnableSetgroups = true
}