chroot (and privdrop) in the child procs at this point are all set and done so
pledge("inet id") promises are not required anymore.
analysis and OK @kn
-/* $OpenBSD: ntpd.c,v 1.131 2021/07/16 14:34:37 mestre Exp $ */
+/* $OpenBSD: ntpd.c,v 1.132 2021/07/16 14:36:09 mestre Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
*/
if (unveil("/usr/sbin/ntpd", "x") == -1)
err(1, "unveil /usr/sbin/ntpd");
- if (pledge("stdio inet settime proc exec id", NULL) == -1)
+ if (pledge("stdio settime proc exec", NULL) == -1)
err(1, "pledge");
while (quit == 0) {