Function report |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-28 19:22:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:smack_sk_alloc_security - Allocate a socket blob*@sk: the socket*@family: unused*@gfp_flags: memory allocation flags* Assign Smack pointers to current* Returns 0 on success, -ENOMEM is there's no memory
Proto:static int smack_sk_alloc_security(struct sock *sk, int family, gfp_t gfp_flags)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct sock * | sk | |
int | family | |
gfp_t | gfp_flags |
2249 | ssp = 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). |
2257 | inbound label = smack_known_web |
2258 | outbound label = smack_known_web |
2259 | Else |
2260 | inbound label = skp |
2261 | outbound label = skp |
2263 | TCP peer label = NULL |
2265 | sk_security = ssp |
2267 | 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 |