Function report |
Source Code:security\apparmor\lsm.c |
Create Date:2022-07-28 19:53:06 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:apparmor_sk_alloc_security - allocate and attach the sk_security field
Proto:static int apparmor_sk_alloc_security(struct sock *sk, int family, gfp_t flags)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct sock * | sk | |
| int | family | |
| gfp_t | flags |
| 776 | ctx = 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). |
| 782 | 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 |