From 55e7cdc38cb9ed52487fcd3c17cbbbe48002df05 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 20 Sep 2010 07:18:04 +0000 Subject: Move getpeereid(2) into COMPAT_O47. In 4.8 and onwards it is library code using socket options. ok matthew --- sys/kern/uipc_syscalls.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/kern/uipc_syscalls.c') diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index 533c53595aa..34ca6b04dcb 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_syscalls.c,v 1.76 2010/07/03 04:44:51 guenther Exp $ */ +/* $OpenBSD: uipc_syscalls.c,v 1.77 2010/09/20 07:18:03 deraadt Exp $ */ /* $NetBSD: uipc_syscalls.c,v 1.19 1996/02/09 19:00:48 christos Exp $ */ /* @@ -992,14 +992,15 @@ bad: return (error); } +#ifdef COMPAT_O47 /* * Get eid of peer for connected socket. */ /* ARGSUSED */ int -sys_getpeereid(struct proc *p, void *v, register_t *retval) +compat_o47_sys_getpeereid(struct proc *p, void *v, register_t *retval) { - struct sys_getpeereid_args /* { + struct compat_o47_sys_getpeereid_args /* { syscallarg(int) fdes; syscallarg(uid_t *) euid; syscallarg(gid_t *) egid; @@ -1036,6 +1037,7 @@ bad: m_freem(m); return (error); } +#endif /* COMPAT_O47 */ int sockargs(struct mbuf **mp, const void *buf, size_t buflen, int type) -- cgit v1.2.3