Re: [PATCH v11] fs: Add VirtualBox guest shared folder (vboxsf) support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hans de Goede <hdegoede@xxxxxxxxxx> wrote:

> >
> > 		opts->fs_uid = make_kuid(current_user_ns(), option);
> > 		if (!uid_valid(opts->fs_uid))
> > 			return -EINVAL;
> >
> > sort of thing (excerpt from fs/fat/inode.c).
> 
> Shouldn't this use the user-namespace from the filesystem-context?

No.  The uid you're given is with regard to the calling process's namespace,
not the filesystem's.

David



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux