check_socket_getpeername_access

Function check_socket_getpeername_access 

Source
pub fn check_socket_getpeername_access(
    current_task: &CurrentTask,
    socket: &Socket,
) -> Result<(), Errno>
Expand description

Checks if the current_task is allowed to get the remote name of socket. Corresponds to the socket_getpeername() LSM hook.