]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ovl: dilute permission checks on lower only if not special file
authorVivek Goyal <vgoyal@redhat.com>
Wed, 13 Jul 2016 15:00:14 +0000 (11:00 -0400)
committerShan Hai <shan.hai@oracle.com>
Fri, 4 Aug 2017 05:51:30 +0000 (13:51 +0800)
commit4c626f526e089031bd4a373baeb901c6bd260e3b
treeeea5ada7e853955969180f1f6bdc970fed43b898
parent30c812b8232dccb5dad2b18171287d546305df14
ovl: dilute permission checks on lower only if not special file

Right now if file is on lower/, we remove MAY_WRITE/MAY_APPEND bits from
mask as lower/ will never be written and file will be copied up. But this
is not true for special files. These files are not copied up and are opened
in place. So don't dilute the checks for these types of files.

Reported-by: Dan Walsh <dwalsh@redhat.com>
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Orabug: 26401569

(backport upstream commit e29841a0ab3d03e77313abd8fb4c16e80fb26e29)

Signed-off-by: Shan Hai <shan.hai@oracle.com>
Reviewed-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
fs/overlayfs/inode.c