patch-2.4.0-test9 linux/net/sunrpc/auth_unix.c
Next file: linux/net/sunrpc/clnt.c
Previous file: linux/net/socket.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Mon Sep 25 13:13:53 2000
- Orig file:
v2.4.0-test8/linux/net/sunrpc/auth_unix.c
- Orig date:
Mon Mar 20 08:14:04 2000
diff -u --recursive --new-file v2.4.0-test8/linux/net/sunrpc/auth_unix.c linux/net/sunrpc/auth_unix.c
@@ -180,7 +180,8 @@
memcpy(p, clnt->cl_nodename, n);
p += (n + 3) >> 2;
- if (ruid) {
+ /* Note: we don't use real uid if it involves raising priviledge */
+ if (ruid && cred->uc_uid != 0 && cred->uc_gid != 0) {
*p++ = htonl((u32) cred->uc_uid);
*p++ = htonl((u32) cred->uc_gid);
} else {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)