diff options
-rw-r--r-- | security/apparmor/domain.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/apparmor/domain.c b/security/apparmor/domain.c index 859abdaac1ea..7bc85c7f4573 100644 --- a/security/apparmor/domain.c +++ b/security/apparmor/domain.c | |||
@@ -443,6 +443,8 @@ int apparmor_bprm_set_creds(struct linux_binprm *bprm) | |||
443 | } else { | 443 | } else { |
444 | error = -ENOENT; | 444 | error = -ENOENT; |
445 | info = "profile not found"; | 445 | info = "profile not found"; |
446 | /* remove MAY_EXEC to audit as failure */ | ||
447 | perms.allow &= ~MAY_EXEC; | ||
446 | } | 448 | } |
447 | } | 449 | } |
448 | } else if (COMPLAIN_MODE(profile)) { | 450 | } else if (COMPLAIN_MODE(profile)) { |