]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0e9807c24772c1898065d47fea6de3b6ff186eec
treedec3691908348b240f2176ce681a7e4aa75e5fde
parent1e5ed5b4d5a9924b9ec96032051e81bc6340728e
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 60421c9 (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