From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933042AbcGIDPl (ORCPT ); Fri, 8 Jul 2016 23:15:41 -0400 Received: from resqmta-ch2-03v.sys.comcast.net ([69.252.207.35]:55684 "EHLO resqmta-ch2-03v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932884AbcGIDPb (ORCPT ); Fri, 8 Jul 2016 23:15:31 -0400 Date: Fri, 8 Jul 2016 20:15:28 -0700 From: "W. Trevor King" To: James Bottomley Cc: "Serge E. Hallyn" , "Michael Kerrisk (man-pages)" , Linux API , Containers , lkml , Andy Lutomirski , criu@openvz.org, "Eric W. Biederman" Subject: Re: Introspecting userns relationships to other namespaces? Message-ID: <20160709031528.GA25507@odin.tremily.us> References: <87r3b7pxja.fsf@x220.int.ebiederm.org> <20160706141348.GB20728@mail.hallyn.com> <20160707133631.GA2994@mail.hallyn.com> <1467903712.2347.16.camel@HansenPartnership.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline In-Reply-To: <1467903712.2347.16.camel@HansenPartnership.com> OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8; url=http://tremily.us/pubkey.txt User-Agent: Mutt/1.5.23 (2014-03-12) X-CMAE-Envelope: MS4wfGgeWb30Ynzj9rCp+LO+yOYkYi1RCkpqNYJ07ygZlxYEhTvtZAmf4v84seaoL/Nhl8LSTVr5+cpVNSRfGuwT82mXcXV4Ml8SeketgIvdmR/F+kUJHi34 EOnN46bbfKrUtSEpU0WS0alSISzLyjq7R84/1bIy4Xv6thRn8uycLnXRRpIxfV7YXJBzJ3Rp4Y+GXtvhr/L3UE0dSsB2ThKUbj1oNH0CuDiYJrKA8F3b3ikf dwQIApOQK182Y50KgzKmxHV8NcSZtU2WOEh38wdbESIf2lRmVemUSXIBBZih0KA762KesBbUaNyO/QZ4PF4gKkLVbo0eQLKltuPCS1efW+N+V38WW/hYU3dF QaX+c3y/txB1ChdNUYzo5pBwTUxQerGl6ubiy2bM/JEYZgJ1/9S8FJ7bF5Un5iQI4KD9Kl5a9w+0zmv2TLnWsxjyecsbWuiWycVhn6YWW9BJ4U16U/PKBPLX UZ4N/oSn3y7vjXk3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 07, 2016 at 08:01:52AM -0700, James Bottomley wrote: > In theory, we could get nsfs to show this information as an option > (just add a show_options entry to the superblock ops), but the > problem is that although each namespace has a parent user_ns, > there's no way to get it without digging in the namespace specific > structure. Probably we should restructure to move it into > ns_common, then we could display it (and enforce all namespaces > having owning user_ns) but it would be a reasonably large (but > mechanical) change. It sounds like everyone is either positive or or neutral on this groundwork, even if we haven't decided if/how to expose the information to userspace. I'm happy to work up a patch while the rest of the discussion continues. I'm also happy to let someone else work up the patch, if anyone else is chomping at the bit ;). Cheers, Trevor --=20 This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJXgGxOAAoJEBBpoQVgXJg1aUAP/1qCWdapkP+W0y7Xw67xYqt6 94zwHNSp0H2dbfyKzdkhJbdT3BKT2P9NVwADgZD3wieh+mWL/916g/90gaw71Ejb fhMqHl4Sx6U5cXW307rG2OogXLKoH2WCh0KbPPlQcFe1GP5ql1uQiXYNgmp2Z7jE Thze0Ck4wlYCvcW+V2O92KKUfrMbUtYUvndDXxDI9fETJWr3jeUHOZrh+Vqgbgxx M2dUocYM91o/sd6nA3IQ2MZ/Y4jZsEVlMGs+OM7Zn1BSvwsCqa9U80UmrxpL8hrV z/jt9+yaOVLqEK2+vRHH3h3btj7c6DFRfZfGMG0hJMVZUld1dD9WgKoooye4nb82 dBw81Exq8WiYJqvGbfEofXxI6L6+tnialV/IWCUyK64BEdIFX2gIYAUJLnIzQvtf BGazx8k5/MzXABZw+bCFizzEjhFEH+fpoUbXKHlNKr8leH6cWuzerH9Ne4laB4gk ZG2zPlWy/grgBLTHcA9XRwwJIvSrl4KbxRB4R/ysy38LbxQnbPZ9MvS4INXhZ6m1 Tcugr54wYUYumjCB5lSqK6JpWa2d4SwGYDu9Z0saDyrNBDE/fyjUv9Q+FxW1i6mX vPfcV+rb6Lsj09YZd1bcO5faxJaKLWIXaGatGaO1ugu6bOYdJ01lYXWrL+/Lavvn ebJxePdGQj35EpYmXfF0 =KEOz -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0--