-/* $OpenBSD: kern_pledge.c,v 1.82 2015/10/28 09:35:03 deraadt Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.83 2015/10/28 12:03:39 deraadt Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
[SYS_bind] = PLEDGE_INET | PLEDGE_UNIX | PLEDGE_DNS,
[SYS_getsockname] = PLEDGE_INET | PLEDGE_UNIX | PLEDGE_DNS,
- /* XXX remove this, and the code in uipc_syscalls.c */
- [SYS_dnssocket] = PLEDGE_DNS,
- [SYS_dnsconnect] = PLEDGE_DNS,
-
[SYS_listen] = PLEDGE_INET | PLEDGE_UNIX,
[SYS_accept4] = PLEDGE_INET | PLEDGE_UNIX,
[SYS_accept] = PLEDGE_INET | PLEDGE_UNIX,
-; $OpenBSD: syscalls.master,v 1.163 2015/10/18 00:04:43 deraadt Exp $
+; $OpenBSD: syscalls.master,v 1.164 2015/10/28 12:03:39 deraadt Exp $
; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
156 OBSOL ogetdirentries
157 OBSOL statfs25
158 OBSOL fstatfs25
-159 STD { int sys_dnsconnect(int s, const struct sockaddr *name, \
- socklen_t namelen); }
-160 STD { int sys_dnssocket(int domain, int type, int protocol); }
+159 UNIMPL
+160 UNIMPL
161 STD { int sys_getfh(const char *fname, fhandle_t *fhp); }
162 OBSOL ogetdomainname
163 OBSOL osetdomainname
-/* $OpenBSD: uipc_syscalls.c,v 1.120 2015/10/26 12:17:03 tedu Exp $ */
+/* $OpenBSD: uipc_syscalls.c,v 1.121 2015/10/28 12:03:39 deraadt Exp $ */
/* $NetBSD: uipc_syscalls.c,v 1.19 1996/02/09 19:00:48 christos Exp $ */
/*
int copyaddrout(struct proc *, struct mbuf *, struct sockaddr *, socklen_t,
socklen_t *);
-/* XXX dnssocket() - temporary backwards compat */
-int
-sys_dnssocket(struct proc *p, void *v, register_t *retval)
-{
- struct sys_socket_args /* {
- syscallarg(int) domain;
- syscallarg(int) type;
- syscallarg(int) protocol;
- } */ *uap = v;
-
- SCARG(uap, type) |= SOCK_DNS;
- return sys_socket(p, v, retval);
-}
-
int
sys_socket(struct proc *p, void *v, register_t *retval)
{
return (error);
}
-/* XXX dnsconnect() - temporary backwards compat */
-int
-sys_dnsconnect(struct proc *p, void *v, register_t *retval)
-{
- return sys_connect(p, v, retval);
-}
-
/* ARGSUSED */
int
sys_connect(struct proc *p, void *v, register_t *retval)