pub fn check_socket_sendmsg_access( current_task: &CurrentTask, socket: &Socket, ) -> Result<(), Errno>
Checks if the current_task is allowed to send a message on socket. Corresponds to the socket_sendmsg() LSM hook.
current_task
socket
socket_sendmsg()