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

Name:ima_lsm_rule_init

Proto:static int ima_lsm_rule_init(struct ima_rule_entry *entry, substring_t *args, int lsm_rule, int audit_type)

Type:int

Parameter:

TypeParameterName
struct ima_rule_entry *entry
substring_t *args
intlsm_rule
intaudit_type
815  If LSM file metadata specific Then Return -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  If Not audit value Then Return -ENOMEM
822  audit type = audit_type
823  result = security_filter_rule_init( audit type , Audit_equal, audit value , & LSM file metadata specific )
827  If Not LSM file metadata specific Then
828  pr_warn("rule for LSM \'%s\' is undefined\n", (char * ) audit value )
831  If ima_rules == ima_default_rules Then
833  result = -EINVAL
834  Else result = 0
838  Return result
Caller
NameDescribe
ima_parse_rule