Function report | 
Source Code:security\apparmor\policy_unpack.c | 
Create Date:2022-07-28 19:52:15 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:verify_head - unpack serialized stream header*@e: serialized data read head (NOT NULL)*@required: whether the header is required or optional*@ns: Returns - namespace if one is specified else NULL (NOT NULL)* Returns: error or 0 if header is good
Proto:static int verify_header(struct aa_ext *e, int required, const char **ns)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct aa_ext * | e | |
| int | required | |
| const char ** | ns | 
| 944 | error = -EPROTONOSUPPORT | 
| 945 | const char * name = NULL | 
| 946 | * ns = NULL | 
| 949 | If Not unpack_u32(e, & version, "version") Then | 
| 950 | If required Then | 
| 961 | If VERSION_LT(version, ase version ) || VERSION_GT(version, v7) Then | 
| 964 | Return error | 
| 968 | If unpack_str(e, & name, "namespace") Then | 
| 984 | Return 0 | 
| Name | Describe | 
|---|---|
| aa_unpack | aa_unpack - unpack packed binary profile(s) data loaded from user space*@udata: user data copied to kmem (NOT NULL)*@lh: list to place unpacked profiles in a aa_repl_ws*@ns: Returns namespace profile is in if specified else NULL (NOT NULL)* Unpack user | 
| 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  |