From: "Serge E. Hallyn" <serue@us.ibm.com>
To: Mimi Zohar <zohar@linux.vnet.ibm.com>
Cc: linux-kernel@vger.kernel.org, Sanchin Sant <sanchinp@in.ibm.com>,
Serge Hallyn <serue@linux.vnet.ibm.com>,
James Morris <jmorris@namei.org>,
David Safford <safford@watson.ibm.com>,
Mimi Zohar <zohar@us.ibm.com>
Subject: Re: [PATCH] integrity: ima mq_open imbalance msg fix
Date: Fri, 26 Jun 2009 10:28:27 -0500 [thread overview]
Message-ID: <20090626152827.GA23046@us.ibm.com> (raw)
In-Reply-To: <1246029845-6810-1-git-send-email-zohar@linux.vnet.ibm.com>
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
prev parent reply other threads:[~2009-06-26 15:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-26 15:24 [PATCH] integrity: ima mq_open imbalance msg fix Mimi Zohar
2009-06-26 15:28 ` Serge E. Hallyn [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090626152827.GA23046@us.ibm.com \
--to=serue@us.ibm.com \
--cc=jmorris@namei.org \
--cc=linux-kernel@vger.kernel.org \
--cc=safford@watson.ibm.com \
--cc=sanchinp@in.ibm.com \
--cc=serue@linux.vnet.ibm.com \
--cc=zohar@linux.vnet.ibm.com \
--cc=zohar@us.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox