|
@@ -410,7 +410,8 @@ int apparmor_bprm_set_creds(struct linux_binprm *bprm)
|
|
|
* exec\0change_profile
|
|
|
*/
|
|
|
state = aa_dfa_null_transition(profile->file.dfa, state);
|
|
|
- cp = change_profile_perms(profile, cxt->onexec->ns, name,
|
|
|
+ cp = change_profile_perms(profile, cxt->onexec->ns,
|
|
|
+ cxt->onexec->base.name,
|
|
|
AA_MAY_ONEXEC, state);
|
|
|
|
|
|
if (!(cp.allow & AA_MAY_ONEXEC))
|