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

Proto:static void add_rules(struct ima_rule_entry *entries, int count, enum policy_rule_list policy_rule)

Type:void

Parameter:

TypeParameterName
struct ima_rule_entry *entries
intcount
enum policy_rule_listpolicy_rule
577  i = 0
579  When i < count cycle
582  If policy_rule & IMA_DEFAULT_POLICY Then list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
585  If policy_rule & IMA_CUSTOM_POLICY Then
588  If Not entry Then Continue
593  If action == same as IMA_APPRAISE Then
Caller
NameDescribe
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.