Browse Source

pledge "dns rw" is not a reliable pattern. This means malloc() and other

types of functions (perhaps required by 'stdio' or 'libevent' will not
become available unless DNS suceeds.  Replace it with "stdio dns".
OPENBSD_5_9
deraadt 9 years ago
parent
commit
a131c912b6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/usr.sbin/ntpd/ntp_dns.c

+ 2
- 2
src/usr.sbin/ntpd/ntp_dns.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: ntp_dns.c,v 1.12 2015/10/09 01:37:09 deraadt Exp $ */
/* $OpenBSD: ntp_dns.c,v 1.13 2015/10/10 20:10:14 deraadt Exp $ */
/*
* Copyright (c) 2003-2008 Henning Brauer <henning@openbsd.org>
@ -90,7 +90,7 @@ ntp_dns(int pipe_ntp[2], struct ntpd_conf *nconf, struct passwd *pw)
fatal(NULL);
imsg_init(ibuf_dns, pipe_ntp[1]);
if (pledge("dns rw", NULL) == -1)
if (pledge("stdio dns", NULL) == -1)
err(1, "pledge");
while (quit_dns == 0) {


Loading…
Cancel
Save