ovl: setattr: check permissions before copy-up
authorMiklos Szeredi <miklos@szeredi.hu>
Fri, 11 Dec 2015 15:30:49 +0000 (16:30 +0100)
committerMiklos Szeredi <miklos@szeredi.hu>
Fri, 11 Dec 2015 15:30:49 +0000 (16:30 +0100)
commitcf9a6784f7c1b5ee2b9159a1246e327c331c5697
tree00479d7bda053b037fe13c7408e3540365f907bf
parented06e069775ad9236087594a1c1667367e983fb5
ovl: setattr: check permissions before copy-up

Without this copy-up of a file can be forced, even without actually being
allowed to do anything on the file.

[Arnd Bergmann] include <linux/pagemap.h> for PAGE_CACHE_SIZE (used by
MAX_LFS_FILESIZE definition).

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Cc: <stable@vger.kernel.org>
fs/overlayfs/inode.c
fs/overlayfs/super.c