函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_fs_context_dup - Duplicate the security data on fs_context duplication*@fc: The new filesystem context.*@src_fc: The source filesystem context being duplicated.* Returns 0 on success or -ENOMEM on error.

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

返回类型:int

参数:

类型参数名称
struct fs_context *fc
struct fs_context *src_fc
643  src等于Linux S&M options
645  如果非src则返回:0
648  Linux S&M options 等于分配内存并置零
649  如果非Linux S&M options 则返回:负ENOMEM
651  dst等于Linux S&M options
653  如果fsdefault
654  fsdefault等于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
655  如果非fsdefault则返回:负ENOMEM
658  如果fsfloor
659  fsfloor等于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
660  如果非fsfloor则返回:负ENOMEM
663  如果fshat
664  fshat等于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
665  如果非fshat则返回:负ENOMEM
668  如果fsroot
669  fsroot等于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
670  如果非fsroot则返回:负ENOMEM
673  如果fstransmute
674  fstransmute等于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
675  如果非fstransmute则返回:负ENOMEM
678  返回:0