Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\lib.c Create Date:2022-07-28 19:50:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:char *aa_split_fqname(char *fqname, char **ns_name)

Type:char

Parameter:

TypeParameterName
char *fqname
char **ns_name
44  name = strim - Removes leading and trailing whitespace from @s.*@s: The string to be stripped.* Note that the first trailing whitespace is replaced with a %NUL-terminator* in the given string @s. Returns a pointer to the first non-whitespace* character in @s.
46  * ns_name = NULL
47  If name[0] == ':' Then
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 = skip_spaces - Removes leading whitespace from @str.*@str: The string to be stripped.* Returns a pointer to the first non-whitespace character in @str.
50  If split Then
52  split++ = 0
53  If strncmp(split, "//", 2) == 0 Then split += 2
56  Else name = NULL
60  If name && name == 0 Then name = NULL
63  Return name