Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oci/caps: refactor, remove unused code, and improved error messages #41459

Merged
merged 7 commits into from Aug 9, 2021

Commits on Aug 4, 2021

  1. oci/caps: remove hack for RHEL6 kernels

    We no longer support these kernels, so we can remove the workaround
    
    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Aug 4, 2021
    Configuration menu
    Copy the full SHA
    9433415 View commit details
    Browse the repository at this point in the history
  2. oci/caps: rename some vars that conflicted with imports / built-ins

    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Aug 4, 2021
    Configuration menu
    Copy the full SHA
    b00b21b View commit details
    Browse the repository at this point in the history
  3. oci/caps: minor optimization in init

    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Aug 4, 2021
    Configuration menu
    Copy the full SHA
    0ec6f7e View commit details
    Browse the repository at this point in the history
  4. oci/caps: generate list of all capabilities on "init"

    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Aug 4, 2021
    Configuration menu
    Copy the full SHA
    d786a52 View commit details
    Browse the repository at this point in the history
  5. oci/caps: use map for capabilities to simplify lookup

    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Aug 4, 2021
    Configuration menu
    Copy the full SHA
    72b1fb5 View commit details
    Browse the repository at this point in the history
  6. oci/caps: improve error message for unsupported capabilities

    A capability can either be invalid, or not supported by the kernel
    on which we're running. This patch changes the error message produced
    to reflect if the capability is invalid/unknown, or a known capability,
    but not supported by the kernel version.
    
    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Aug 4, 2021
    Configuration menu
    Copy the full SHA
    fc3f988 View commit details
    Browse the repository at this point in the history
  7. oci/caps: simplify, and remove types that were not needed

    The `CapabilityMapping` and `Capabilities` types appeared to be only
    used locally, and added unneeded complexity.
    
    This patch removes those types, and simplifies the logic to use a
    map that maps names to `capability.Cap`s
    
    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Aug 4, 2021
    Configuration menu
    Copy the full SHA
    58c4c12 View commit details
    Browse the repository at this point in the history