mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
fix link permission checks to emit message in complain mode when profile is missing necessary link permissions
This commit is contained in:
parent
6946b405c1
commit
353f21162e
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue