函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\xfrm.c Create Date:2022-07-27 20:46:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:LSM hook implementation that copies security data structure from old to new* for policy cloning.

函数原型:int selinux_xfrm_policy_clone(struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp)

返回类型:int

参数:

类型参数名称
struct xfrm_sec_ctx *old_ctx
struct xfrm_sec_ctx **new_ctxp
300  如果非old_ctx则返回: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  如果非new_ctx则返回:负ENOMEM
307  atomic_inc( & Labeled XFRM instance counter )
308  new_ctxp等于new_ctx
310  返回:0