Update Libcontainer's Cgroup Config: AllowAllDevices to be Nil

This commit is contained in:
Buddha Prakash
2016-08-02 11:04:17 -07:00
parent 216d707f28
commit 49201f6923
2 changed files with 8 additions and 5 deletions

View File

@@ -30,12 +30,13 @@ import (
//
// containerName must be an absolute container name.
func RunInResourceContainer(containerName string) error {
allowAllDevices := true
manager := fs.Manager{
Cgroups: &configs.Cgroup{
Parent: "/",
Name: containerName,
Resources: &configs.Resources{
AllowAllDevices: true,
AllowAllDevices: &allowAllDevices,
},
},
}