函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_splitn_fqname

函数原型:const char *aa_splitn_fqname(const char *fqname, size_t n, const char **ns_name, size_t *ns_len)

返回类型:char

参数:

类型参数名称
const char *fqname
size_tn
const char **ns_name
size_t *ns_len
86  end等于fqnamen
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  如果非name则返回:NULL
95  如果name[0]恒等于':'则
96  split等于在字符串中查找字符
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  如果非ns_name则返回:NULL
100  如果split
101  ns_len等于splitns_name
102  如果ns_len恒等于0则 * ns_name = NULL
104  split自加
105  如果endsplit大于1且字符串指定长度比较恒等于0则split加等于2
108  否则
110  name = NULL
111  ns_len等于endns_name
114  如果namename恒等于0则name = NULL
117  返回:name
调用者
名称描述
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