[PATCH][wily/xenial] ovl: copy new uid/gid into overlayfs runtime inode

Seth Forshee seth.forshee at canonical.com
Fri Mar 11 21:26:58 UTC 2016


On Fri, Mar 11, 2016 at 03:23:14PM -0600, Seth Forshee wrote:
> From: Konstantin Khlebnikov <koct9i at gmail.com>
> 
> Overlayfs must update uid/gid after chown, otherwise functions
> like inode_owner_or_capable() will check user against stale uid.
> Catched by xfstests generic/087, it chowns file and calls utimes.
> 
> Signed-off-by: Konstantin Khlebnikov <koct9i at gmail.com>
> Signed-off-by: Miklos Szeredi <miklos at szeredi.hu>
> Cc: <stable at vger.kernel.org>

Note that this should also come to us via upstream stable. If it will
make it into the next release via stable updates that's fine, I just
want to make sure we get it one way or the other in our next kernel
updates.




More information about the kernel-team mailing list