bprm_creds_for_exec

Function bprm_creds_for_exec 

Source
pub fn bprm_creds_for_exec(
    current_task: &CurrentTask,
    executable: &NamespaceNode,
) -> Result<ResolvedElfState, Errno>
Expand description

Checks if exec is allowed and if so, checks permissions related to the transition (if any) from the pre-exec security context to the post-exec context.

Corresponds to the bprm_creds_for_exec() LSM hook.