Function report |
Source Code:security\integrity\ima\ima_modsig.c |
Create Date:2022-07-28 19:59:27 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ma_collect_modsig - Calculate the file hash without the appended signature.* Since the modsig is part of the file contents, the hash used in its signature* isn't the same one ordinarily calculated by IMA. Therefore PKCS7 code
Proto:void ima_collect_modsig(struct modsig *modsig, const void *buf, loff_t size)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct modsig * | modsig | |
| const void * | buf | |
| loff_t | size |
| 127 | rc = pkcs7_supply_detached_data(pkcs7_msg, buf, size) |
| 128 | If rc Then Return |
| 132 | rc = pkcs7_get_digest(pkcs7_msg, & This digest will go in the 'd-modsig' field of the IMA template. , & digest_size, & hash_algo) |
| 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 |