NFSD enforce filehandle check for source file in COPY
authorOlga Kornievskaia <kolga@netapp.com>
Fri, 19 Aug 2022 19:16:36 +0000 (15:16 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 26 Sep 2022 18:02:20 +0000 (14:02 -0400)
commit754035ff79a14886e68c0c9f6fa80adb21f12b53
tree080b5afd81c377e6eb4a5568a6d2d1ab87e31b39
parent97f8e62572555f8ad578d7b1739ba64d5d2cac0f
NFSD enforce filehandle check for source file in COPY

If the passed in filehandle for the source file in the COPY operation
is not a regular file, the server MUST return NFS4ERR_WRONG_TYPE.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4proc.c