函数逻辑报告 |
Source Code:security\selinux\ibpkey.c |
Create Date:2022-07-27 20:41:12 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:sel_ib_pkey_sid_slow - Lookup the SID of a pkey using the policy*@subnet_prefix: subnet prefix*@pkey_num: pkey number*@sid: pkey SID* Description:* This function determines the SID of a pkey by querying the security* policy
函数原型:static int sel_ib_pkey_sid_slow(u64 subnet_prefix, u16 pkey_num, unsigned int *sid)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| u64 | subnet_prefix | |
| u16 | pkey_num | |
| unsigned int * | sid |
| 134 | struct sel_ib_pkey * new = NULL |
| 137 | spin_lock_irqsave( & sel_ib_pkey_lock, flags) |
| 139 | 如果pkey则 |
| 145 | ret等于security_ib_pkey_sid( & selinux_state, subnet_prefix, pkey_num, sid) |
| 158 | PKey number 等于pkey_num |
| 159 | SID of pkey 等于sid |
| 162 | out : |
| 163 | spin_unlock_irqrestore( & sel_ib_pkey_lock, flags) |
| 164 | 返回:ret |
| 名称 | 描述 |
|---|---|
| sel_ib_pkey_sid | sel_ib_pkey_sid - Lookup the SID of a PKEY*@subnet_prefix: subnet_prefix*@pkey_num: pkey number*@sid: pkey SID* Description:* This function determines the SID of a PKEY using the fastest method* possible |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |