diff options
author | 2016-04-27 10:16:10 +0000 | |
---|---|---|
committer | 2016-04-27 10:16:10 +0000 | |
commit | 0ac20dc278a7e8fc7978cf3c1dfa8889226bfab5 (patch) | |
tree | fd9dcbbb0808a5d8583835c3b1862656d13c6b69 /usr.sbin/dhcpd/dhcpd.c | |
parent | typo: wil -> will (diff) | |
download | wireguard-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/dhcpd.c')
-rw-r--r-- | usr.sbin/dhcpd/dhcpd.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.sbin/dhcpd/dhcpd.c b/usr.sbin/dhcpd/dhcpd.c index 5ffc2155770..d137d0e39b7 100644 --- a/usr.sbin/dhcpd/dhcpd.c +++ b/usr.sbin/dhcpd/dhcpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcpd.c,v 1.50 2016/02/06 23:50:10 krw Exp $ */ +/* $OpenBSD: dhcpd.c,v 1.51 2016/04/27 10:16:10 mestre Exp $ */ /* * Copyright (c) 2004 Henning Brauer <henning@cvs.openbsd.org> @@ -240,12 +240,8 @@ main(int argc, char *argv[]) } } - if (udpsockmode) { + if (udpsockmode) udpsock_startup(udpaddr); - } else { - if (pledge("stdio rpath inet sendfd proc id", NULL) == -1) - err(1, "pledge"); - } icmp_startup(1, lease_pinged); |