Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\match.c Create Date:2022-07-28 19:51:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:unsigned int aa_dfa_match_len(struct aa_dfa *dfa, unsigned int start, const char *str, int len)

Type:unsigned int

Parameter:

TypeParameterName
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  If state == 0 Then Return 0
413  If tables[YYTD_ID_EC] Then
415  equiv = EQUIV_TABLE(dfa)
416  When len cycle match_char(state, def, base, next, check, equiv[(u8) * str++])
419  Else
421  When len cycle match_char(state, def, base, next, check, (u8) * str++)
425  Return state
Caller
NameDescribe
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