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

[23.0 backport] apparmor: Check if apparmor_parser is available #44942

Merged
merged 1 commit into from Feb 7, 2023

Commits on Feb 7, 2023

  1. apparmor: Check if apparmor_parser is available

    `hostSupports` doesn't check if the apparmor_parser is available.
    It's possible in some environments that the apparmor will be enabled but
    the tool to load the profile is not available which will cause the
    ensureDefaultAppArmorProfile to fail completely.
    
    This patch checks if the apparmor_parser is available. Otherwise the
    function returns early, but still logs a warning to the daemon log.
    
    Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
    (cherry picked from commit ab3fa46)
    vvoland committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    38b70eb View commit details
    Browse the repository at this point in the history