Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756013AbYJJKRk (ORCPT ); Fri, 10 Oct 2008 06:17:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752718AbYJJKRb (ORCPT ); Fri, 10 Oct 2008 06:17:31 -0400 Received: from mtagate3.uk.ibm.com ([195.212.29.136]:47276 "EHLO mtagate3.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751991AbYJJKRa (ORCPT ); Fri, 10 Oct 2008 06:17:30 -0400 Message-ID: <48EF2BAB.1010009@fr.ibm.com> Date: Fri, 10 Oct 2008 12:17:15 +0200 From: Cedric Le Goater User-Agent: Thunderbird 2.0.0.16 (X11/20080723) MIME-Version: 1.0 To: Dave Hansen CC: Oren Laadan , containers@lists.linux-foundation.org, Ingo Molnar , linux-kernel@vger.kernel.org, arnd@arndb.de Subject: Re: [RFC][PATCH 2/2] first callers of process_deny_checkpoint() References: <20081009190405.13A253CB@kernel> <20081009190406.1B257119@kernel> In-Reply-To: <20081009190406.1B257119@kernel> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 970 Lines: 28 > diff -puN ipc/mqueue.c~no-checkpointing-for-sockets ipc/mqueue.c > --- linux-2.6.git/ipc/mqueue.c~no-checkpointing-for-sockets 2008-10-09 11:56:58.000000000 -0700 > +++ linux-2.6.git-dave/ipc/mqueue.c 2008-10-09 11:56:58.000000000 -0700 > @@ -14,6 +14,7 @@ > */ > > #include > +#include > #include > #include > #include > @@ -655,6 +656,8 @@ asmlinkage long sys_mq_open(const char _ > char *name; > int fd, error; > > + process_deny_checkpointing(current); > + mqueue being a file system, i would put the checks in the inode_operations. Also, you can't always deny ! I would expect some allow in sys_mq_unlink(). C. -- 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/