apparmor: Fix equality comparison

security/apparmor/domain.c:110:17: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
        } else if ((ns == profile->ns)) {

Change-Id: I8d58d4745f7ec41d08ae98cb5b72bbeaf9ad961b
This commit is contained in:
Erfan Abdi 2020-03-22 13:45:18 +04:30 committed by Waldemar Tomme
parent 9873ed49cd
commit 832ceadb82

View File

@ -107,7 +107,7 @@ static struct file_perms change_profile_perms(struct aa_profile *profile,
return perms;
} else if (!profile->file.dfa) {
return nullperms;
} else if ((ns == profile->ns)) {
} else if (ns == profile->ns) {
/* try matching against rules with out namespace prepended */
aa_str_perms(profile->file.dfa, start, name, &cond, &perms);
if (COMBINED_PERM_MASK(perms) & request)