函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_fs_context_dup

函数原型:static int selinux_fs_context_dup(struct fs_context *fc, struct fs_context *src_fc)

返回类型:int

参数:

类型参数名称
struct fs_context *fc
struct fs_context *src_fc
2784  src等于Linux S&M options
2787  如果非src则返回:0
2790  Linux S&M options 等于分配内存并置零
2791  如果非Linux S&M options 则返回:负ENOMEM
2794  opts等于Linux S&M options
2796  如果fscontext
2797  fscontext等于kstrdup - allocate space for and copy an existing string*@s: the string to duplicate*@gfp: the GFP mask used in the kmalloc() call when allocating memory* Return: newly allocated copy of @s or %NULL in case of error
2798  如果非fscontext则返回:负ENOMEM
2801  如果context
2802  context等于kstrdup - allocate space for and copy an existing string*@s: the string to duplicate*@gfp: the GFP mask used in the kmalloc() call when allocating memory* Return: newly allocated copy of @s or %NULL in case of error
2803  如果非context则返回:负ENOMEM
2806  如果rootcontext
2807  rootcontext等于kstrdup - allocate space for and copy an existing string*@s: the string to duplicate*@gfp: the GFP mask used in the kmalloc() call when allocating memory* Return: newly allocated copy of @s or %NULL in case of error
2808  如果非rootcontext则返回:负ENOMEM
2811  如果defcontext
2812  defcontext等于kstrdup - allocate space for and copy an existing string*@s: the string to duplicate*@gfp: the GFP mask used in the kmalloc() call when allocating memory* Return: newly allocated copy of @s or %NULL in case of error
2813  如果非defcontext则返回:负ENOMEM
2816  返回:0