函数逻辑报告 |
Source Code:security\integrity\ima\ima_policy.c |
Create Date:2022-07-27 22:03:28 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:ma_init_policy - initialize the default measure rules.* ima_rules points to either the ima_default_rules or the* the new ima_policy_rules.
函数原型:void __init ima_init_policy(void)
返回类型:void
参数:无
660 | 当:ima_policy恒等于ORIGINAL_TCB |
661 | add_rules(original_measurement_rules, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(original_measurement_rules), IMA_DEFAULT_POLICY) |
664 | 退出 |
665 | 当:ima_policy恒等于DEFAULT_TCB |
669 | 默认 |
670 | 退出 |
679 | arch_entries等于ima_init_arch_policy() |
680 | 如果非arch_entries则打印信息("No architecture policies found\n") |
682 | 否则add_rules(An array of architecture specific rules , arch_entries, IMA_DEFAULT_POLICY | IMA_CUSTOM_POLICY) |
690 | 如果ima_use_secure_boot则add_rules(secure_boot_rules, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(secure_boot_rules), IMA_DEFAULT_POLICY) |
700 | build_appraise_entries等于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(build_appraise_rules) |
701 | 如果build_appraise_entries则 |
710 | 如果ima_use_appraise_tcb则add_rules(default_appraise_rules, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(default_appraise_rules), IMA_DEFAULT_POLICY) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |