sunrpc: Simplify auth_unix now that everything is a kgid_t
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 2 Feb 2013 00:46:42 +0000 (16:46 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 13 Feb 2013 14:15:18 +0000 (06:15 -0800)
commit9132adb0212c7ddf37d1c2a26c12f8fe7706827d
treef6d92461934090e27e33df0dc530482b5a3ea40a
parent0b4d51b02a2e941beec6f02a6c7a32c5a28c5b43
sunrpc: Simplify auth_unix now that everything is a kgid_t

In unx_create_cred directly assign gids from acred->group_info
to cred->uc_gids.

In unx_match directly compare uc_gids with group_info.

Now that both group_info and unx_cred gids are stored as kgids
this is valid and the extra layer of translation can be removed.

Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
net/sunrpc/auth_unix.c