Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933478Ab0GOPz2 (ORCPT ); Thu, 15 Jul 2010 11:55:28 -0400 Received: from sous-sol.org ([216.99.217.87]:37556 "EHLO sequoia.sous-sol.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932900Ab0GOPz0 (ORCPT ); Thu, 15 Jul 2010 11:55:26 -0400 Date: Thu, 15 Jul 2010 08:54:15 -0700 From: Chris Wright To: Chris Wright Cc: Andrew Morton , Al Viro , "Serge E. Hallyn" , Christoph Hellwig , "Daniel P. Berrange" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] blkdev: cgroup whitelist permission fix Message-ID: <20100715155415.GU14017@sequoia.sous-sol.org> References: <20100604201535.GB8301@sequoia.sous-sol.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100604201535.GB8301@sequoia.sous-sol.org> User-Agent: Mutt/1.5.20 (2009-08-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 953 Lines: 24 * Chris Wright (chrisw@sous-sol.org) wrote: > The cgroup device whitelist code gets confused when trying to grant > permission to a disk partition that is not currently open. Part of > blkdev_open() includes __blkdev_get() on the whole disk. This simply > avoids the cgroup check for the whole disk case when opening a > partition. > > https://bugzilla.redhat.com/show_bug.cgi?id=589662 > > Acked-by: Serge E. Hallyn > Tested-by: Serge E. Hallyn > Signed-off-by: Chris Wright Andrew, plans to push this on? Christoph doesn't like the whole of blockdev whitelisting for good reason, but it's currently in use and has this bug. thanks, -chris -- 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/