| 函数逻辑报告 | 
| Source Code: security\integrity\ima\ima_policy.c | Create Date:2022-07-27 22:03:38 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:ima_lsm_rule_init
函数原型:static int ima_lsm_rule_init(struct ima_rule_entry *entry, substring_t *args, int lsm_rule, int audit_type)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct ima_rule_entry * | entry | |
| substring_t * | args | |
| int | lsm_rule | |
| int | audit_type | 
| 815 | 如果 LSM file metadata specific 则返回:负EINVAL | 
| 819 | 如果非 audit value 则返回:负ENOMEM | 
| 822 | audit type 等于audit_type | 
| 823 | result等于security_filter_rule_init( audit type , Audit_equal, audit value , & LSM file metadata specific ) | 
| 827 | 如果非 LSM file metadata specific 则 | 
| 828 | 打印警告信息("rule for LSM \'%s\' is undefined\n", (char * ) audit value ) | 
| 831 | 如果ima_rules恒等于ima_default_rules则 | 
| 834 | 否则result等于0 | 
| 838 | 返回:result | 
| 名称 | 描述 | 
|---|---|
| ima_parse_rule | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |