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:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ima_lsm_update_rule

Proto:static int ima_lsm_update_rule(struct ima_rule_entry *entry)

Type:int

Parameter:

TypeParameterName
struct ima_rule_entry *entry
308  nentry = ima_lsm_copy_rule(entry)
309  If Not nentry Then Return -ENOMEM
312  list_replace_rcu - replace old entry by new one*@old : the element to be replaced*@new : the new element to insert* The @old entry will be replaced with the @new entry atomically.* Note: @old should not be empty.
313  Wait for a grace period to elapse. But it is illegal to invoke* synchronize_rcu() from within an RCU read-side critical section.* Therefore, any legal call to synchronize_rcu() is a quiescent
314  ima_lsm_free_rule(entry)
316  Return 0
Caller
NameDescribe
ima_lsm_update_rulesThe LSM policy can be reloaded, leaving the IMA LSM based rules referring* to the old, stale LSM policy. Update the IMA LSM based rules to reflect* the reloaded LSM policy.