diff options
| author | 2010-06-30 19:57:03 +0000 | |
|---|---|---|
| committer | 2010-06-30 19:57:03 +0000 | |
| commit | d6f887bce5606992790fe5fd1f47f0214ebcbfa1 (patch) | |
| tree | 4ecaf1208d807bc23115de1b43d3052667575616 /sys/kern/kern_sysctl.c | |
| parent | timeout_add -> timeout_add_msec (diff) | |
| download | wireguard-openbsd-d6f887bce5606992790fe5fd1f47f0214ebcbfa1.tar.xz wireguard-openbsd-d6f887bce5606992790fe5fd1f47f0214ebcbfa1.zip | |
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.c | 3 |
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 |
