函数逻辑报告 |
Source Code:security\tomoyo\network.c |
Create Date:2022-07-27 21:14:27 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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.
函数原型:int tomoyo_socket_connect_permission(struct socket *sock, struct sockaddr *addr, int addr_len)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
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 | 如果非family则返回:0 |
697 | 当:type恒等于SOCK_DGRAM |
700 | 退出 |
701 | 当:type恒等于SOCK_STREAM |
702 | 当:type恒等于SOCK_SEQPACKET |
704 | 退出 |
705 | 默认 |
706 | 返回:0 |
名称 | 描述 |
---|---|
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. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |