Function report |
Source Code:kernel\auditfilter.c |
Create Date:2022-07-28 11:25:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Add rule to given filterlist if not a duplicate.
Proto:static inline int audit_add_rule(struct audit_entry *entry)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct audit_entry * | entry |
933 | watch = associated watch |
934 | tree = associated watched tree |
936 | err = 0 |
949 | mutex_lock( & audit_filter_mutex) |
950 | e = Find an existing audit rule.* Caller must hold audit_filter_mutex to prevent stale rule data. |
951 | If e Then |
955 | If tree Then audit_put_tree(tree) |
957 | Return err |
960 | If watch Then |
962 | err = audit_add_watch( & rule, & list) |
963 | If err Then |
974 | If tree Then |
975 | err = audit_add_tree_rule( & rule) |
976 | If err Then |
982 | prio = ~0ULL |
983 | If listnr == Apply rule at syscall exit Then |
990 | If flags & Prepend to front of list Then |
994 | flags &= ~Prepend to front of list |
995 | Else |
1009 | Return err |
Name | Describe |
---|---|
audit_rule_change | audit_rule_change - apply all rules to the specified message type*@type: audit message type*@seq: netlink audit message sequence (serial) number*@data: payload data*@datasz: size of payload 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 |