Commit Graph

33 Commits

Author SHA1 Message Date
Peter Wagner 280f764ef8 ntpd: update to 4.2.8p11
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2018-03-05 08:26:04 +01:00
Peter Wagner c6035be89a ntpd: remove ntp.conf
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2018-01-02 15:38:07 +01:00
Peter Wagner 04654291a4 ntpd: *mimic the behaviour of the busybox ntpd's "-S" flag
*create a seperate line for every server, otherwise only the first listed server will be used
2018-01-02 15:19:23 +01:00
Peter Wagner f612cecf49 ntpd: move ntpq to ntp-utils
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2017-08-16 03:31:00 +02:00
Philip Prindeville f5ca3ea50f ntpd: use UCI to synthesize minimal conf file
Borrowed code from Busybox's sysntpd.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-07-27 17:47:27 -06:00
Peter Wagner 8e493759b8 ntpd: update to 4.2.8p10
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2017-03-26 13:39:09 +02:00
Peter Wagner 325bba7095 ntpd: restart instead of killall and start
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2017-03-06 09:44:57 +01:00
Peter Wagner 228764bfe8 ntpd: only restart ntpd when the wan interface comes up and ntpd is enabled
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2017-03-06 09:20:28 +01:00
Peter Wagner fe80861f7c ntpd: cleanup Makefile and hotplug script
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2017-01-17 23:49:20 +01:00
Peter Wagner d5b4f5bd72 ntpd: add hotplug script that signals when ntp reaches the stratum level like the sysntp implementation
use ntpq to check the status of the ntp server as all other status scripts included in the ntp tarball are
	based on perl which would dramatically increase the footprint of ntpd

Signed-off-by: Peter Wagner <tripolar@gmx.at>
2017-01-16 22:28:01 +01:00
Peter Wagner 640d377622 ntpd: update to 4.2.8p9
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2016-11-27 20:18:56 +01:00
Peter Wagner 88abc1007d ntpd: update to 4.2.8p8
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2016-09-07 19:42:46 +02:00
Peter Wagner 82055305b3 ntpd: update to 4.2.8p7
Fixes the following CVEs:

    Bug 3020 / CVE-2016-1551: Refclock impersonation vulnerability, AKA: refclock-peering
        Reported by Matt Street and others of Cisco ASIG
    Bug 3012 / CVE-2016-1549: Sybil vulnerability: ephemeral association attack, AKA: ntp-sybil - MITIGATION ONLY
        Reported by Matthew Van Gundy of Cisco ASIG
    Bug 3011 / CVE-2016-2516: Duplicate IPs on unconfig directives will cause an assertion botch
        Reported by Yihan Lian of the Cloud Security Team, Qihoo 360
    Bug 3010 / CVE-2016-2517: Remote configuration trustedkey/requestkey values are not properly validated
        Reported by Yihan Lian of the Cloud Security Team, Qihoo 360
    Bug 3009 / CVE-2016-2518: Crafted addpeer with hmode > 7 causes array wraparound with MATCH_ASSOC
        Reported by Yihan Lian of the Cloud Security Team, Qihoo 360
    Bug 3008 / CVE-2016-2519: ctl_getitem() return value not always checked
        Reported by Yihan Lian of the Cloud Security Team, Qihoo 360
    Bug 3007 / CVE-2016-1547: Validate crypto-NAKs, AKA: nak-dos
        Reported by Stephen Gray and Matthew Van Gundy of Cisco ASIG
    Bug 2978 / CVE-2016-1548: Interleave-pivot - MITIGATION ONLY
        Reported by Miroslav Lichvar of RedHat and separately by Jonathan Gardner of Cisco ASIG
    Bug 2952 / CVE-2015-7704: KoD fix: peer associations were broken by the fix for NtpBug2901, AKA: Symmetric active/passive mode is broken
        Reported by Michael Tatarinov, NTP Project Developer Volunteer
    Bug 2945 / Bug 2901 / CVE-2015-8138: Zero Origin Timestamp Bypass, AKA: Additional KoD Checks
        Reported by Jonathan Gardner of Cisco ASIG
    Bug 2879 / CVE-2016-1550: Improve NTP security against buffer comparison timing attacks, authdecrypt-timing, AKA: authdecrypt-timing
        Reported independently by Loganaden Velvindron, and Matthew Van Gundy and Stephen Gray of Cisco ASIG.

