diff options
| author | elad <elad@NetBSD.org> | 2006-05-14 21:19:33 +0000 |
|---|---|---|
| committer | elad <elad@NetBSD.org> | 2006-05-14 21:19:33 +0000 |
| commit | 874fef3711edde585a8352a92a88c553884aa3f7 (patch) | |
| tree | f2cce7fe023eb295cf5f987c9f348cd0c8a5ab7e /sys/compat/linux/common/linux_socket.c | |
| parent | bad43188a8d7ec125210429b12d18e4e21e37872 (diff) | |
integrate kauth.
Diffstat (limited to 'sys/compat/linux/common/linux_socket.c')
| -rw-r--r-- | sys/compat/linux/common/linux_socket.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/compat/linux/common/linux_socket.c b/sys/compat/linux/common/linux_socket.c index 2436b422d25..15c00141fa9 100644 --- a/sys/compat/linux/common/linux_socket.c +++ b/sys/compat/linux/common/linux_socket.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_socket.c,v 1.61 2006/05/12 01:58:55 mrg Exp $ */ +/* $NetBSD: linux_socket.c,v 1.62 2006/05/14 21:24:50 elad Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.61 2006/05/12 01:58:55 mrg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.62 2006/05/14 21:24:50 elad Exp $"); #if defined(_KERNEL_OPT) #include "opt_inet.h" @@ -74,6 +74,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.61 2006/05/12 01:58:55 mrg Exp $" #include <sys/mbuf.h> #include <sys/syslog.h> #include <sys/exec.h> +#include <sys/kauth.h> #include <sys/sa.h> #include <sys/syscallargs.h> @@ -1529,8 +1530,7 @@ linux_sa_get(l, s, sgp, sap, osa, osalen) !IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr))) { sin6->sin6_scope_id = 0; } else { - int uid = p->p_cred && p->p_ucred ? - p->p_ucred->cr_uid : -1; + int uid = p->p_cred ? kauth_cred_geteuid(p->p_cred) : -1; log(LOG_DEBUG, "pid %d (%s), uid %d: obsolete pre-RFC2553 " |
