[PATCH] apparmor: fix operator precidence issue in as_path_link

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] apparmor: fix operator precidence issue in as_path_link

Andy Whitcroft-3
Looks like a previous attempt to fix the operator precidence missed.

Signed-off-by: Andy Whitcroft <[hidden email]>
---
 security/apparmor/file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/security/apparmor/file.c b/security/apparmor/file.c
index bd23a10..7ae834f 100644
--- a/security/apparmor/file.c
+++ b/security/apparmor/file.c
@@ -310,7 +310,7 @@ int aa_path_link(struct aa_profile *profile, struct dentry *old_dentry,
  sa.perms.quiet &= AA_MAY_LINK;
  sa.perms.kill &= AA_MAY_LINK;
 
- if ((!sa.perms.allowed & AA_MAY_LINK)) {
+ if (!(sa.perms.allowed & AA_MAY_LINK)) {
  sa.base.error = -EACCES;
  goto audit;
  }
--
1.6.3.rc3.199.g24398


--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team