fix link permission checks to emit message in complain mode when profile is missing necessary link permissions

This commit is contained in:
John Johansen 2007-02-22 01:04:50 +00:00
parent 6946b405c1
commit 353f21162e

View file

@ -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);