Messages in this thread | | | From | (Eric W. Biederman) | Subject | Re: [PATCH -mm 5/7] add user namespace | Date | Fri, 14 Jul 2006 22:09:50 -0600 |
| |
Trond Myklebust <trond.myklebust@fys.uio.no> writes:
> On Fri, 2006-07-14 at 12:40 -0600, Eric W. Biederman wrote: >> Now I do agree if I can set the information in vfsmount and not in >> the superblock it is probably better. But even with nfs mount superblock >> collapsing (which I almost understand) I don't see it as a real >> problem, as long as I could prevent the superblock from collapsing. > > NFS is the least of your problems. You can only have one superblock for > most local filesystems too and with good reason: imagine, for instance, > the effect of having 2 different block allocators working on the same > device.
Let me try to explain the idea again.
Currently there is a global context in which we interpret uids. But different machines can have different global contexts.
Each filesystem to be sane needs to store uids from only one such context. For network filesystems typicall the context is extended to multiple machines so that everyone who mounts a filesystem will interpret a uid with the same meaning.
The idea of creating multiple a user id namespaces on a single machine creates multiple contexts for the interpretation of uid values on the same machine. Allowing a single id to refer to different users depending on the context in which it is interpreted.
I can think of no circumstance in which a single filesystem will have multiple contexts in which user id's will be interpreted. Nor can I think of a sane scenario in which that would occur.
Given the fact that we are referring to a global property of a filesystem why is it fundamentally a problem to put it in the superblock?
Eric - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |