From 832ceadb82948aab9c567896577fd47a5a84fe78 Mon Sep 17 00:00:00 2001 From: Erfan Abdi Date: Sun, 22 Mar 2020 13:45:18 +0430 Subject: [PATCH] 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 --- security/apparmor/domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/apparmor/domain.c b/security/apparmor/domain.c index 53426a6e..52994bc6 100644 --- a/security/apparmor/domain.c +++ b/security/apparmor/domain.c @@ -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)