[PATCH v15 03/23] LSM: Use lsmblob in security_audit_rule_match

Mimi Zohar zohar at linux.ibm.com
Mon Feb 24 18:26:54 UTC 2020


On Fri, 2020-02-14 at 15:41 -0800, Casey Schaufler wrote:

<snip>

> diff --git a/security/integrity/ima/ima_policy.c b/security/integrity/ima/ima_policy.c
> index 624ed1a34842..ad48b7b60cff 100644
> --- a/security/integrity/ima/ima_policy.c
> +++ b/security/integrity/ima/ima_policy.c
> @@ -476,6 +476,7 @@ static bool ima_match_rules(struct ima_rule_entry *rule, struct inode *inode,
>  	for (i = 0; i < MAX_LSM_RULES; i++) {
>  		int rc = 0;
>  		u32 osid;
> +		struct lsmblob blob;

A new local lsmblob variable is defined here with the same name as the
function variable.

Mimi



More information about the Linux-security-module-archive mailing list