]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ovl: setattr: check permissions before copy-up
authorMiklos Szeredi <miklos@szeredi.hu>
Fri, 11 Dec 2015 15:30:49 +0000 (16:30 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:43:40 +0000 (15:43 -0700)
commit04205233d884fdd592d66ff98d85f879227b1117
tree469f4dd5b843c4239d1941d7a556e016c2b83c22
parent27a68451387a4134237af72051337e92b1bbc0ba
ovl: setattr: check permissions before copy-up

Orabug: 23330593

[ Upstream commit cf9a6784f7c1b5ee2b9159a1246e327c331c5697 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit c8e1bebf86dff9277e21e9a2769724ca05f40c02)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
fs/overlayfs/inode.c
fs/overlayfs/super.c