Function report |
Source Code:security\integrity\ima\ima_api.c |
Create Date:2022-07-28 19:58:43 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ma_add_violation - add violation to measurement list.* Violations are flagged in the measurement list with zero hash values.* By extending the PCR with 0xFF's instead of with zeroes, the PCR* value is invalidated.
Proto:void ima_add_violation(struct file *file, const unsigned char *filename, struct integrity_iint_cache *iint, const char *op, const char *cause)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file | |
const unsigned char * | filename | |
struct integrity_iint_cache * | iint | |
const char * | op | |
const char * | cause |
137 | inode = file_inode(file) |
138 | struct ima_event_data event_data = {iint = iint, file = file, filename = filename, violation = cause} |
142 | violation = 1 |
146 | atomic_long_inc( & violations) |
149 | If result < 0 Then |
155 | If result < 0 Then ma_free_template_entry - free an existing template entry |
157 | err_out : |
158 | integrity_audit_msg(PCR invalidation msgs , inode, filename, op, cause, result, 0) |
Name | Describe |
---|---|
ima_rdwr_violation_check | ma_rdwr_violation_check* Only invalidate the PCR for measured files:* - Opening a file for write when already open for read,* results in a time of measure, time of use (ToMToU) error.* - Opening a file for read when already open for write, |
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 |