| Function report | 
| Source Code: security\selinux\ibpkey.c | Create Date:2022-07-28 19:10:39 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name: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
Proto:static int sel_ib_pkey_sid_slow(u64 subnet_prefix, u16 pkey_num, unsigned int *sid)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| 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 | If pkey Then | 
| 145 | ret = security_ib_pkey_sid( & selinux_state, subnet_prefix, pkey_num, sid) | 
| 153 | new = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). | 
| 158 | PKey number = pkey_num | 
| 159 | SID of pkey = sid | 
| 162 | out : | 
| 163 | spin_unlock_irqrestore( & sel_ib_pkey_lock, flags) | 
| 164 | Return ret | 
| Name | Describe | 
|---|---|
| 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 | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |