函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\network.c Create Date:2022-07-27 21:14:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:moyo_socket_sendmsg_permission - Check permission for sending a datagram.*@sock: Pointer to "struct socket".*@msg: Pointer to "struct msghdr".*@size: Unused.* Returns 0 on success, negative value otherwise.

函数原型:int tomoyo_socket_sendmsg_permission(struct socket *sock, struct msghdr *msg, int size)

返回类型:int

参数:

类型参数名称
struct socket *sock
struct msghdr *msg
intsize
762  family等于moyo_sock_family - Get socket's family.*@sk: Pointer to "struct sock".* Returns one of PF_INET, PF_INET6, PF_UNIX or 0.
763  type等于type
765  如果非ptr to socket address structure 或非familytype不等于SOCK_DGRAMtype不等于SOCK_RAW则返回:0
768  protocol等于type
769  operation等于send() operation.
770  如果family恒等于PF_UNIX则返回:moyo_check_unix_address - Check permission for unix domain socket's operation.*@addr: Pointer to "struct sockaddr".*@addr_len: Size of @addr.*@address: Pointer to "struct tomoyo_addr_info".* Returns 0 on success, negative value otherwise.
774  返回:moyo_check_inet_address - Check permission for inet domain socket's operation.*@addr: Pointer to "struct sockaddr".*@addr_len: Size of @addr.*@port: Port number.*@address: Pointer to "struct tomoyo_addr_info".
调用者
名称描述
tomoyo_socket_sendmsgmoyo_socket_sendmsg - Check permission for sendmsg().*@sock: Pointer to "struct socket".*@msg: Pointer to "struct msghdr".*@size: Size of message.* Returns 0 on success, negative value otherwise.