函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_dfa_match - traverse @dfa to find state @str stops at*@dfa: the dfa to match @str against (NOT NULL)*@start: the state of the dfa to start matching in*@str: the null terminated string of bytes to match against the dfa (NOT NULL)* aa_dfa_match will

函数原型:unsigned int aa_dfa_match(struct aa_dfa *dfa, unsigned int start, const char *str)

返回类型:unsigned int

参数:

类型参数名称
struct aa_dfa *dfa
unsigned intstart
const char *str
443  def等于DEFAULT_TABLE(dfa)
444  base等于BASE_TABLE(dfa)
445  next等于NEXT_TABLE(dfa)
446  check等于CHECK_TABLE(dfa)
447  state等于start
449  如果state恒等于0则返回:0
453  如果tables[YYTD_ID_EC]则
455  equiv等于EQUIV_TABLE(dfa)
457 str循环
458  match_char(state, def, base, next, check, equiv[(u8) * str++])
460  否则
462 str循环
463  match_char(state, def, base, next, check, (u8) * str++)
466  返回:state
调用者
名称描述
leftmatch_fb
match_componentmatch a profile and its associated ns component if needed* Assumes visibility test has already been done.* If a subns profile is not to be matched should be prescreened with* visibility test.
label_compound_matchlabel_compound_match - find perms for full compound label*@profile: profile to find perms for*@label: label to check access permissions for*@stack: whether this is a stacking request*@start: state to start match in*@subns: whether to do permission checks
aa_str_permsaa_str_perms - find permission that match @name*@dfa: to match against (MAYBE NULL)*@state: state to start matching in*@name: string to match against dfa (NOT NULL)*@cond: conditions to consider for permission set computation (NOT NULL)*@perms: Returns -
match_componentmatch a profile and its associated ns component if needed* Assumes visibility test has already been done.* If a subns profile is not to be matched should be prescreened with* visibility test.
label_compound_matchlabel_compound_match - find perms for full compound label*@profile: profile to find perms for*@label: label to check access permissions for*@start: state to start match in*@subns: whether to do permission checks on components in a subns*@request:
do_match_mntReturns 0 on success else element that match failed in, this is the* index into the mnt_info_table above
profile_umount
build_pivotroothelper fn for transition on pivotroot* Returns: label for transition or ERR_PTR. Does not return NULL