函数逻辑报告 |
Source Code:security\selinux\netnode.c |
Create Date:2022-07-27 20:40:26 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:sel_netnode_sid_slow - Lookup the SID of a network address using the policy*@addr: the IP address*@family: the address family*@sid: node SID* Description:* This function determines the SID of a network address by quering the* security policy
函数原型:static int sel_netnode_sid_slow(void *addr, u16 family, unsigned int *sid)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| void * | addr | |
| u16 | family | |
| unsigned int * | sid |
| 196 | spin_lock_bh( & sel_netnode_lock) |
| 198 | 如果(node != NULL)则 |
| 207 | ret等于security_node_sid( & selinux_state, PF_INET, addr, sizeof(structin_addr), sid) |
| 209 | 如果new则 IPv4 node address 等于addr |
| 211 | 退出 |
| 213 | ret等于security_node_sid( & selinux_state, PF_INET6, addr, sizeof(structin6_addr), sid) |
| 215 | 如果new则 IPv6 node address 等于addr |
| 217 | 退出 |
| 218 | 默认 |
| 223 | address family 等于family |
| 224 | SID for this node 等于sid |
| 226 | 否则释放内存 |
| 229 | spin_unlock_bh( & sel_netnode_lock) |
| 230 | 如果此条件成立可能性小(为编译器优化)(ret)则打印警告信息("SELinux: failure in %s(), unable to determine network node label\n", __func__) |
| 233 | 返回:ret |
| 名称 | 描述 |
|---|---|
| sel_netnode_sid | sel_netnode_sid - Lookup the SID of a network address*@addr: the IP address*@family: the address family*@sid: node SID* Description:* This function determines the SID of a network address using the fastest* method possible |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |