Browse Source

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: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Colin Ian King 9 năm trước cách đây
mục cha
commit
c75d8e96f3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      security/integrity/ima/ima_policy.c

+ 1 - 1
security/integrity/ima/ima_policy.c

@@ -417,7 +417,7 @@ void __init ima_init_policy(void)
 }
 
 /* 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))
 		return -EINVAL;