函数逻辑报告 | 
Source Code:security\integrity\ima\ima_policy.c | 
Create Date:2022-07-27 22:02:52 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:ima_lsm_copy_rule
函数原型:static struct ima_rule_entry *ima_lsm_copy_rule(struct ima_rule_entry *entry)
返回类型:struct ima_rule_entry
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct ima_rule_entry * | entry | 
| 269 | 如果非nentry则返回:NULL | 
| 277 | memset(lsm, 0, sizeof_field(TYPE, MEMBER)*@TYPE: The structure containing the field of interest*@MEMBER: The field to return the size of(structima_rule_entry, lsm)) | 
| 279 | 以i小于MAX_LSM_RULES循环 | 
| 280 | 如果非 audit value 则继续下一循环 | 
| 283 | audit type 等于 audit type | 
| 286 | 如果非 audit value 则转到:out_err | 
| 289 | security_filter_rule_init( audit type , Audit_equal, audit value , & LSM file metadata specific ) | 
| 293 | 如果非 LSM file metadata specific 则打印警告信息("rule for LSM \'%s\' is undefined\n", (char * ) audit value ) | 
| 297 | 返回:nentry | 
| 299 | out_err : | 
| 300 | ima_lsm_free_rule(nentry) | 
| 301 | 返回:NULL | 
| 名称 | 描述 | 
|---|---|
| ima_lsm_update_rule | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |