Commit e2e2b9d8 authored by J. Bruce Fields's avatar J. Bruce Fields Committed by popcornmix
Browse files

nfsd4: fix READ permission checking



[ Upstream commit 6e4891dc ]

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.

Cc: stable@vger.kernel.org
Fixes: dc97618d "nfsd4: separate splice and readv cases"
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 2c340cba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment