SUNRPC: Fix machine creds in generic_create_cred and generic_match
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 23 Jan 2012 17:49:36 +0000 (12:49 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 23 Jan 2012 22:03:46 +0000 (14:03 -0800)
commit875ad3f8e7dff6bc1d053e5bfe73d8e8d2e6ae67
treedec3691908348b240f2176ce681a7e4aa75e5fde
parentdcd6c92267155e70a94b3927bce681ce74b80d1f
SUNRPC: Fix machine creds in generic_create_cred and generic_match

- generic_create_cred needs to copy the '.principal' field.
- generic_match needs to ignore the groups and match on the '.principal'
  field.

This fixes an Oops that was introduced by commit 68c9715 (SUNRPC:
Clean up the RPCSEC_GSS service ticket requests)

Reported-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Tested-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/auth_generic.c