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_read_modsig - Read modsig from buf.* Return: 0 on success, error code otherwise.
Proto:int ima_read_modsig(enum ima_hooks func, const void *buf, loff_t buf_len, struct modsig **modsig)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| enum ima_hooks | func | |
| const void * | buf | |
| loff_t | buf_len | |
| struct modsig ** | modsig |
| 70 | If buf_len <= marker_len + size of sig Then Return -ENOENT |
| 73 | p = buf + buf_len - marker_len |
| 74 | If memcmp(p, In stripped ARM and x86-64 modules, ~ is surprisingly rare. , marker_len) Then Return -ENOENT |
| 77 | buf_len -= marker_len |
| 80 | rc = mod_check_sig - check that the given signature is sane*@ms: Signature to check.*@file_len: Size of the file to which @ms is appended.*@name: What is being checked. Used for error messages. |
| 88 | hdr = 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). |
| 92 | pkcs7_msg = pkcs7_parser.c |
| 100 | * This is what will go to the measurement list if the template requires * storing the signature. = sig_len |
| 103 | hash_algo = HASH_ALGO__LAST |
| 107 | Return 0 |
| 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 |