Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757708Ab2HPUtc (ORCPT ); Thu, 16 Aug 2012 16:49:32 -0400 Received: from lobo.ruivo.org ([173.14.175.98]:33837 "EHLO lobo.ruivo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753062Ab2HPUta (ORCPT ); Thu, 16 Aug 2012 16:49:30 -0400 Date: Thu, 16 Aug 2012 16:49:13 -0400 From: Aristeu Rozanski To: Andrew Morton Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, Tejun Heo , Li Zefan Subject: Re: [PATCH RESEND 0/4] device_cgroup: replace internally whitelist with exception list Message-ID: <20120816204913.GG28505@cathedrallabs.org> References: <20120809190414.773462171@muttley.lan.cathedral> <20120816130844.6f26530d.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120816130844.6f26530d.akpm@linux-foundation.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1360 Lines: 31 On Thu, Aug 16, 2012 at 01:08:44PM -0700, Andrew Morton wrote: > On Thu, 09 Aug 2012 15:04:14 -0400 > aris@ruivo.org wrote: > > > The original model of device_cgroup is having a whitelist where all the > > allowed devices are listed. The problem with this approach is that is > > impossible to have the case of allowing everything but few devices. > > > > The reason for that lies in the way the whitelist is handled internally: > > since there's only a whitelist, the "all devices" entry would have to be > > removed and replaced by the entire list of possible devices but the ones > > that are being denied. Since dev_t is 32 bits long, representing the allowed > > devices as a bitfield is not memory efficient. > > > > This patch replaces the "whitelist" by a "exceptions" list and the default > > policy is kept as "deny_all" variable in dev_cgroup structure. > > The patches look reasonable to me. I suggest you resend them after > kernel summit and cc a few additional people: Serge Hallyn, Pavel > Emelyanov and James Morris. thanks, will do. will include the checkpatch fixes as well. -- Aristeu -- 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/