函数逻辑报告 |
Source Code:kernel\auditfilter.c |
Create Date:2022-07-27 12:28:20 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Find an existing audit rule.* Caller must hold audit_filter_mutex to prevent stale rule data.
函数原型:static struct audit_entry *audit_find_rule(struct audit_entry *entry, struct list_head **p)
返回类型:struct audit_entry
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct audit_entry * | entry | |
| struct list_head ** | p |
| 894 | struct audit_entry * e, * found = NULL |
| 898 | 如果 quick access to an inode field 则 |
| 899 | h等于audit_hash_ino(val) |
| 900 | p等于list等于Hash for inode-based rules [h] |
| 901 | 否则如果 associated watch 则 |
| 903 | 以h小于AUDIT_INODE_BUCKETS循环 |
| 904 | list等于Hash for inode-based rules [h] |
| 911 | 转到:out |
| 912 | 否则 |
| 913 |
p等于list等于Audit filter lists, defined in |
| 916 | list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(e, list, list) |
| 922 | out : |
| 923 | 返回:found |
| 名称 | 描述 |
|---|---|
| audit_add_rule | Add rule to given filterlist if not a duplicate. |
| audit_del_rule | Remove an existing rule from filterlist. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |