diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-06-30 19:57:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-06-30 19:57:06 +0000 |
commit | c020dda5e1cf3952476edda2e2d4cb6a6add8b46 (patch) | |
tree | 4d6e52cc186e7e9c7415ba670bc3e70e24d353b1 /sys/kern/kern_sysctl.c | |
parent | 396f70ce0db276ab8287db4c67d36ba435c2b247 (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.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 |