mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix configuration test for MKNOD
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
parent
5864a3ff77
commit
f80fd5da09
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue