Skip to main content

check_authorization

Function check_authorization 

Source
pub fn check_authorization(
    responder: TaskId,
    target: TaskId,
) -> Result<(), DeliverError>
Expand description

Check whether responder is authorized to reply to target.

Returns Ok(()) if the authorization check passes, or the appropriate DeliverError otherwise. This is used by sys_ipc_reply to validate authorization before performing handle transfer, preventing capability injection into arbitrary processes.