Skip to content

Commit

Permalink
ima: Make arch_policy_entry static
Browse files Browse the repository at this point in the history
Fix sparse warning:

security/integrity/ima/ima_policy.c:202:23: warning:
 symbol 'arch_policy_entry' was not declared. Should it be static?

Fixes: 6191706 ("ima: add support for arch specific policies")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Cc: stable@vger.kernel.org (linux-5.0)
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
  • Loading branch information
YueHaibing authored and Mimi Zohar committed Jun 14, 2019
1 parent 2cd4737 commit 68f2529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/integrity/ima/ima_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ static struct ima_rule_entry secure_boot_rules[] __ro_after_init = {
};

/* An array of architecture specific rules */
struct ima_rule_entry *arch_policy_entry __ro_after_init;
static struct ima_rule_entry *arch_policy_entry __ro_after_init;

static LIST_HEAD(ima_default_rules);
static LIST_HEAD(ima_policy_rules);
Expand Down

0 comments on commit 68f2529

Please sign in to comment.