函数逻辑报告 |
Source Code:security\selinux\netport.c |
Create Date:2022-07-27 20:40:55 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:sel_netport_sid_slow - Lookup the SID of a network address using the policy*@protocol: protocol*@pnum: port*@sid: port SID* Description:* This function determines the SID of a network port by quering the security* policy
函数原型:static int sel_netport_sid_slow(u8 protocol, u16 pnum, unsigned int *sid)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
u8 | protocol | |
u16 | pnum | |
unsigned int * | sid |
144 | spin_lock_bh( & sel_netport_lock) |
146 | 如果(port != NULL)则 |
152 | ret等于security_port_sid( & selinux_state, protocol, pnum, sid) |
156 | 如果new则 |
163 | out : |
164 | spin_unlock_bh( & sel_netport_lock) |
165 | 如果此条件成立可能性小(为编译器优化)(ret)则打印警告信息("SELinux: failure in %s(), unable to determine network port label\n", __func__) |
168 | 返回:ret |
名称 | 描述 |
---|---|
sel_netport_sid | sel_netport_sid - Lookup the SID of a network port*@protocol: protocol*@pnum: port*@sid: port SID* Description:* This function determines the SID of a network port using the fastest method* possible |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |