|
@@ -807,7 +807,7 @@ int apparmor_bprm_set_creds(struct linux_binprm *bprm)
|
|
|
aa_label_printk(new, GFP_ATOMIC);
|
|
|
dbg_printk("\n");
|
|
|
}
|
|
|
- bprm->unsafe |= AA_SECURE_X_NEEDED;
|
|
|
+ bprm->secureexec = 1;
|
|
|
}
|
|
|
|
|
|
if (label->proxy != new->proxy) {
|
|
@@ -843,23 +843,6 @@ audit:
|
|
|
goto done;
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * apparmor_bprm_secureexec - determine if secureexec is needed
|
|
|
- * @bprm: binprm for exec (NOT NULL)
|
|
|
- *
|
|
|
- * Returns: %1 if secureexec is needed else %0
|
|
|
- */
|
|
|
-int apparmor_bprm_secureexec(struct linux_binprm *bprm)
|
|
|
-{
|
|
|
- /* the decision to use secure exec is computed in set_creds
|
|
|
- * and stored in bprm->unsafe.
|
|
|
- */
|
|
|
- if (bprm->unsafe & AA_SECURE_X_NEEDED)
|
|
|
- return 1;
|
|
|
-
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
/*
|
|
|
* Functions for self directed profile change
|
|
|
*/
|