Re: [PATCH] overlayfs: copy up i_uid/i_gid from the underlying inode

From: Miklos Szeredi
Date: Fri Aug 10 2012 - 12:09:16 EST


Andy Whitcroft <apw@xxxxxxxxxxxxx> writes:
> After a long hiatus I have had time to look into the issues
> highlighted by the i_uid/i_gid requirements from the VFS.
> I have identified a number of places which definatly did need
> the ids copying up and those are reflected in the patch below.
> I am not 100% convinced I have hit all of the places this might
> be needed but it cirtainly helps with the issues I was seeing
> with link and YAMA (which given YAMA is now gaining the link
> constraints in mainline in v3.6 we will see more issues here).
> were seeing and identify the places where
>
> Please consider for overlayfs.

ovl_setattr() also needs this, I think.

Updated patch below. Also pushed overlayfs.v14 with this patch to:

git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs.v14


Thanks,
Miklos
----