函数逻辑报告 |
Source Code:kernel\auditsc.c |
Create Date:2022-07-27 12:31:24 |
Last Modify:2020-03-17 16:31:21 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__audit_inode - store the inode and device from a lookup*@name: name being audited*@dentry: dentry being audited*@flags: attributes for this particular entry
函数原型:void __audit_inode(struct filename *name, const struct dentry *dentry, unsigned int flags)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct filename * | name | |
const struct dentry * | dentry | |
unsigned int | flags |
1947 | context等于audit_context() |
1950 | parent等于flags按位与dentry represents the parent |
1955 | 如果非是系统调用则返回 |
1960 | 以i小于field_count循环 |
1963 | 如果type恒等于FileSystem Type 且audit_comparator(s_magic, op, val)且action恒等于Do not build context if rule matches 则 |
1982 | 如果n则 |
1983 | 如果parent则 |
1984 | 如果cord type 恒等于a parent audit record 或cord type 恒等于we don't know yet 则转到:out |
1987 | 否则 |
1988 | 如果cord type 不等于a parent audit record 则转到:out |
1994 | 如果ino则 |
1996 | 如果ino不等于Stat data, not accessed from path walking 或dev不等于s_dev则继续下一循环 |
1999 | 否则如果name则 |
2001 | 如果字符串比较则继续下一循环 |
2003 | 否则继续下一循环 |
2008 | 如果parent则 |
2009 | 如果cord type 恒等于a parent audit record 或cord type 恒等于we don't know yet 则转到:out |
2012 | 否则 |
2013 | 如果cord type 不等于a parent audit record 则转到:out |
2018 | out_alloc : |
2020 | n等于audit_alloc_name(context, we don't know yet ) |
2021 | 如果非n则返回 |
2023 | 如果name则 |
2028 | out : |
2029 | 如果parent则 |
2030 | umber of chars to log 等于如果name则parent_len - find the length of the parent portion of a pathname*@path: pathname of which to determine length否则Indicates that audit should log the full pathname. |
2031 | cord type 等于a parent audit record |
2032 | 如果flags按位与audit record should be hidden 则don't log this record = true |
2034 | 否则 |
2036 | cord type 等于a "normal" audit record |
2038 | handle_path(dentry) |
名称 | 描述 |
---|---|
__audit_file |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |