函数逻辑报告 |
Source Code:kernel\auditsc.c |
Create Date:2022-07-27 12:31:30 |
Last Modify:2020-03-17 16:31:21 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__audit_inode_child - collect inode info for created/removed objects*@parent: inode of dentry parent*@dentry: dentry being audited*@type: AUDIT_TYPE_* value that we're looking for* For syscalls that create or remove filesystem objects, audit_inode
函数原型:void __audit_inode_child(struct inode *parent, const struct dentry *dentry, const unsigned char type)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct inode * | parent | |
const struct dentry * | dentry | |
const unsigned char | type |
2065 | context等于audit_context() |
2068 | struct audit_names * n, * found_parent = NULL, * found_child = NULL |
2073 | 如果非是系统调用则返回 |
2078 | 以i小于field_count循环 |
2081 | 如果type恒等于FileSystem Type 且audit_comparator(s_magic, op, val)且action恒等于Do not build context if rule matches 则 |
2092 | 如果inode则handle_one(inode) |
2097 | 如果非name或cord type 不等于a parent audit record 且cord type 不等于we don't know yet 则继续下一循环 |
2105 | 如果cord type 恒等于we don't know yet 则cord type 等于a parent audit record |
2107 | found_parent等于n |
2108 | 退出 |
2115 | 如果非name或cord type 不等于type且cord type 不等于we don't know yet 则继续下一循环 |
2131 | 如果非found_parent则 |
2133 | n等于audit_alloc_name(context, a parent audit record ) |
2134 | 如果非n则返回 |
2139 | 如果非found_child则 |
2140 | found_child等于audit_alloc_name(context, type) |
2141 | 如果非found_child则返回 |
2147 | 如果found_parent则 |
2150 | refcnt自加 |
2156 | 否则ino等于AUDIT_INO_UNSET |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |