socket_socketpair

Function socket_socketpair 

Source
pub fn socket_socketpair(
    current_task: &CurrentTask,
    left: DowncastedFile<'_, SocketFile>,
    right: DowncastedFile<'_, SocketFile>,
) -> Result<(), Errno>
Expand description

Sets the peer security context for each socket in the pair. Corresponds to the socket_socketpair() LSM hook.