rpc: clean up decoding of gssproxy linux creds
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 21 Aug 2013 14:32:52 +0000 (10:32 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 6 Sep 2013 15:45:56 +0000 (11:45 -0400)
commit778e512bb1d3315c6b55832248cd30c566c081d7
tree16207aacec6e95a9d66a7db9fb994e949a130f03
parent11d2a1618e377236facdd404113992bde1083914
rpc: clean up decoding of gssproxy linux creds

We can use the normal coding infrastructure here.

Two minor behavior changes:

- we're assuming no wasted space at the end of the linux cred.
  That seems to match gss-proxy's behavior, and I can't see why
  it would need to do differently in the future.

- NGROUPS_MAX check added: note groups_alloc doesn't do this,
  this is the caller's responsibility.

Tested-by: Simo Sorce <simo@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/auth_gss/gss_rpc_xdr.c