]> Pileus Git - ~andy/linux/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)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 4 Jan 2011 23:21:36 +0000 (18:21 -0500)
commitf6af99ec1b261e21219d5eba99e3af48fc6c32d4
tree828eab9238b2178e3d13abde226edcb1ec0c57a8
parent255c7cf810e4776ae8f1023332060459f30d8a2a
nfsd4: name->id mapping should fail with BADOWNER not BADNAME

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.

Cc: stable@kernel.org
Reported-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Reported-by: Simon Kirby <sim@hostway.ca>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4idmap.c
fs/nfsd/nfsd.h
fs/nfsd/nfsproc.c