"stdio inet". It took weeks to get to this point...
-/* $OpenBSD: constraint.c,v 1.17 2015/09/10 13:49:48 beck Exp $ */
+/* $OpenBSD: constraint.c,v 1.18 2015/10/09 03:50:40 deraadt Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
#include <unistd.h>
#include <time.h>
#include <tls.h>
+#include <err.h>
#include "log.h"
#include "ntpd.h"
case 0:
setproctitle("constraint from %s", hname);
+ if (pledge("stdio inet", NULL) == -1)
+ err(1, "pledge");
+
/* Child process */
if (dup2(pipes[1], CONSTRAINT_PASSFD) == -1)
fatal("%s dup2 CONSTRAINT_PASSFD", __func__);