* [PATCH] IMA: fix non-ANSI declaration of ima_check_policy()
@ 2016-01-20 11:13 Colin King
2016-01-21 13:21 ` Mimi Zohar
0 siblings, 1 reply; 2+ messages in thread
From: Colin King @ 2016-01-20 11:13 UTC (permalink / raw)
To: Mimi Zohar, Dmitry Kasatkin, James Morris, Serge E . Hallyn,
linux-ima-devel, linux-ima-user, linux-security-module
Cc: linux-kernel
From: Colin Ian King <colin.king@canonical.com>
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>
---
security/integrity/ima/ima_policy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/security/integrity/ima/ima_policy.c b/security/integrity/ima/ima_policy.c
index 0a3b781..e0e18cc 100644
--- a/security/integrity/ima/ima_policy.c
+++ b/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;
--
2.7.0.rc3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] IMA: fix non-ANSI declaration of ima_check_policy()
2016-01-20 11:13 [PATCH] IMA: fix non-ANSI declaration of ima_check_policy() Colin King
@ 2016-01-21 13:21 ` Mimi Zohar
0 siblings, 0 replies; 2+ messages in thread
From: Mimi Zohar @ 2016-01-21 13:21 UTC (permalink / raw)
To: Colin King
Cc: Dmitry Kasatkin, James Morris, Serge E . Hallyn, linux-ima-devel,
linux-ima-user, linux-security-module, linux-kernel
On Wed, 2016-01-20 at 11:13 +0000, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> 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>
Thank you.
Mimi
> ---
> security/integrity/ima/ima_policy.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/security/integrity/ima/ima_policy.c b/security/integrity/ima/ima_policy.c
> index 0a3b781..e0e18cc 100644
> --- a/security/integrity/ima/ima_policy.c
> +++ b/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;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-21 13:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-20 11:13 [PATCH] IMA: fix non-ANSI declaration of ima_check_policy() Colin King
2016-01-21 13:21 ` Mimi Zohar
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.