Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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)
- Loading branch information