| Function report | 
| Source Code: security\selinux\hooks.c | Create Date:2022-07-28 19:00:49 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:selinux_sk_alloc_security
Proto:static int selinux_sk_alloc_security(struct sock *sk, int family, gfp_t priority)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct sock * | sk | |
| int | family | |
| gfp_t | priority | 
| 5139 | sksec = 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). | 
| 5143 | SID of peer = SECINITSID_UNLABELED | 
| 5147 | sk_security = sksec | 
| 5149 | Return 0 | 
| 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 |