From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out01.mta.xmission.com ([166.70.13.231]:36226 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751445AbdBOJmY (ORCPT ); Wed, 15 Feb 2017 04:42:24 -0500 From: ebiederm@xmission.com (Eric W. Biederman) To: Djalal Harouni Cc: James Bottomley , Josh Triplett , Christoph Hellwig , Amir Goldstein , Chris Mason , Theodore Tso , Andy Lutomirski , Seth Forshee , linux-fsdevel , linux-kernel , LSM List , Dongsu Park , David Herrmann , Miklos Szeredi , Alban Crequy , Al Viro , "Serge E. Hallyn" , Phil Estes References: <1486235880.2484.17.camel@HansenPartnership.com> <1486235972.2484.19.camel@HansenPartnership.com> <20170207091924.GA13995@infradead.org> <1486485440.2488.15.camel@HansenPartnership.com> <20170207181040.GA18551@infradead.org> <1486494123.2488.56.camel@HansenPartnership.com> <20170207194933.GB4393@infradead.org> <20170208015423.GC23245@cloud> <1486567365.2484.28.camel@HansenPartnership.com> <20170209103640.myuysvawpj55z4fi@x> <1486654467.2616.8.camel@HansenPartnership.com> <87poim75wr.fsf@xmission.com> Date: Wed, 15 Feb 2017 22:37:41 +1300 In-Reply-To: (Djalal Harouni's message of "Wed, 15 Feb 2017 10:33:53 +0100") Message-ID: <8760kbg5ga.fsf@xmission.com> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [RFC 1/1] shiftfs: uid/gid shifting bind mount Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Djalal Harouni writes: > On Mon, Feb 13, 2017 at 11:15 AM, Eric W. Biederman > wrote: >> James Bottomley writes: >>> So is this. Basically anything that begins by mounting gets a super >>> block and can use the s_user_ns to map from the filesystem view to the >>> kernel view of ids. Apart from greater sophistication in the >>> parametrisation, it sounds like we have all the machinery you need. >>> I'm sure the containers people will consider reasonable patches to >>> change this. >> >> Yes. >> >> And to be clear we have all of that merged now and mostly present and >> hooked up in all filesystems without any shiftfs like changes needed. >> >> To use this with a filesystem a last pass needs to be had to verify that >> the cases where something does not map are handled cleanly. > > Still this does not answer the question how to dynamically > *attach/share* data or read-only volumes as defined by > orchestration/container tools into several containers. Am I missing > something or is the plan to have per superblock mount for each one ? Agreed. That is a related problem and the problem that shiftfs is working to solve. If you only need a single mapping the infrastructure is basically done in the kernel today. If you need multiple mappings we need something more. Eric