Function report |
Source Code:security\integrity\ima\ima_template_lib.c |
Create Date:2022-07-28 19:59:14 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:This function writes the digest of the file which is expected to match the* digest contained in the file's appended signature.
Proto:int ima_eventdigest_modsig_init(struct ima_event_data *event_data, struct ima_field_data *field_data)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct ima_event_data * | event_data | |
| struct ima_field_data * | field_data |
| 343 | If Not modsig Then Return 0 |
| 346 | If violation Then |
| 351 | Else |
| 354 | rc = ima_get_modsig_digest(modsig, & hash_algo, & cur_digest, & cur_digestsize) |
| 358 | Else if hash_algo == HASH_ALGO__LAST || cur_digestsize == 0 Then Return -EINVAL |
| 363 | Return ima_eventdigest_init_common(cur_digest, cur_digestsize, hash_algo, field_data) |
| 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 |