Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Don't bother caching egid. It'll be removed soon.



details:   https://anonhg.NetBSD.org/src/rev/6646ddbc0784
branches:  trunk
changeset: 750417:6646ddbc0784
user:      elad <elad%NetBSD.org@localhost>
date:      Wed Dec 30 22:12:12 2009 +0000

description:
Don't bother caching egid. It'll be removed soon.

diffstat:

 sys/kern/uipc_socket.c  |  5 ++---
 sys/kern/uipc_socket2.c |  5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r efee0d5dd733 -r 6646ddbc0784 sys/kern/uipc_socket.c
--- a/sys/kern/uipc_socket.c    Wed Dec 30 21:03:48 2009 +0000
+++ b/sys/kern/uipc_socket.c    Wed Dec 30 22:12:12 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_socket.c,v 1.199 2009/12/30 06:58:50 elad Exp $   */
+/*     $NetBSD: uipc_socket.c,v 1.200 2009/12/30 22:12:12 elad Exp $   */
 
 /*-
  * Copyright (c) 2002, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.199 2009/12/30 06:58:50 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.200 2009/12/30 22:12:12 elad Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_sock_counters.h"
@@ -561,7 +561,6 @@
 #endif
        uid = kauth_cred_geteuid(l->l_cred);
        so->so_uidinfo = uid_find(uid);
-       so->so_egid = kauth_cred_getegid(l->l_cred);
        so->so_cpid = l->l_proc->p_pid;
        if (lockso != NULL) {
                /* Caller wants us to share a lock. */
diff -r efee0d5dd733 -r 6646ddbc0784 sys/kern/uipc_socket2.c
--- a/sys/kern/uipc_socket2.c   Wed Dec 30 21:03:48 2009 +0000
+++ b/sys/kern/uipc_socket2.c   Wed Dec 30 22:12:12 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_socket2.c,v 1.105 2009/12/30 18:33:53 elad Exp $  */
+/*     $NetBSD: uipc_socket2.c,v 1.106 2009/12/30 22:12:12 elad Exp $  */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket2.c,v 1.105 2009/12/30 18:33:53 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket2.c,v 1.106 2009/12/30 22:12:12 elad Exp $");
 
 #include "opt_mbuftrace.h"
 #include "opt_sb_max.h"
@@ -273,7 +273,6 @@
        so->so_send = head->so_send;
        so->so_receive = head->so_receive;
        so->so_uidinfo = head->so_uidinfo;
-       so->so_egid = head->so_egid;
        so->so_cpid = head->so_cpid;
 #ifdef MBUFTRACE
        so->so_mowner = head->so_mowner;



Home | Main Index | Thread Index | Old Index