unix_stream_connect

Function unix_stream_connect 

Source
pub fn unix_stream_connect(
    current_task: &CurrentTask,
    client_socket: &Socket,
    listening_socket: &Socket,
    server_socket: &Socket,
) -> Result<(), Errno>
Expand description

Checks if the Unix domain client_socket is allowed to connect to listening_socket, and initialises the peer information in the client and server sockets. Corresponds to the unix_stream_connect() LSM hook.