Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357811
b: refs/heads/master
c: a570abb
h: refs/heads/master
i:
  357809: cb1ea57
  357807: e851bce
v: v3
  • Loading branch information
Eric W. Biederman committed Feb 13, 2013
1 parent dc072b1 commit a689ef9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9e469e30d712b54cd3ff4a82d4dd5510522b8f16
refs/heads/master: a570abbb966ee7de6c4357a58be11a558fa7099b
6 changes: 3 additions & 3 deletions trunk/net/sunrpc/auth_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ unx_marshal(struct rpc_task *task, __be32 *p)
*/
p = xdr_encode_array(p, clnt->cl_nodename, clnt->cl_nodelen);

*p++ = htonl((u32) cred->uc_uid);
*p++ = htonl((u32) cred->uc_gid);
*p++ = htonl((u32) from_kuid(&init_user_ns, cred->uc_uid));
*p++ = htonl((u32) from_kgid(&init_user_ns, cred->uc_gid));
hold = p++;
for (i = 0; i < 16 && gid_valid(cred->uc_gids[i]); i++)
*p++ = htonl((u32) cred->uc_gids[i]);
*p++ = htonl((u32) from_kgid(&init_user_ns, cred->uc_gids[i]));
*hold = htonl(p - hold - 1); /* gid array length */
*base = htonl((p - base - 1) << 2); /* cred length */

Expand Down

0 comments on commit a689ef9

Please sign in to comment.