ingress-nginx-helm/vendor/github.com/opencontainers/runc/libcontainer/setgroups_linux.go
Manuel de Brito Fontes fe616fc9d7 Update go dependencies
2018-08-25 18:53:28 -03:00

11 lines
293 B
Go

// +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
}