container_create: handle cap add/drop ALL
Kubelet can send cap add/drop ALL. Handle that in CRI-O as well. Also, this PR is re-vendoring runtime-tools to fix capabilities add to add caps to _all_ caps set **and** fix a shared memory issue (caps set were initialized with the same slice, if one modifies one slice, it's reflected on the other slices, the vendoring fixes this as well) Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
7f4f630b98
commit
af0a494251
25 changed files with 2057 additions and 283 deletions
1
test/testdata/container_config.json
vendored
1
test/testdata/container_config.json
vendored
|
@ -57,7 +57,6 @@
|
|||
"setgid"
|
||||
],
|
||||
"drop_capabilities": [
|
||||
"audit_read"
|
||||
]
|
||||
},
|
||||
"selinux_options": {
|
||||
|
|
|
@ -57,7 +57,6 @@
|
|||
"setgid"
|
||||
],
|
||||
"drop_capabilities": [
|
||||
"audit_read"
|
||||
]
|
||||
},
|
||||
"selinux_options": {
|
||||
|
|
1
test/testdata/container_config_hostport.json
vendored
1
test/testdata/container_config_hostport.json
vendored
|
@ -59,7 +59,6 @@
|
|||
"setgid"
|
||||
],
|
||||
"drop_capabilities": [
|
||||
"audit_read"
|
||||
]
|
||||
},
|
||||
"selinux_options": {
|
||||
|
|
1
test/testdata/container_config_logging.json
vendored
1
test/testdata/container_config_logging.json
vendored
|
@ -59,7 +59,6 @@
|
|||
"setgid"
|
||||
],
|
||||
"drop_capabilities": [
|
||||
"audit_read"
|
||||
]
|
||||
},
|
||||
"selinux_options": {
|
||||
|
|
|
@ -59,7 +59,6 @@
|
|||
"setgid"
|
||||
],
|
||||
"drop_capabilities": [
|
||||
"audit_read"
|
||||
]
|
||||
},
|
||||
"selinux_options": {
|
||||
|
|
|
@ -59,7 +59,6 @@
|
|||
"setgid"
|
||||
],
|
||||
"drop_capabilities": [
|
||||
"audit_read"
|
||||
]
|
||||
},
|
||||
"selinux_options": {
|
||||
|
|
1
test/testdata/container_config_seccomp.json
vendored
1
test/testdata/container_config_seccomp.json
vendored
|
@ -59,7 +59,6 @@
|
|||
"setgid"
|
||||
],
|
||||
"drop_capabilities": [
|
||||
"audit_read"
|
||||
]
|
||||
},
|
||||
"selinux_options": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue