mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #5528 from crosbymichael/drop-capsyslog
drop CAP_SYSLOG capability
This commit is contained in:
commit
ab0518bfe8
4 changed files with 8 additions and 0 deletions
|
@ -149,6 +149,7 @@ func setupCapabilities(args *execdriver.InitArgs) error {
|
|||
capability.CAP_MAC_OVERRIDE,
|
||||
capability.CAP_MAC_ADMIN,
|
||||
capability.CAP_NET_ADMIN,
|
||||
capability.CAP_SYSLOG,
|
||||
}
|
||||
|
||||
c, err := capability.NewPid(os.Getpid())
|
||||
|
|
|
@ -25,6 +25,7 @@ func New() *libcontainer.Container {
|
|||
libcontainer.GetCapability("MAC_ADMIN"),
|
||||
libcontainer.GetCapability("NET_ADMIN"),
|
||||
libcontainer.GetCapability("MKNOD"),
|
||||
libcontainer.GetCapability("SYSLOG"),
|
||||
},
|
||||
Namespaces: libcontainer.Namespaces{
|
||||
libcontainer.GetNamespace("NEWNS"),
|
||||
|
|
|
@ -91,6 +91,11 @@
|
|||
"value" : 27,
|
||||
"key" : "MKNOD",
|
||||
"enabled" : true
|
||||
},
|
||||
{
|
||||
"value" : 34,
|
||||
"key" : "SYSLOG",
|
||||
"enabled" : false
|
||||
}
|
||||
],
|
||||
"networks" : [
|
||||
|
|
|
@ -53,6 +53,7 @@ var (
|
|||
{Key: "MAC_OVERRIDE", Value: capability.CAP_MAC_OVERRIDE, Enabled: false},
|
||||
{Key: "MAC_ADMIN", Value: capability.CAP_MAC_ADMIN, Enabled: false},
|
||||
{Key: "NET_ADMIN", Value: capability.CAP_NET_ADMIN, Enabled: false},
|
||||
{Key: "SYSLOG", Value: capability.CAP_SYSLOG, Enabled: false},
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue