Browse Source

the ntp dns process only needs tame "dns rw" to operate. at least,

that's the case after kernel code got fixed to handle inet6 for dns...
OPENBSD_5_9
deraadt 9 years ago
parent
commit
5138effbbd
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/usr.sbin/ntpd/ntp_dns.c

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

@ -1,4 +1,4 @@
/* $OpenBSD: ntp_dns.c,v 1.10 2015/03/24 18:25:27 henning Exp $ */
/* $OpenBSD: ntp_dns.c,v 1.11 2015/10/03 02:48:54 deraadt Exp $ */
/* /*
* Copyright (c) 2003-2008 Henning Brauer <henning@openbsd.org> * Copyright (c) 2003-2008 Henning Brauer <henning@openbsd.org>
@ -90,6 +90,9 @@ ntp_dns(int pipe_ntp[2], struct ntpd_conf *nconf, struct passwd *pw)
fatal(NULL); fatal(NULL);
imsg_init(ibuf_dns, pipe_ntp[1]); imsg_init(ibuf_dns, pipe_ntp[1]);
if (tame("dns rw", NULL) == -1)
err(1, "tame");
while (quit_dns == 0) { while (quit_dns == 0) {
pfd[0].fd = ibuf_dns->fd; pfd[0].fd = ibuf_dns->fd;
pfd[0].events = POLLIN; pfd[0].events = POLLIN;


Loading…
Cancel
Save