Function report |
Source Code:kernel\auditfilter.c |
Create Date:2022-07-28 11:25:03 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Compare two rules in kernel format. Considered success if rules* don't match.
Proto:static int audit_compare_rule(struct audit_krule *a, struct audit_krule *b)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct audit_krule * | a | |
struct audit_krule * | b |
700 | If flags != flags || pflags != pflags || listnr != listnr || action != action || field_count != field_count Then Return 1 |
707 | When i < field_count cycle |
713 | Case type == security label user |
714 | Case type == security label role |
715 | Case type == security label type |
716 | Case type == security label sensitivity label |
717 | Case type == security label clearance label |
718 | Case type == AUDIT_OBJ_USER |
719 | Case type == AUDIT_OBJ_ROLE |
720 | Case type == AUDIT_OBJ_TYPE |
721 | Case type == AUDIT_OBJ_LEV_LOW |
722 | Case type == AUDIT_OBJ_LEV_HIGH |
726 | Case type == AUDIT_WATCH |
727 | If strcmp(audit_watch_path( associated watch ), audit_watch_path( associated watch )) Then Return 1 |
730 | Break |
732 | If strcmp(ver called ( associated watched tree ), ver called ( associated watched tree )) Then Return 1 |
735 | Break |
736 | Case type == AUDIT_FILTERKEY |
738 | If strcmp( ties events to rules , ties events to rules ) Then Return 1 |
740 | Break |
743 | If strcmp(audit_mark_path(exe), audit_mark_path(exe)) Then Return 1 |
746 | Break |
748 | Case type == AUDIT_EUID |
749 | Case type == AUDIT_SUID |
750 | Case type == AUDIT_FSUID |
751 | Case type == AUDIT_LOGINUID |
752 | Case type == AUDIT_OBJ_UID |
757 | Case type == AUDIT_EGID |
758 | Case type == AUDIT_SGID |
759 | Case type == AUDIT_FSGID |
760 | Case type == AUDIT_OBJ_GID |
764 | Default |
772 | Return 1 |
774 | Return 0 |
Name | Describe |
---|---|
audit_find_rule | Find an existing audit rule.* Caller must hold audit_filter_mutex to prevent stale rule 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 |