函数逻辑报告 |
Source Code:security\integrity\ima\ima_policy.c |
Create Date:2022-07-27 22:03:19 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:add_rules
函数原型:static void add_rules(struct ima_rule_entry *entries, int count, enum policy_rule_list policy_rule)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct ima_rule_entry * | entries | |
| int | count | |
| enum policy_rule_list | policy_rule |
| 577 | i等于0 |
| 582 | 如果policy_rule按位与IMA_DEFAULT_POLICY则添加链表项 |
| 585 | 如果policy_rule按位与IMA_CUSTOM_POLICY则 |
| 586 | entry等于kmemdup - duplicate region of memory*@src: memory region to duplicate*@len: memory region length*@gfp: GFP mask to use* Return: newly allocated copy of @src or %NULL in case of error |
| 588 | 如果非entry则继续下一循环 |
| 591 | 添加链表项 |
| 593 | 如果action恒等于same as IMA_APPRAISE 则 |
| 595 | 如果func恒等于POLICY_CHECK则temp_ima_appraise或等于IMA_APPRAISE_POLICY |
| 名称 | 描述 |
|---|---|
| ima_init_policy | ma_init_policy - initialize the default measure rules.* ima_rules points to either the ima_default_rules or the* the new ima_policy_rules. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |