Skip to content

Commit

Permalink
IMA: fix non-ANSI declaration of ima_check_policy()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and Mimi Zohar committed Feb 8, 2016
1 parent 388f7b1 commit c75d8e9
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 @@ -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;
Expand Down

0 comments on commit c75d8e9

Please sign in to comment.