函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\ima\ima_policy.c Create Date:2022-07-27 22:03:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ima_init_arch_policy

函数原型:static int __init ima_init_arch_policy(void)

返回类型:int

参数:

607  arch_entries等于0
608  i等于0
610  arch_rules等于arch_get_ima_policy()
611  如果非arch_rules则返回:arch_entries
615  以 * rules != NULL循环arch_entries自加
618  An array of architecture specific rules 等于分配数组内存并置零
620  如果非An array of architecture specific rules 则返回:0
624  以 * rules != NULL循环
628  result等于长字符串复制
630  初始化链表头
631  result等于ima_parse_rule(rule, & An array of architecture specific rules [i])
632  如果result
633  打印警告信息("Skipping unknown architecture policy rule: %s\n", rule)
637  继续下一循环
639  i自加
641  返回:i
调用者
名称描述
ima_init_policyma_init_policy - initialize the default measure rules.* ima_rules points to either the ima_default_rules or the* the new ima_policy_rules.