函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_dfa_match_len - 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 string of bytes to match against the dfa (NOT NULL)*@len: length of the string of bytes

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

返回类型:unsigned int

参数:

类型参数名称
struct aa_dfa *dfa
unsigned intstart
const char *str
intlen
403  def等于DEFAULT_TABLE(dfa)
404  base等于BASE_TABLE(dfa)
405  next等于NEXT_TABLE(dfa)
406  check等于CHECK_TABLE(dfa)
407  state等于start
409  如果state恒等于0则返回:0
413  如果tables[YYTD_ID_EC]则
415  equiv等于EQUIV_TABLE(dfa)
416 len循环match_char(state, def, base, next, check, equiv[(u8) * str++])
419  否则
421 len循环match_char(state, def, base, next, check, (u8) * str++)
425  返回:state
调用者
名称描述
profile_query_cb
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.
aa_xattrs_matchaa_xattrs_match - check whether a file matches the xattrs defined in profile*@bprm: binprm struct for the process to validate*@profile: profile to match against (NOT NULL)*@state: state to start match in* Returns: number of extended attributes that
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.
aa_profile_af_permGeneric af perm