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:11 +00:00
parent ee4c70b261
commit 6946b405c1

View file

@ -1144,9 +1144,7 @@ int sd_link(struct subdomain *sd, struct dentry *link, struct dentry *target)
if (errorcode != 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);