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 <>
Signed-off-by: Sebastiaan van Stijn <>
1 parent 5ec3138 commit 80d7bfd54d19cc25f4855b4f2e9e4ad2e47f86c0
Olli Janatuinen authored on 16 Dec
Showing 12 changed files