summaryrefslogtreecommitdiffstats
path: root/usr.sbin/dhcpd/udpsock.c
diff options
context:
space:
mode:
authormestre <mestre@openbsd.org>2016-04-27 10:16:10 +0000
committermestre <mestre@openbsd.org>2016-04-27 10:16:10 +0000
commit0ac20dc278a7e8fc7978cf3c1dfa8889226bfab5 (patch)
treefd9dcbbb0808a5d8583835c3b1862656d13c6b69 /usr.sbin/dhcpd/udpsock.c
parenttypo: wil -> will (diff)
downloadwireguard-openbsd-0ac20dc278a7e8fc7978cf3c1dfa8889226bfab5.tar.xz
wireguard-openbsd-0ac20dc278a7e8fc7978cf3c1dfa8889226bfab5.zip
Remove pledge(2)'s that are called before chroot(2) since in the near future
this will be forbidden. The remaining pledge(2) calls after chroot(2) are still kept. OK semarie@ "it is time now"
Diffstat (limited to 'usr.sbin/dhcpd/udpsock.c')
-rw-r--r--usr.sbin/dhcpd/udpsock.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/dhcpd/udpsock.c b/usr.sbin/dhcpd/udpsock.c
index 61602292e7f..2c4c0503218 100644
--- a/usr.sbin/dhcpd/udpsock.c
+++ b/usr.sbin/dhcpd/udpsock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udpsock.c,v 1.6 2016/04/04 14:00:42 mestre Exp $ */
+/* $OpenBSD: udpsock.c,v 1.7 2016/04/27 10:16:10 mestre Exp $ */
/*
* Copyright (c) 2014 YASUOKA Masahiko <yasuoka@openbsd.org>
@@ -65,9 +65,6 @@ udpsock_startup(struct in_addr bindaddr)
error("setsocketopt IP_RECVIF failed for udp: %s",
strerror(errno));
- if (pledge("stdio rpath inet route sendfd proc id", NULL) == -1)
- error("pledge: %s", strerror(errno));
-
sin4.sin_family = AF_INET;
sin4.sin_len = sizeof(sin4);
sin4.sin_addr = bindaddr;