mirror of
https://github.com/genuinetools/reg.git
synced 2024-10-03 22:01:45 -04:00
8e5eba8735
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
11 lines
293 B
Go
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
|
|
}
|