summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sysctl.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-06-30 19:57:06 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-06-30 19:57:06 +0000
commitc020dda5e1cf3952476edda2e2d4cb6a6add8b46 (patch)
tree4d6e52cc186e7e9c7415ba670bc3e70e24d353b1 /sys/kern/kern_sysctl.c
parent396f70ce0db276ab8287db4c67d36ba435c2b247 (diff)
Add getsockopt SOL_SOCKET SO_PEERCRED support. This behaves similar to
getpeereid(2), but also supplies the remote pid. This is supplied in a 'struct sockpeercred' (unlike Linux -- they showed how little they know about real unix by calling theirs 'struct ucred'). ok guenther ajacoutot
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r--sys/kern/kern_sysctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 401280e5101..52161fbe068 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.186 2010/06/29 16:39:22 guenther Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.187 2010/06/30 19:57:05 deraadt Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -66,6 +66,7 @@
#include <sys/pipe.h>
#include <sys/eventvar.h>
#include <sys/socketvar.h>
+#include <sys/socket.h>
#include <sys/domain.h>
#include <sys/protosw.h>
#ifdef __HAVE_TIMECOUNTER