函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__lookup_parent - lookup the parent of a profile of name @hname*@ns: namespace to lookup profile in (NOT NULL)*@hname: hierarchical profile name to find parent of (NOT NULL)* Lookups up the parent of a fully qualified profile name, the profile* that

函数原型:static struct aa_policy *__lookup_parent(struct aa_ns *ns, const char *hname)

返回类型:struct aa_policy

参数:

类型参数名称
struct aa_ns *ns
const char *hname
364  struct aa_profile * profile = NULL
367  policy等于base
369 split循环
370  profile等于__strn_find_child - find a profile on @head list using substring of @name*@head: list to search (NOT NULL)*@name: name of profile (NOT NULL)*@len: length of @name substring to match* Requires: rcu_read_lock be held* Returns: unrefcounted profile ptr, or
372  如果非profile则返回:NULL
374  policy等于base
375  hname等于split加2
376  split等于strstr - Find the first substring in a %NUL terminated string*@s1: The string to be searched*@s2: The string to search for
378  如果非profile则返回:base
380  返回:base
调用者
名称描述
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