Home
last modified time | relevance | path

Searched hist:"255 fbca6" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/nfsd/
H A Dvfs.c255fbca6 Fri Nov 30 02:04:25 CST 2018 zhengbin <zhengbin13@huawei.com> nfsd: Return EPERM, not EACCES, in some SETATTR cases

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>