Merge pull request #4992 from crosbymichael/fix-mknod-test

Fix configuration test for MKNOD
This commit is contained in:
Victor Vieux 2014-04-03 12:21:30 -07:00
Родитель 5864a3ff77 f80fd5da09
Коммит 95d07b52b3
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -7,7 +7,7 @@ import (
// New returns the docker default configuration for libcontainer
func New() *libcontainer.Container {
return &libcontainer.Container{
container := &libcontainer.Container{
CapabilitiesMask: libcontainer.Capabilities{
libcontainer.GetCapability("SETPCAP"),
libcontainer.GetCapability("SYS_MODULE"),
@ -23,6 +23,7 @@ func New() *libcontainer.Container {
libcontainer.GetCapability("MAC_OVERRIDE"),
libcontainer.GetCapability("MAC_ADMIN"),
libcontainer.GetCapability("NET_ADMIN"),
libcontainer.GetCapability("MKNOD"),
},
Namespaces: libcontainer.Namespaces{
libcontainer.GetNamespace("NEWNS"),
@ -39,4 +40,6 @@ func New() *libcontainer.Container {
"apparmor_profile": "docker-default",
},
}
container.CapabilitiesMask.Get("MKNOD").Enabled = true
return container
}