提交 c75d8e96 编写于 作者: C Colin Ian King 提交者: Mimi Zohar

IMA: fix non-ANSI declaration of ima_check_policy()

ima_check_policy() has no parameters, so use the normal void
parameter convention to make it match the prototype in the header file
security/integrity/ima/ima.h
Signed-off-by: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NMimi Zohar <zohar@linux.vnet.ibm.com>
上级 388f7b1d
...@@ -417,7 +417,7 @@ void __init ima_init_policy(void) ...@@ -417,7 +417,7 @@ void __init ima_init_policy(void)
} }
/* Make sure we have a valid policy, at least containing some rules. */ /* Make sure we have a valid policy, at least containing some rules. */
int ima_check_policy() int ima_check_policy(void)
{ {
if (list_empty(&ima_temp_rules)) if (list_empty(&ima_temp_rules))
return -EINVAL; return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册