X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=net%2Fsunrpc%2Fauth_unix.c;h=e50502d8ceb777a6c6795e22673753c4eea6e538;hb=8cd7920370a3715ccbd1c98bf33f172b8837dc0b;hp=4cb70dc6e7ad26e3008ab9be4f617af79e3cc0d1;hpb=c9e2a72ff1acfdffdecb338b3d997f90c507e665;p=~andy%2Flinux diff --git a/net/sunrpc/auth_unix.c b/net/sunrpc/auth_unix.c index 4cb70dc6e7a..e50502d8ceb 100644 --- a/net/sunrpc/auth_unix.c +++ b/net/sunrpc/auth_unix.c @@ -129,6 +129,9 @@ unx_match(struct auth_cred *acred, struct rpc_cred *rcred, int flags) for (i = 0; i < groups ; i++) if (cred->uc_gids[i] != GROUP_AT(acred->group_info, i)) return 0; + if (groups < NFS_NGROUPS && + cred->uc_gids[groups] != NOGROUP) + return 0; return 1; }