Loading
apparmor: return error on namespace mismatch in verify_header
When profiles in a multi-profile load specify different namesapaces, the audit record is generated but execution continues, causing the function to return success. This violates the load requirement that all profiles must target the same namespace. Add the missing return statement after auditing the error. Reported-by:Qualys Security Advisory <qsa@qualys.com> Fixes: dd51c848 ("apparmor: provide base for multiple profiles to be replaced at once") Signed-off-by:
Massimiliano Pellizzer <massimiliano.pellizzer@canonical.com> Signed-off-by:
John Johansen <john.johansen@canonical.com>