From 0ac20dc278a7e8fc7978cf3c1dfa8889226bfab5 Mon Sep 17 00:00:00 2001 From: mestre Date: Wed, 27 Apr 2016 10:16:10 +0000 Subject: 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" --- usr.sbin/dhcpd/dhcpd.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'usr.sbin/dhcpd/dhcpd.c') 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 @@ -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); -- cgit v1.2.3-59-g8ed1b