| 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: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
Proto:struct aa_dfa *aa_dfa_unpack(void *blob, size_t size, int flags)
Type:struct aa_dfa
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| void * | blob | |
| size_t | size | |
| int | flags | 
| 286 | struct table_header * table = NULL | 
| 287 | dfa = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). | 
| 296 | If size < sizeof(structtable_set_header) Then Go to fail | 
| 307 | If flags != 0 && flags != YYTH_FLAG_DIFF_ENCODE Then Go to fail | 
| 320 | If Not (td_flags & ACCEPT & ACCEPT2 tables gets 6 dedicated flags, YYTD_DATAX define the* first flags(flags)) Then Go to fail | 
| 322 | Break | 
| 323 | Case td_id == YYTD_ID_ACCEPT2 | 
| 324 | If Not (td_flags & ACCEPT2_FLAGS(flags)) Then Go to fail | 
| 326 | Break | 
| 327 | Case td_id == YYTD_ID_BASE | 
| 328 | If td_flags != YYTD_DATA32 Then Go to fail | 
| 330 | Break | 
| 331 | Case td_id == YYTD_ID_DEF | 
| 332 | Case td_id == YYTD_ID_NXT | 
| 333 | Case td_id == YYTD_ID_CHK | 
| 334 | If td_flags != YYTD_DATA16 Then Go to fail | 
| 336 | Break | 
| 337 | Case td_id == YYTD_ID_EC | 
| 338 | If td_flags != YYTD_DATA8 Then Go to fail | 
| 340 | Break | 
| 341 | Default | 
| 342 | Go to fail | 
| 348 | data += table_size(td_lolen, td_flags) | 
| 349 | size -= table_size(td_lolen, td_flags) | 
| 350 | table = NULL | 
| 356 | If flags & DFA_FLAG_VERIFY_STATES Then | 
| 362 | Return dfa | 
| 364 | fail : | 
| Name | Describe | 
|---|---|
| aa_setup_dfa_engine | |
| unpack_dfa | pack_dfa - unpack a file rule dfa*@e: serialized data extent information (NOT NULL)* returns dfa or ERR_PTR or NULL if no dfa | 
| 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 |