函数逻辑报告 | 
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 | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称: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 int | start | |
| const char * | str | 
| 443 | def等于DEFAULT_TABLE(dfa) | 
| 444 | base等于BASE_TABLE(dfa) | 
| 445 | next等于NEXT_TABLE(dfa) | 
| 446 | check等于CHECK_TABLE(dfa) | 
| 449 | 如果state恒等于0则返回:0 | 
| 453 | 如果tables[YYTD_ID_EC]则 | 
| 455 | equiv等于EQUIV_TABLE(dfa) | 
| 460 | 否则 | 
| 466 | 返回:state | 
| 名称 | 描述 | 
|---|---|
| leftmatch_fb | |
| match_component | match 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_match | label_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_perms | aa_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_component | match 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_match | label_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_mnt | Returns 0 on success else element that match failed in, this is the* index into the mnt_info_table above | 
| profile_umount | |
| build_pivotroot | helper fn for transition on pivotroot* Returns: label for transition or ERR_PTR. Does not return NULL | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |