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

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

Type:unsigned int

Parameter:

TypeParameterName
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  If state == 0 Then Return 0
453  If tables[YYTD_ID_EC] Then
455  equiv = EQUIV_TABLE(dfa)
457  When str cycle
458  match_char(state, def, base, next, check, equiv[(u8) * str++])
460  Else
462  When str cycle
463  match_char(state, def, base, next, check, (u8) * str++)
466  Return state
Caller
NameDescribe
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