函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ma_update_policy - update default_rules with new measure rules* Called on file .release to update the default rules with a complete new* policy. What we do here is to splice ima_policy_rules and ima_temp_rules so* they make a queue

函数原型:void ima_update_policy(void)

返回类型:void

参数:

740  policy等于ima_policy_rules
742  list_splice_tail_init_rcu - splice an RCU-protected list into an existing* list, designed for queues.*@list: the RCU-protected list to splice*@head: the place in the existing list to splice the first list into
744  如果ima_rules不等于policy
745  ima_policy_flag等于0
746  ima_rules等于policy
754  释放内存
756  Initialize the ima_policy_flag variable based on the currently* loaded policy. Based on this flag, the decision to short circuit* out of a function or not call the function in the first place* can be made earlier.