Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
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
305  If Not new_ctx Then Return -ENOMEM
307  atomic_inc( & Labeled XFRM instance counter )
308  new_ctxp = new_ctx
310  Return 0