函数逻辑报告 | 
Source Code:kernel\auditfilter.c | 
Create Date:2022-07-27 12:28:23 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Add rule to given filterlist if not a duplicate.
函数原型:static inline int audit_add_rule(struct audit_entry *entry)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| 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 | 如果e则 | 
| 955 | 如果tree则audit_put_tree(tree) | 
| 957 | 返回:err | 
| 960 | 如果watch则 | 
| 962 | err等于audit_add_watch( & rule, & list) | 
| 963 | 如果err则 | 
| 974 | 如果tree则 | 
| 975 | err等于audit_add_tree_rule( & rule) | 
| 976 | 如果err则 | 
| 982 | prio等于0ULL的反 | 
| 983 | 如果listnr恒等于Apply rule at syscall exit 则 | 
| 990 | 如果flags按位与Prepend to front of list 则 | 
| 995 | 否则 | 
| 1009 | 返回:err | 
| 名称 | 描述 | 
|---|---|
| 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 | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |