Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: chrooting ntpd, netbsd-7 (and 7.99.1)



pettai%nordu.net@localhost (Fredrik Pettai) writes:

>So, isn't it time that NetBSD gets 'echo "ntpd_chrootdir=/var/chroot/ntpd/? > /etc/rc.conf.d/ntpd? ?

>Dec 27 04:08:41 netbsd-7_BETA ntpd[6375]: giving up resolving host 0.netbsd.pool.ntp.org: servname not supported for ai_socktype (9)

This says that it cannot resolve an entry ('ntp') in the services database.
You need to augment the chroot with something like:

  mkdir /var/chroot/ntpd/etc
  getent services ntp/udp ntp/tcp > /var/chroot/ntpd/etc/services

netbsd-current has a modified startup script that creates the services file.



Home | Main Index | Thread Index | Old Index