Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\ima\ima_policy.c Create Date:2022-07-28 19:58:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:void ima_update_policy(void)

Type:void

Parameter:Nothing

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  If ima_rules != policy Then
745  ima_policy_flag = 0
746  ima_rules = policy
754  kfree(An array of architecture specific rules )
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.