rpc: comment on linux_cred encoding, treat all as unsigned
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 23 Aug 2013 15:17:53 +0000 (11:17 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Oct 2013 16:41:02 +0000 (09:41 -0700)
commit25aa4abcf089f849705d232f9028516f9f95c121
treeff0d59fa9875617663f09b10e9b666d057b8489f
parent4a3c0a03cbc9eec8bafbcf76448494b469ef903b
rpc: comment on linux_cred encoding, treat all as unsigned

commit 6a36978e6931e6601be586eb313375335f2cfaa3 upstream.

The encoding of linux creds is a bit confusing.

Also: I think in practice it doesn't really matter whether we treat any
of these things as signed or unsigned, but unsigned seems more
straightforward: uid_t/gid_t are unsigned and it simplifies the ngroups
overflow check.

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