check_socket_create_access

Function check_socket_create_access 

Source
pub fn check_socket_create_access<L>(
    locked: &mut Locked<L>,
    current_task: &CurrentTask,
    domain: SocketDomain,
    socket_type: SocketType,
    protocol: SocketProtocol,
    kernel_private: bool,
) -> Result<(), Errno>
Expand description

Checks if creating a socket is allowed. Corresponds to the socket_create() LSM hook.