Function report |
Source Code:security\selinux\xfrm.c |
Create Date:2022-07-28 19:16:50 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:LSM hook implementation that allocates a xfrm_sec_state and populates based* on a secid.
Proto:int selinux_xfrm_state_alloc_acquire(struct xfrm_state *x, struct xfrm_sec_ctx *polsec, unsigned int secid)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct xfrm_state * | x | |
struct xfrm_sec_ctx * | polsec | |
unsigned int | secid |
348 | char * ctx_str = NULL |
351 | If Not polsec Then Return 0 |
357 | rc = security_sid_to_context( & selinux_state, secid, & ctx_str, & str_len) |
362 | ctx = Allocation memory |
363 | If Not ctx Then |
368 | ctx_doi = XFRM_SC_DOI_LSM |
369 | ctx_alg = XFRM_SC_ALG_SELINUX |
374 | Security context = ctx |
375 | atomic_inc( & Labeled XFRM instance counter ) |
376 | out : |
378 | Return rc |
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 |