ntp: merge some improvements from NetBSD.

- Make the drift file available to the chroot dir.
- More restrictions added to the config file: kod, noquery.
This commit is contained in:
Juan RP 2014-12-27 16:05:32 +01:00
parent cb6dda995b
commit 1400c0676a
3 changed files with 4 additions and 2 deletions

View File

@ -10,7 +10,7 @@ server 1.pool.ntp.org
server 2.pool.ntp.org
# Only allow read-only access from localhost
restrict default nomodify nopeer
restrict default kod noquery nomodify nopeer
restrict 127.0.0.1
# Location of drift and log files

View File

@ -1,4 +1,6 @@
#!/bin/sh
mkdir -p /var/chroot/ntpd/etc
mkdir -p /var/chroot/ntpd/var/db/ntpd
cp /etc/services /var/chroot/ntpd/etc/
ln -fs /var/db/ntpd/drift /var/chroot/ntpd/var/db/ntpd/drift
exec ntpd -g -u ntpd:ntpd -n -i /var/chroot/ntpd

View File

@ -1,7 +1,7 @@
# Template file for 'ntp'
pkgname=ntp
version=4.2.8
revision=3
revision=4
build_style=gnu-configure
configure_args="--with-crypto --enable-linuxcap --enable-ipv6 --enable-ntp-signd
ol_cv_pthread_select_yields=yes"