From 353f21162eb76db3816302102f709c85b6892071 Mon Sep 17 00:00:00 2001 From: John Johansen Date: Thu, 22 Feb 2007 01:04:50 +0000 Subject: [PATCH] fix link permission checks to emit message in complain mode when profile is missing necessary link permissions --- module/apparmor/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/module/apparmor/main.c b/module/apparmor/main.c index 1f25896ad..5459fdf66 100644 --- a/module/apparmor/main.c +++ b/module/apparmor/main.c @@ -1134,9 +1134,7 @@ int aa_link(struct aaprofile *active, struct dentry *link, if (error_code != 0) { /* inner or outer error */ result = 0; - } else if (match) { - result = 1; - } else { + } else if (!match) { /* failed to match */ WARN_ON(iname); WARN_ON(oname);