Function report |
Source Code:security\apparmor\match.c |
Create Date:2022-07-28 19:51:04 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:verify_table_headers - verify that the tables headers are as expected*@tables - array of dfa tables to check (NOT NULL)*@flags: flags controlling what type of accept table are acceptable* Assumes dfa has gone through the first pass verification done by
Proto:static int verify_table_headers(struct table_header **tables, int flags)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct table_header ** | tables | |
| int | flags |
| 150 | If Not ( tables[YYTD_ID_DEF] && tables[YYTD_ID_BASE] && tables[YYTD_ID_NXT] && tables[YYTD_ID_CHK]) Then Go to out |
| 155 | state_count = td_lolen |
| 157 | If Not tables[The YYTD_ID are one less than flex table mappings. The flex id* has 1 subtracted at table load time, this allows us to directly use the* ID's as indexes.] Then Go to out |
| 159 | If state_count != td_lolen Then Go to out |
| 162 | If ACCEPT2_FLAGS(flags) Then |
| 163 | If Not tables[YYTD_ID_ACCEPT2] Then Go to out |
| 165 | If state_count != td_lolen Then Go to out |
| 168 | If state_count != td_lolen Then Go to out |
| 172 | trans_count = td_lolen |
| 173 | If trans_count != td_lolen Then Go to out |
| 177 | If tables[YYTD_ID_EC] && td_lolen != 256 Then Go to out |
| 180 | error = 0 |
| 181 | out : |
| 182 | Return error |
| Name | Describe |
|---|---|
| aa_dfa_unpack | aa_dfa_unpack - unpack the binary tables of a serialized dfa*@blob: aligned serialized stream of data to unpack (NOT NULL)*@size: size of data to unpack*@flags: flags controlling what type of accept tables are acceptable |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |