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>where
L: LockEqualOrBefore<FileOpsCore>,Expand description
Checks if creating a socket is allowed.
Corresponds to the socket_create() LSM hook.