Function report |
Source Code:security\selinux\xfrm.c |
Create Date:2022-07-28 19:16:46 |
| 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 copies security data structure from old to new* for policy cloning.
Proto:int selinux_xfrm_policy_clone(struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct xfrm_sec_ctx * | old_ctx | |
| struct xfrm_sec_ctx ** | new_ctxp |
| 300 | If Not old_ctx Then Return 0 |
| 303 | new_ctx = kmemdup - duplicate region of memory*@src: memory region to duplicate*@len: memory region length*@gfp: GFP mask to use* Return: newly allocated copy of @src or %NULL in case of error |
| 307 | atomic_inc( & Labeled XFRM instance counter ) |
| 310 | 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 |