函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ima_lsm_rule_init

函数原型:static int ima_lsm_rule_init(struct ima_rule_entry *entry, substring_t *args, int lsm_rule, int audit_type)

返回类型:int

参数:

类型参数名称
struct ima_rule_entry *entry
substring_t *args
intlsm_rule
intaudit_type
815  如果 LSM file metadata specific 则返回:负EINVAL
818  audit value 等于match_strdup: - allocate a new string with the contents of a substring_t*@s: &substring_t to copy* Description: Allocates and returns a string filled with the contents of* the &substring_t @s. The caller is responsible for freeing the returned
819  如果非 audit value 则返回:负ENOMEM
822  audit type 等于audit_type
823  result等于security_filter_rule_init( audit type , Audit_equal, audit value , & LSM file metadata specific )
827  如果非 LSM file metadata specific
828  打印警告信息("rule for LSM \'%s\' is undefined\n", (char * ) audit value )
831  如果ima_rules恒等于ima_default_rules
832  释放内存
833  result等于负EINVAL
834  否则result等于0
838  返回:result
调用者
名称描述
ima_parse_rule