OSDN Git Service

nfsd4: fix READ permission checking
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 3 Apr 2015 21:19:41 +0000 (17:19 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:04:05 +0000 (22:04 +0200)
commite2efc21fbad9a8d055586716fad4d4baaf210b56
treec6a01d66258262cbc29185267f17da7043a877cc
parent2556cb4a63a559a09112aba49d0112bd7dc4d2d6
nfsd4: fix READ permission checking

commit 6e4891dc289cd191d46ab7ba1dcb29646644f9ca upstream.

In the case we already have a struct file (derived from a stateid), we
still need to do permission-checking; otherwise an unauthorized user
could gain access to a file by sniffing or guessing somebody else's
stateid.

Fixes: dc97618ddda9 "nfsd4: separate splice and readv cases"
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfs4xdr.c