Tizen_4.0 base
[platform/upstream/docker-engine.git] / vendor / github.com / opencontainers / runc / libcontainer / setgroups_linux.go
1 // +build linux,go1.5
2
3 package libcontainer
4
5 import "syscall"
6
7 // Set the GidMappingsEnableSetgroups member to true, so the process's
8 // setgroups proc entry wont be set to 'deny' if GidMappings are set
9 func enableSetgroups(sys *syscall.SysProcAttr) {
10         sys.GidMappingsEnableSetgroups = true
11 }