函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__list_lookup_parent

函数原型:static struct aa_profile *__list_lookup_parent(struct list_head *lh, struct aa_profile *profile)

返回类型:struct aa_profile

参数:

类型参数名称
struct list_head *lh
struct aa_profile *profile
707  base等于asename - find the last component of an hname*@name: hname to find the base profile name component of (NOT NULL)* Returns: the tail (base profile name) name component of an hname
708  len等于basehname
712  如果len小于等于2则返回:NULL
714  len减等于2
717  如果new恒等于profile则继续下一循环
719  如果字符串指定长度比较恒等于0且hname[len]恒等于0则返回:new
724  返回:NULL
调用者
名称描述
aa_replace_profilesaa_replace_profiles - replace profile(s) on the profile list*@policy_ns: namespace load is occurring on*@label: label that is attempting to load/replace policy*@mask: permission mask*@udata: serialized data stream (NOT NULL)* unpack and replace a profile