Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754958AbZFZP2g (ORCPT ); Fri, 26 Jun 2009 11:28:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750747AbZFZP23 (ORCPT ); Fri, 26 Jun 2009 11:28:29 -0400 Received: from e39.co.us.ibm.com ([32.97.110.160]:36705 "EHLO e39.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750720AbZFZP22 (ORCPT ); Fri, 26 Jun 2009 11:28:28 -0400 Date: Fri, 26 Jun 2009 10:28:27 -0500 From: "Serge E. Hallyn" To: Mimi Zohar Cc: linux-kernel@vger.kernel.org, Sanchin Sant , Serge Hallyn , James Morris , David Safford , Mimi Zohar Subject: Re: [PATCH] integrity: ima mq_open imbalance msg fix Message-ID: <20090626152827.GA23046@us.ibm.com> References: <1246029845-6810-1-git-send-email-zohar@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1246029845-6810-1-git-send-email-zohar@linux.vnet.ibm.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1209 Lines: 44 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 Acked-by: Serge Hallyn 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 > #include > #include > +#include > > #include > #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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/