|
@@ -433,7 +433,7 @@ int apparmor_bprm_set_creds(struct linux_binprm *bprm)
|
|
new_profile = aa_get_newest_profile(ns->unconfined);
|
|
new_profile = aa_get_newest_profile(ns->unconfined);
|
|
info = "ux fallback";
|
|
info = "ux fallback";
|
|
} else {
|
|
} else {
|
|
- error = -ENOENT;
|
|
|
|
|
|
+ error = -EACCES;
|
|
info = "profile not found";
|
|
info = "profile not found";
|
|
/* remove MAY_EXEC to audit as failure */
|
|
/* remove MAY_EXEC to audit as failure */
|
|
perms.allow &= ~MAY_EXEC;
|
|
perms.allow &= ~MAY_EXEC;
|