函数逻辑报告 |
Source Code:kernel\audit_tree.c |
Create Date:2022-07-27 12:34:11 |
Last Modify:2022-05-22 16:43:11 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:alled with audit_filter_mutex
函数原型:int audit_add_tree_rule(struct audit_krule *rule)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct audit_krule * | rule |
806 | seed等于 associated watched tree |
811 | associated watched tree = NULL |
813 | 如果非字符串比较则 |
821 | 添加链表项 |
822 | 添加链表项 |
826 | 如果此条件成立可能性小(为编译器优化)(!prune_thread)则 |
827 | err等于audit_launch_prune() |
835 | mnt等于collect_mounts( & path) |
837 | 如果是错误则 |
843 | err等于iterate_mounts(tag_mount, tree, mnt) |
844 | drop_collected_mounts(mnt) |
846 | 如果非err则 |
848 | 加自旋锁 |
850 | index; upper bit indicates 'will prune' 与等于1U左移31位的值的反 |
851 | 自旋锁解锁 |
852 | 否则 |
854 | 转到:Err |
857 | mutex_lock( & audit_filter_mutex) |
858 | 如果链表为空则 |
862 | associated watched tree 等于tree |
865 | 返回:0 |
866 | Err : |
867 | mutex_lock( & audit_filter_mutex) |
868 | 删除链表项并重新初始化 |
869 | 删除链表项并重新初始化 |
871 | 返回:err |
名称 | 描述 |
---|---|
audit_add_rule | Add rule to given filterlist if not a duplicate. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |