]> git.itanic.dy.fi Git - linux-stable/commit
nfsd4: permit layoutget of executable-only files
authorBenjamin Coddington <bcodding@redhat.com>
Tue, 19 Dec 2017 14:35:25 +0000 (09:35 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Mar 2018 09:58:48 +0000 (10:58 +0100)
commit5c503ff4940c1583890971a8cb410bfce21e11d8
tree3465e7f60ce97aa648579df43f1da8326e47a5a1
parent9bf0b8a65f1aa3eeeaf18bf75d46cef90acc4411
nfsd4: permit layoutget of executable-only files

[ Upstream commit 66282ec1cf004c09083c29cb5e49019037937bbd ]

Clients must be able to read a file in order to execute it, and for pNFS
that means the client needs to be able to perform a LAYOUTGET on the file.

This behavior for executable-only files was added for OPEN in commit
a043226bc140 "nfsd4: permit read opens of executable-only files".

This fixes up xfstests generic/126 on block/scsi layouts.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfs4proc.c