Function report | 
Source Code:security\apparmor\crypto.c | 
Create Date:2022-07-28 19:55:00 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:aa_calc_profile_hash
Proto:int aa_calc_profile_hash(struct aa_profile *profile, unsigned int version, void *start, size_t len)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct aa_profile * | profile | |
| unsigned int | version | |
| void * | start | |
| size_t | len | 
| 66 | le32_version = cpu_to_le32(version) | 
| 68 | If Not whether policy verification hashing is enabled Then Return 0 | 
| 71 | If Not apparmor_tfm Then Return 0 | 
| 74 | hash = 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). | 
| 78 | tfm = apparmor_tfm | 
| 93 | Return 0 | 
| 95 | fail : | 
| 97 | hash = NULL | 
| 99 | Return error | 
| 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  |