setgroups_linux.go 293 B

123456789101112
  1. // +build linux,go1.5
  2. package libcontainer
  3. import "syscall"
  4. // Set the GidMappingsEnableSetgroups member to true, so the process's
  5. // setgroups proc entry wont be set to 'deny' if GidMappings are set
  6. func enableSetgroups(sys *syscall.SysProcAttr) {
  7. sys.GidMappingsEnableSetgroups = true
  8. }