]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfsd4: name->id mapping should fail with BADOWNER not BADNAME
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 4 Jan 2011 23:02:15 +0000 (18:02 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:14:14 +0000 (15:14 -0800)
commit39708a71e7632872d2678d0cba0448bd867cddf9
tree26865d3e4de20f59c95d0df7a051bee773ae82a7
parent2a5771645face3922702fecedf3cd75263434f96
nfsd4: name->id mapping should fail with BADOWNER not BADNAME

commit f6af99ec1b261e21219d5eba99e3af48fc6c32d4 upstream.

According to rfc 3530 BADNAME is for strings that represent paths;
BADOWNER is for user/group names that don't map.

And the too-long name should probably be BADOWNER as well; it's
effectively the same as if we couldn't map it.

Reported-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Reported-by: Simon Kirby <sim@hostway.ca>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfsd/nfs4idmap.c
fs/nfsd/nfsd.h
fs/nfsd/nfsproc.c