Signed-off-by: Peter Wagner <tripolar@gmx.at>
2016-05-04 18:49:28 +02:00
Peter Wagner 26beaa56e1 ntpd: update to 4.2.8p6
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2016-01-25 20:25:47 +01:00
Peter Wagner a0fac8b9a0 ntpd: update to 4.2.8p5
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2016-01-14 17:50:10 +01:00
Alexandru Ardelean 2238ccc7c2 ntpd: add libcap to default dependencies of the ntpd package
Seems ntpdate also requires this lib:
```
Package ntpdate is missing dependencies for the following libraries:
libcap.so.2
make[2]: *** [/store/buildbot/slave/ar71xx/build/bin/ar71xx/packages/packages/ntpdate_4.2.8p4-1_ar71xx.ipk] Error 1
make[2]: Leaving directory `/store/buildbot/slave/ar71xx/build/feeds/packages/net/ntpd'
```

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2015-12-13 23:14:52 +02:00
Peter Wagner b65967668d ntpd: update to 4.2.8p4
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2015-11-22 00:59:39 +01:00
Jo-Philipp Wich cbf11196b7 ntpd: fix fortify source compatibility
The ntpd package ships autoconf macros which attempt to test for the C99
compliance of `snprintf()` and `vsnprintf()`.

Those macros unconditionally consider the functions not compliant in a cross
compile setting and therfore break all subsequent configure tests because
the `snprintf` and `vsnprintf` symbols are shadowed with `#define` directives
redirecting them to their respectiv gnulib replacements.

The fortify source headers in turn will `#undef` those defines when wrapping
the associated functions and therfore cause all `conftest` programs to emit
a failure.

Pass the required magic autoconf cache variables via `CONFIGURE_VARS` to let
`./configure` assume C99 compliance of the affected functions, thus fixing
the build.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-26 17:17:13 +02:00
Christian Pointner 80396166a8 ntpd: enable ATOM (PPS) support
Signed-off-by: Christian Pointner <equinox@spreadspace.org>
2015-05-25 18:45:23 +02:00
Peter Wagner 0135d8e2bd ntpd: fix typo
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2015-04-13 18:53:17 +02:00
Peter Wagner 2c1c2de230 Currently the hotplug script never starts because it assumes the wrong
path to the binary. Fix the path.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2015-04-13 18:14:27 +02:00
Peter Wagner f4ef2c8fd7 ntpd: update to 4.2.8p2
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2015-04-12 20:56:51 +02:00
Nicolas Thill e24dfafb01 remove uneeded PKG_BUILD_DIR & PKG_CAT overrides
Signed-off-by: Nicolas Thill <nico@openwrt.org>
2015-02-22 02:37:56 +01:00
Peter Wagner a957258b78 ntpd: update to 4.2.8p1
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2015-02-09 14:41:44 +01:00
Peter Wagner 99aad1438a [ntpd] fix deps and cleanup the Makefile
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2015-01-11 18:34:29 +01:00
Peter Wagner e40c1e3586 ntpd: update to 4.2.8 and remove nossl support
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2014-12-22 12:36:32 +01:00
Ian Leonard 1aff45c6dd ntpd: add SPDX license information
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2014-11-25 23:43:58 -08:00
Michael Heimpold bb5d39cc98 ntpd: fix a small typo in the default description
Reported by amanual on IRC, thanks.
While at, update copyright timestamp.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2014-11-23 20:30:11 +01:00
Peter Wagner 0d260899aa openssh,ntpd: move USERID to the server only as the client utils don't need a user/group
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2014-10-14 18:00:42 +02:00
John Crispin d4042ec35e generic userid: use the new USERID api
recent changes in trunk allow us to specify the userid inside the openwrt makefile.
the info is stored int he meta data of the IPK contorl file and users are generated
by the new generic postinst trigger.

Signed-off-by: John Crispin <blogic@openwrt.org>
2014-10-08 03:45:30 +02:00
Steven Barth 4d5d3f47d1 ntpd: remove spurious libelf dependency
Signed-off-by: Steven Barth <steven@midlink.org>
2014-07-18 11:41:11 +02:00
Etienne CHAMPETIER e598af5f99 PKG_CHECK_FORMAT_SECURITY: disable it for the failing packages (for now)
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
2014-06-24 23:01:14 +02:00
Peter Wagner d5dd6b3c31 ntpd: import from packages
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2014-06-16 11:54:42 +02:00