All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] integrity: ima mq_open imbalance msg fix
@ 2009-06-26 15:24 Mimi Zohar
  2009-06-26 15:28 ` Serge E. Hallyn
  0 siblings, 1 reply; 2+ messages in thread
From: Mimi Zohar @ 2009-06-26 15:24 UTC (permalink / raw)
  To: linux-kernel
  Cc: Mimi Zohar, Sanchin Sant, Serge Hallyn, James Morris,
	David Safford, Mimi Zohar

This patch fixes an imbalance message as reported by Sanchin Sant.
As we don't need to measure the message queue, just increment the
counters.

Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
---
 ipc/mqueue.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index e35ba2c..c5e68ad 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -32,6 +32,7 @@
 #include <linux/nsproxy.h>
 #include <linux/pid.h>
 #include <linux/ipc_namespace.h>
+#include <linux/ima.h>
 
 #include <net/sock.h>
 #include "util.h"
@@ -733,6 +734,7 @@ SYSCALL_DEFINE4(mq_open, const char __user *, u_name, int, oflag, mode_t, mode,
 		error = PTR_ERR(filp);
 		goto out_putfd;
 	}
+	ima_counts_get(filp);
 
 	fd_install(fd, filp);
 	goto out_upsem;
-- 
1.6.0.6


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] integrity: ima mq_open imbalance msg fix
  2009-06-26 15:24 [PATCH] integrity: ima mq_open imbalance msg fix Mimi Zohar
@ 2009-06-26 15:28 ` Serge E. Hallyn
  0 siblings, 0 replies; 2+ messages in thread
From: Serge E. Hallyn @ 2009-06-26 15:28 UTC (permalink / raw)
  To: Mimi Zohar
  Cc: linux-kernel, Sanchin Sant, Serge Hallyn, James Morris,
	David Safford, Mimi Zohar

Quoting Mimi Zohar (zohar@linux.vnet.ibm.com):
> This patch fixes an imbalance message as reported by Sanchin Sant.
> As we don't need to measure the message queue, just increment the
> counters.
> 
> Signed-off-by: Mimi Zohar <zohar@us.ibm.com>

Acked-by: Serge Hallyn <serue@us.ibm.com>

Thanks, Mimi and Sanchin.

-serge

> ---
>  ipc/mqueue.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/ipc/mqueue.c b/ipc/mqueue.c
> index e35ba2c..c5e68ad 100644
> --- a/ipc/mqueue.c
> +++ b/ipc/mqueue.c
> @@ -32,6 +32,7 @@
>  #include <linux/nsproxy.h>
>  #include <linux/pid.h>
>  #include <linux/ipc_namespace.h>
> +#include <linux/ima.h>
> 
>  #include <net/sock.h>
>  #include "util.h"
> @@ -733,6 +734,7 @@ SYSCALL_DEFINE4(mq_open, const char __user *, u_name, int, oflag, mode_t, mode,
>  		error = PTR_ERR(filp);
>  		goto out_putfd;
>  	}
> +	ima_counts_get(filp);
> 
>  	fd_install(fd, filp);
>  	goto out_upsem;
> -- 
> 1.6.0.6

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-26 15:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-26 15:24 [PATCH] integrity: ima mq_open imbalance msg fix Mimi Zohar
2009-06-26 15:28 ` Serge E. Hallyn

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.