Capabilities refactor
- Add support for exact list of capabilities, support only OCI model
- Support OCI model on CapAdd and CapDrop but remain backward compatibility
- Create variable locally instead of declaring it at the top
- Use const for magic "ALL" value
- Rename `cap` variable as it overlaps with `cap()` built-in
- Normalize and validate capabilities before use
- Move validation for conflicting options to validateHostConfig()
- TweakCapabilities: simplify logic to calculate capabilities

Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 5ec3138 commit 80d7bfd54d19cc25f4855b4f2e9e4ad2e47f86c0
Olli Janatuinen authored on 16 Dec
Showing 12 changed files
View
api/server/router/container/container_routes.go
View
api/swagger.yaml