From: "Serge E. Hallyn" Subject: Re: [PATCH 0/4] user namespaces: introduction Date: Mon, 28 Jan 2008 13:44:50 -0600 Message-ID: <20080128194450.GA9745@sergelap.austin.rr.com> References: <20080128190828.GA8909@sergelap.austin.ibm.com> <34757.192.168.101.12.1201548264.squirrel@intranet> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <34757.192.168.101.12.1201548264.squirrel@intranet> Sender: linux-security-module-owner@vger.kernel.org To: Daniel Hokka Zakrisson Cc: "Serge E. Hallyn" , Cedric Le Goater , "Eric W. Biederman" , Linux Containers , linux-security-module@vger.kernel.org List-Id: containers.vger.kernel.org Quoting Daniel Hokka Zakrisson (daniel@hozac.com): > Serge E. Hallyn wrote: > > Here is a small patchset I've been sitting on for awhile > > to make signaling mostly subject to user namespaces. In > > particular, > > > > 1. store user_namespace in user struct > > 2. introduce CAP_NS_OVERRIDE > > 3. require CAP_NS_OVERRIDE to signal another user namespace > > > > The first step should have been done all along. Else wouldn't > > a hash collision on (ns1, uid) and (ns2, uid), however unlikely, > > give us wrong results at uid_hash_find()? > > Unless I've completely misunderstood the code, each namespace has a > separate hash. Please correct me if I'm wrong. So it does! Yikes, how did I misread that so badly? That means the find_user() code may be simplified a bit after all. Well, or we could keep this and go to a single hash to save some memory... Thanks Daniel. -serge > > > The main remaining signaling+userns issue is of course the > > siginfo. Tacking a userns onto siginfo is a pain due to > > lifetime mgmt issues. I haven't decided whether to just > > catch all the callers and fake uid=0 if user namespaces > > aren't the same, introduce some unique non-refcounted id to > > represent (user,user_ns), or find some other way to deal with > > it. > > > > thanks, > > -serge > > -- > Daniel Hokka Zakrisson > - > To unsubscribe from this list: send the line "unsubscribe linux-security-module" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html