summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorzhengbin <zhengbin13@huawei.com>2018-11-30 16:04:25 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-21 10:34:45 +0100
commit7b53267d4ef57db426c31b32ee3f0631d1044553 (patch)
tree0f548e4c06ccdd000ded85103554341306911a13 /scripts
parent9713d45433c6e0fa15e625e92f1bf88179d471b4 (diff)
nfsd: Return EPERM, not EACCES, in some SETATTR cases
[ Upstream commit 255fbca65137e25b12bced18ec9a014dc77ecda0 ] As the man(2) page for utime/utimes states, EPERM is returned when the second parameter of utime or utimes is not NULL, the caller's effective UID does not match the owner of the file, and the caller is not privileged. However, in a NFS directory mounted from knfsd, it will return EACCES (from nfsd_setattr-> fh_verify->nfsd_permission). This patch fixes that. Signed-off-by: zhengbin <zhengbin13@huawei.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions