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:
parent
cb6dda995b
commit
1400c0676a
3 changed files with 4 additions and 2 deletions
|
@ -10,7 +10,7 @@ server 1.pool.ntp.org
|
||||||
server 2.pool.ntp.org
|
server 2.pool.ntp.org
|
||||||
|
|
||||||
# Only allow read-only access from localhost
|
# Only allow read-only access from localhost
|
||||||
restrict default nomodify nopeer
|
restrict default kod noquery nomodify nopeer
|
||||||
restrict 127.0.0.1
|
restrict 127.0.0.1
|
||||||
|
|
||||||
# Location of drift and log files
|
# Location of drift and log files
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
mkdir -p /var/chroot/ntpd/etc
|
mkdir -p /var/chroot/ntpd/etc
|
||||||
|
mkdir -p /var/chroot/ntpd/var/db/ntpd
|
||||||
cp /etc/services /var/chroot/ntpd/etc/
|
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
|
exec ntpd -g -u ntpd:ntpd -n -i /var/chroot/ntpd
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'ntp'
|
# Template file for 'ntp'
|
||||||
pkgname=ntp
|
pkgname=ntp
|
||||||
version=4.2.8
|
version=4.2.8
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-crypto --enable-linuxcap --enable-ipv6 --enable-ntp-signd
|
configure_args="--with-crypto --enable-linuxcap --enable-ipv6 --enable-ntp-signd
|
||||||
ol_cv_pthread_select_yields=yes"
|
ol_cv_pthread_select_yields=yes"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue