From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: Re: [PATCH 0/3] keys: play nicely with user namespaces Date: Fri, 19 Dec 2008 00:56:32 +0000 Message-ID: <7376.1229648192@redhat.com> References: <20081218174613.GA13968@us.ibm.com> <20081217235536.GA932@us.ibm.com> <20081212141707.GB9571@us.ibm.com> <20081211232323.GA8343@us.ibm.com> <3507.1229086294@redhat.com> <25987.1229097458@redhat.com> <3547.1229607983@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20081218174613.GA13968-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "Serge E. Hallyn" Cc: dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, Linux Containers , "Eric W. Biederman" List-Id: containers.vger.kernel.org Serge E. Hallyn wrote: > Cool, thanks. I needed the following change to toolbox.inc.sh.orig in > order to be able to run with >1 user namespaces: > > 36c36 > < maxsquota=`grep '^ *0': /proc/key-users | sed s@.*/@@` > --- > > maxsquota=`grep '^ *0': /proc/key-users | sed s@.*/@@ | head -1` > > since /proc/key-users then lists multiple entries. Otherwise, > all tests pass when running the testsuite in a child-user-ns. Should you only get key-users from the set of users in your namespace, I wonder? David