- if (current->fsuid == inode->i_uid) + if ((current->fsuid == inode->i_uid) && + (current->nsproxy->user_ns == inode->i_sb->user_ns))mode >>= 6;I really don't think assigning a user namespace to a superblock is the right way to go. Seems to me like the _view_ into the filesystem is what you want to modify. That would seem to me to mean that each 'struct namespace' (filesystem namespace) or vfsmount would be assigned a corresponding user namespace, *not* the superblock.
I dislike this way either. We need an ability to have an access to container filesystems and data from the host. such a strong checks break this. Thanks. Kirill - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH -mm 5/7] add user namespace
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH -mm 5/7] add user namespace
- References:
- Re: [PATCH -mm 5/7] add user namespace
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH -mm 5/7] add user namespace
- From: Cedric Le Goater <[email protected]>
- Re: [PATCH -mm 5/7] add user namespace
- From: "Serge E. Hallyn" <[email protected]>
- Re: [PATCH -mm 5/7] add user namespace
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH -mm 5/7] add user namespace
- From: Dave Hansen <[email protected]>
- Re: [PATCH -mm 5/7] add user namespace
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH -mm 5/7] add user namespace
- From: Dave Hansen <[email protected]>
- Re: [PATCH -mm 5/7] add user namespace
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH -mm 5/7] add user namespace
- From: Dave Hansen <[email protected]>
- Re: [PATCH -mm 5/7] add user namespace
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH -mm 5/7] add user namespace
- From: "Serge E. Hallyn" <[email protected]>
- Re: [PATCH -mm 5/7] add user namespace
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH -mm 5/7] add user namespace
- From: Dave Hansen <[email protected]>
- Re: [PATCH -mm 5/7] add user namespace
- Prev by Date: Re: 2.6.18 Headers - Long
- Next by Date: [PATCH 1/1] Add efi e820 memory mapping on x86 [try #1]
- Previous by thread: Re: [PATCH -mm 5/7] add user namespace
- Next by thread: Re: [PATCH -mm 5/7] add user namespace
- Index(es):