Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/kern/uipc_socket.c,v retrieving revision 1.121 retrieving revision 1.122 diff -u -p -r1.121 -r1.122 --- src/sys/kern/uipc_socket.c 2006/06/21 12:55:12 1.121 +++ src/sys/kern/uipc_socket.c 2006/07/23 22:06:11 1.122 @@ -1,4 +1,4 @@ -/* $NetBSD: uipc_socket.c,v 1.121 2006/06/21 12:55:12 yamt Exp $ */ +/* $NetBSD: uipc_socket.c,v 1.122 2006/07/23 22:06:11 ad Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -68,7 +68,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.121 2006/06/21 12:55:12 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.122 2006/07/23 22:06:11 ad Exp $"); #include "opt_sock_counters.h" #include "opt_sosend_loan.h" @@ -505,7 +505,7 @@ socreate(int dom, struct socket **aso, i so->so_mowner = &prp->pr_domain->dom_mowner; #endif if (l != NULL) { - uid = kauth_cred_geteuid(l->l_proc->p_cred); + uid = kauth_cred_geteuid(l->l_cred); } else { uid = 0; }