Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754446AbZCUCnq (ORCPT ); Fri, 20 Mar 2009 22:43:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753430AbZCUCni (ORCPT ); Fri, 20 Mar 2009 22:43:38 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.124]:63660 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753150AbZCUCnh (ORCPT ); Fri, 20 Mar 2009 22:43:37 -0400 Date: Fri, 20 Mar 2009 21:46:39 -0500 From: "Serge E. Hallyn" To: Peter Zijlstra Cc: "Serge E. Hallyn" , Linux Containers , mingo@elte.hu, Bharata B Rao , lkml , Dhaval Giani Subject: Re: [PATCH 1/1] introduce user_ns inheritance in user-sched Message-ID: <20090321024639.GB21064@hallyn.com> References: <20090319211615.GA18383@us.ibm.com> <1237537460.24626.32.camel@twins> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1237537460.24626.32.camel@twins> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1266 Lines: 29 Quoting Peter Zijlstra (peterz@infradead.org): > On Thu, 2009-03-19 at 16:16 -0500, Serge E. Hallyn wrote: > > In a kernel compiled with CONFIG_USER_SCHED=y, cpu shares are > > allocated according to uid. Shares are specifiable under > > /sys/kernel/uids// > > > > In a kernel compiled with CONFIG_USER_NS=y, clone(2) with the > > CLONE_NEWUSER flag creates a new user namespace, and the newly > > cloned task will belong to uid 0 in the new user namespace. > > We seem to be adding more and more stuff for USER_SCHED, is anybody > actually using that cruft? > > How far along with cgroups are we to fully simulate that behaviour? > > I think if we have a capable cgroup based replacement for USER_SCHED we > should axe it from the kernel, would save lots of code... I didn't realize that was the plan. Using PAM to move users around cgroups? If so, then yeah that would simplify quite a bit of code. Won't catch all setuid()s of course - I don't know who uses USER_SCHED and if that would matter. -serge -- 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/