Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:init_ima

Proto:static int __init init_ima(void)

Type:int

Parameter:Nothing

731  ima_init_template_list()
732  hash_setup(CONFIG_IMA_DEFAULT_HASH)
733  error = ima_init()
735  If error && strcmp(hash_algo_name[ima_hash_algo], CONFIG_IMA_DEFAULT_HASH) != 0 Then
737  pr_info("Allocating %s failed, going to use default hash algorithm %s\n", hash_algo_name[ima_hash_algo], CONFIG_IMA_DEFAULT_HASH)
739  hash_setup_done = 0
740  hash_setup(CONFIG_IMA_DEFAULT_HASH)
741  error = ima_init()
744  error = register_blocking_lsm_notifier( & ima_lsm_policy_notifier)
745  If error Then pr_warn("Couldn't register LSM notifier, error %d\n", error)
748  If Not error Then ima_update_policy_flag()
751  Return error