[dm-devel] [PATCH v4 03/21] fs: Allow sysfs and cgroupfs to share super blocks between user namespaces

2016-04-27 Thread Seth Forshee
Both of these filesystems already have use cases for mounting the same super block from multiple user namespaces. For sysfs this happens when using criu for snapshotting a container, where sysfs is mounted in the containers network ns but the hosts user ns. The cgroup filesystem shares the same sup

Re: [dm-devel] [PATCH v4 03/21] fs: Allow sysfs and cgroupfs to share super blocks between user namespaces

2016-05-17 Thread Eric W. Biederman
Seth Forshee writes: > Both of these filesystems already have use cases for mounting the > same super block from multiple user namespaces. For sysfs this > happens when using criu for snapshotting a container, where sysfs > is mnounted in the containers network ns but the hosts user ns. > The cgr

Re: [dm-devel] [PATCH v4 03/21] fs: Allow sysfs and cgroupfs to share super blocks between user namespaces

2016-05-17 Thread Seth Forshee
On Tue, May 17, 2016 at 05:39:33PM -0500, Eric W. Biederman wrote: > Seth Forshee writes: > > > Both of these filesystems already have use cases for mounting the > > same super block from multiple user namespaces. For sysfs this > > happens when using criu for snapshotting a container, where sysf

Re: [dm-devel] [PATCH v4 03/21] fs: Allow sysfs and cgroupfs to share super blocks between user namespaces

2016-05-18 Thread Eric W. Biederman
Seth Forshee writes: > On Tue, May 17, 2016 at 05:39:33PM -0500, Eric W. Biederman wrote: >> Seth Forshee writes: >> >> > Both of these filesystems already have use cases for mounting the >> > same super block from multiple user namespaces. For sysfs this >> > happens when using criu for snapsh

Re: [dm-devel] [PATCH v4 03/21] fs: Allow sysfs and cgroupfs to share super blocks between user namespaces

2016-05-18 Thread Eric W. Biederman
Seth Forshee writes: > On Wed, May 18, 2016 at 10:45:31AM -0500, Eric W. Biederman wrote: >> > But if we do that it violates some of the assumptions of the patch to >> > rework MNT_NODEV on your testing branch (and also those behind patch 2 >> > in this series). Something will need to be changed

Re: [dm-devel] [PATCH v4 03/21] fs: Allow sysfs and cgroupfs to share super blocks between user namespaces

2016-05-19 Thread Seth Forshee
On Wed, May 18, 2016 at 10:45:31AM -0500, Eric W. Biederman wrote: > > But if we do that it violates some of the assumptions of the patch to > > rework MNT_NODEV on your testing branch (and also those behind patch 2 > > in this series). Something will need to be changed there to prevent a > > regre