函数逻辑报告 |
Source Code:kernel\auditfilter.c |
Create Date:2022-07-27 12:28:04 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Translate kernel rule representation to struct audit_rule_data.
函数原型:static struct audit_rule_data *audit_krule_to_data(struct audit_krule *krule)
返回类型:struct audit_rule_data
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct audit_krule * | krule |
| 633 | 如果此条件成立可能性小(为编译器优化)(!data)则返回:NULL |
| 639 | field_count等于field_count |
| 640 | bufp等于string fields buffer |
| 641 | 以i小于field_count循环 |
| 645 | fieldflags[i]等于audit_ops[op] |
| 647 | 当:type恒等于security label user |
| 648 | 当:type恒等于security label role |
| 649 | 当:type恒等于security label type |
| 652 | 当:type恒等于AUDIT_OBJ_USER |
| 653 | 当:type恒等于AUDIT_OBJ_ROLE |
| 654 | 当:type恒等于AUDIT_OBJ_TYPE |
| 655 | 当:type恒等于AUDIT_OBJ_LEV_LOW |
| 656 | 当:type恒等于AUDIT_OBJ_LEV_HIGH |
| 657 | al length of string fields 加等于values[i]等于Pack a filter field's string representation into data block. |
| 659 | 退出 |
| 660 | 当:type恒等于AUDIT_WATCH |
| 661 | al length of string fields 加等于values[i]等于Pack a filter field's string representation into data block. |
| 664 | 退出 |
| 666 | al length of string fields 加等于values[i]等于Pack a filter field's string representation into data block. |
| 669 | 退出 |
| 670 | 当:type恒等于AUDIT_FILTERKEY |
| 671 | al length of string fields 加等于values[i]等于Pack a filter field's string representation into data block. |
| 673 | 退出 |
| 675 | al length of string fields 加等于values[i]等于Pack a filter field's string representation into data block. |
| 677 | 退出 |
| 678 | 当:type恒等于AUDIT_LOGINUID_SET |
| 685 | 默认 |
| 689 | 以i小于AUDIT_BITMASK_SIZE循环syscall(s) affected [i]等于mask[i] |
| 691 | 返回:data |
| 名称 | 描述 |
|---|---|
| audit_list_rules | List rules using struct audit_rule_data. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |