Function report |
Source Code:security\tomoyo\network.c |
Create Date:2022-07-28 19:45:41 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:moyo_socket_connect_permission - Check permission for setting the remote address of a socket.*@sock: Pointer to "struct socket".*@addr: Pointer to "struct sockaddr".*@addr_len: Size of @addr.* Returns 0 on success, negative value otherwise.
Proto:int tomoyo_socket_connect_permission(struct socket *sock, struct sockaddr *addr, int addr_len)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct socket * | sock | |
struct sockaddr * | addr | |
int | addr_len |
690 | family = moyo_sock_family - Get socket's family.*@sk: Pointer to "struct sock".* Returns one of PF_INET, PF_INET6, PF_UNIX or 0. |
693 | If Not family Then Return 0 |
697 | Case type == SOCK_DGRAM |
699 | operation = send() operation. |
700 | Break |
701 | Case type == SOCK_STREAM |
702 | Case type == SOCK_SEQPACKET |
704 | Break |
705 | Default |
706 | Return 0 |
Name | Describe |
---|---|
tomoyo_socket_connect | moyo_socket_connect - Check permission for connect().*@sock: Pointer to "struct socket".*@addr: Pointer to "struct sockaddr".*@addr_len: Size of @addr.* Returns 0 on success, negative value otherwise. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |