函数逻辑报告 |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-27 20:33:04 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Check if sctp IPv4/IPv6 addresses are valid for binding or connecting* based on their @optname.
函数原型:static int selinux_sctp_bind_connect(struct sock *sk, int optname, struct sockaddr *address, int addrlen)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct sock * | sk | |
| int | optname | |
| struct sockaddr * | address | |
| int | addrlen |
| 5281 | 如果非selinux_policycap_extsockclass()则返回:0 |
| 5289 | 如果walk_size加sizeof(sa_family_t)大于addrlen则返回:负EINVAL |
| 5296 | len等于sizeof(structsockaddr_in) |
| 5297 | 退出 |
| 5298 | 当:address family, AF_xxx 恒等于IP version 6 |
| 5299 | len等于sizeof(structsockaddr_in6) |
| 5300 | 退出 |
| 5301 | 默认 |
| 5302 | 返回:负EINVAL |
| 5311 | 当:optname恒等于SCTP_PRIMARY_ADDR |
| 5312 | 当:optname恒等于SCTP_SET_PEER_PRIMARY_ADDR |
| 5314 | err等于Range of port numbers used to automatically bind.Need to determine whether we should perform a name_bindpermission check between the socket and the port number. |
| 5315 | 退出 |
| 5317 | 当:optname恒等于CONNECTX requests. |
| 5318 | 当:optname恒等于SCTP_PARAM_SET_PRIMARY |
| 5319 | 当:optname恒等于SCTP_PARAM_ADD_IP |
| 5320 | 当:optname恒等于SCTP_SENDMSG_CONNECT |
| 5347 | 返回:0 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |