summaryrefslogtreecommitdiff
path: root/security/integrity
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-06-11 16:40:32 +0300
committerMimi Zohar <zohar@linux.ibm.com>2019-06-14 15:53:57 +0300
commit68f2529078f97dd4dc7f01bc4d495cf5f5814363 (patch)
tree8a4701ec4547c597d5ee22d8705d3cd9ec3d6284 /security/integrity
parent2cd4737bc850225de426a8dbee7a7a312a4f5304 (diff)
downloadlinux-68f2529078f97dd4dc7f01bc4d495cf5f5814363.tar.xz
ima: Make arch_policy_entry static
Fix sparse warning: security/integrity/ima/ima_policy.c:202:23: warning: symbol 'arch_policy_entry' was not declared. Should it be static? Fixes: 6191706246de ("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>
Diffstat (limited to 'security/integrity')
-rw-r--r--security/integrity/ima/ima_policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/integrity/ima/ima_policy.c b/security/integrity/ima/ima_policy.c
index 1cc822a59054..cd1b7281244e 100644
--- a/security/integrity/ima/ima_policy.c
+++ b/security/integrity/ima/ima_policy.c
@@ -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);