函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_split_fqname - split a fqname into a profile and namespace name*@fqname: a full qualified name in namespace profile format (NOT NULL)*@ns_name: pointer to portion of the string containing the ns name (NOT NULL)* Returns: profile name or NULL if one is

函数原型:char *aa_split_fqname(char *fqname, char **ns_name)

返回类型:char

参数:

类型参数名称
char *fqname
char **ns_name
44  name等于删除前导和尾随空格
46  * ns_name = NULL
47  如果name[0]恒等于':'则
48  split等于strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for
49  ns_name等于字符串删除空格
50  如果split
52  split自加等于0
53  如果字符串指定长度比较恒等于0则split加等于2
56  否则name = NULL
60  如果namename恒等于0则name = NULL
63  返回:name