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_splitn_fqname

Proto:const char *aa_splitn_fqname(const char *fqname, size_t n, const char **ns_name, size_t *ns_len)

Type:char

Parameter:

TypeParameterName
const char *fqname
size_tn
const char **ns_name
size_t *ns_len
86  end = fqname + n
87  name = skipn_spaces - Removes leading whitespace from @str.*@str: The string to be stripped.* Returns a pointer to the first non-whitespace character in @str.* if all whitespace will return NULL
89  * ns_name = NULL
90  ns_len = 0
92  If Not name Then Return NULL
95  If name[0] == ':' Then
96  split = strnchr - Find a character in a length limited string*@s: The string to be searched*@count: The number of characters to be searched*@c: The character to search for* Note that the %NUL-terminator is considered part of the string, and can* be searched for.
97  ns_name = skipn_spaces - Removes leading whitespace from @str.*@str: The string to be stripped.* Returns a pointer to the first non-whitespace character in @str.* if all whitespace will return NULL
98  If Not ns_name Then Return NULL
100  If split Then
101  ns_len = split - ns_name
102  If ns_len == 0 Then * ns_name = NULL
104  split++
105  If end - split > 1 && strncmp(split, "//", 2) == 0 Then split += 2
108  Else
110  name = NULL
111  ns_len = end - ns_name
114  If name && name == 0 Then name = NULL
117  Return name
Caller
NameDescribe
aa_fqlookupn_profile
aa_remove_profilesaa_remove_profiles - remove profile(s) from the system*@policy_ns: namespace the remove is being done from*@subj: label attempting to remove policy*@fqname: name of the profile or namespace to remove (NOT NULL)*@size: size of the name* Remove a profile or
unpack_profilepack_profile - unpack a serialized profile*@e: serialized data extent information (NOT NULL)* NOTE: unpack profile sets audit struct if there is a failure