mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-09 10:51:03 +01:00
18 lines
515 B
Diff
18 lines
515 B
Diff
---
|
|
security/apparmor/main.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
--- a/security/apparmor/main.c
|
|
+++ b/security/apparmor/main.c
|
|
@@ -68,6 +68,11 @@ static int aa_link_denied(struct aa_prof
|
|
|
|
l_mode = aa_match(profile->file_rules, link);
|
|
t_mode = aa_match(profile->file_rules, target);
|
|
+
|
|
+ /* Ignore valid-profile-transition flags. */
|
|
+ l_mode &= ~AA_CHANGE_PROFILE;
|
|
+ t_mode &= ~AA_CHANGE_PROFILE;
|
|
+
|
|
*request_mask = l_mode | AA_MAY_LINK;
|
|
|
|
/* Link always requires 'l' on the link, a subset of the
|