summaryrefslogtreecommitdiffstats
path: root/package/chrony
Commit message (Collapse)AuthorAgeFilesLines
* chrony: fix build failure due to missing inclusion of util.hGiulio Benetti2018-09-271-0/+28
| | | | | | | | | | | | | | | | | | | | | During build package stops with linker error: hash_intmd5.o: In function `HSH_Hash': hash_intmd5.c:(.text+0x963): undefined reference to `MIN' This is due to missing util.h inclusion. util.h contains MIN() macro definition. Add upstream patch: https://git.tuxfamily.org/chrony/chrony.git/commit/?id=948ecf84314f78da82e0e2b07b6570ca9cff86c8 to add #include "util.h" in hash_intmd5.c Fixes: http://autobuild.buildroot.net/results/8f0/8f0d53b1d5a899e56540c859b908cbc1eaa223d5/ http://autobuild.buildroot.net/results/3c6/3c609f94aff182c9ab47ef8ec4b9de03a4d20ffb/ http://autobuild.buildroot.net/results/f1f/f1fcae399fb640c19cf88c9333a92cbfab547932/ Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* chrony: bump to version 3.4Ferdinand van Aartsen2018-09-233-46/+4
| | | | | | | | Patch 0002-util-fall-back-to-reading-dev-urandom-when-getrandom.patch was applied upstream in this version, so it can be deleted. Signed-off-by: Ferdinand van Aartsen <ferdinand@ombud.nl> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* chrony: backport upstream patch to fix blocking on getrandom() at startup ↵Peter Korsgaard2018-08-091-0/+42
| | | | | | | | | | | | with recent kernels chrony calls getrandom() at startup if available, so it needs a workaround for the blocking behaviour on recent (4.14.39+), similar to what was done for util-linux in commit c4d86707cd6 (util-linux: add two upstream patches to fix blocking on getrandom() with recent kernels). Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* chrony: S49chrony: drop /etc/chrony.conf checkPeter Korsgaard2018-05-281-2/+0
| | | | | | | | | | | | | | | | With CHRONY_ARGS in /etc/default/chrony, chrony may asked to use an alternative configuration file (with the -f option), so drop the explicit /etc/chrony.conf check. In case the configuration file isn't present chrony will anyway loudly complain which is preferable to this silent failure: chronyd -f /non/existing/file.conf Could not open configuration file /non/existing/file.conf : No such file or directory Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* chrony: S49chrony: support a defaults filePeter Korsgaard2018-05-281-1/+3
| | | | | | For specifying custom options to chrony. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* chrony: fix build with muslBaruch Siach2017-11-151-0/+39
| | | | | | | | | | | | | | | The SCM_TIMESTAMPING_PKTINFO macro is missing from the socket.h header that musl libc provides as of version 1.1.16 that we currently use in Buildroot. Patch the code to add this macro locally until we update musl. Fixes: http://autobuild.buildroot.net/results/aab/aab3210d6d0c60fb07415d9bbdb09f2d4091446c/ http://autobuild.buildroot.net/results/fc8/fc8440db025f51c176240ca127bc68a367add21c/ Cc: Nathan Lynch <ntl@pobox.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* chrony: bump version to 3.2Peter Korsgaard2017-09-202-4/+6
| | | | | | | Also add a hash for the license file while we're at it. [Peter: use tuxfamily.org URL for annoucement] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* chrony: add optional seccomp supportPeter Korsgaard2017-09-201-1/+7
| | | | | | seccomp support has been available since chrony-2.2 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* boot, linux, package: use SPDX short identifier for GPLv2/GPLv2+Rahul Bedarkar2017-04-011-1/+1
| | | | | | | | | | | We want to use SPDX identifier for license strings as much as possible. SPDX short identifier for GPLv2/GPLv2+ is GPL-2.0/GPL-2.0+. This change is done by using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/\<GPLv2\>/GPL-2.0/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/chrony: bump version to 3.1Bernd Kuhls2017-03-052-4/+4
| | | | | Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* chrony: bump version to 2.4.1Peter Korsgaard2016-12-052-4/+4
| | | | | | | Fixes a crash issue with smoothtime directive. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* chrony: enable pps supportJames Knight2016-11-261-0/+6
| | | | | | | | | | | Chrony has the ability to support PPS. Its enablement is determined primarily from the existence of `sys/timepps.h`. This file is provided from the pps-tools package. Adjusting Chrony's Makefile to depend on the pps-tools package if a developer has included pps-tools as part of a build. Relates to 2cfc966f431c7c715b3fc11ca0467d47432fca33. Signed-off-by: James Knight <james.knight@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/chrony: fix systemd serviceChristian Stewart2016-07-151-1/+1
| | | | | | | | Fixes the systemd service, the binary is located at /usr/sbin not /usr/bin. Signed-off-by: Christian Stewart <christian@paral.in> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* chrony: bump to version 2.4Peter Korsgaard2016-06-072-4/+4
| | | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* chrony: bump versionPeter Korsgaard2016-04-282-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | From the release notes: Enhancements ------------ * Add support for NTP and command response rate limiting * Add support for dropping root privileges on Mac OS X, FreeBSD, Solaris * Add require and trust options for source selection * Enable logchange by default (1 second threshold) * Set RTC on Mac OS X with rtcsync directive * Allow binding to NTP port after dropping root privileges on NetBSD * Drop CAP_NET_BIND_SERVICE capability on Linux when NTP port is disabled * Resolve names in separate process when seccomp filter is enabled * Replace old records in client log when memory limit is reached * Don't reveal local time and synchronisation state in client packets * Don't keep client sockets open for longer than necessary * Ignore poll in KoD RATE packets as ntpd doesn't always set it correctly * Warn when using keys shorter than 80 bits * Add keygen command to generate random keys easily * Add serverstats command to report NTP and command packet statistics Bug fixes --------- * Fix clock correction after making step on Mac OS X * Fix building on Solaris Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/chrony: add optional support for libcapBernd Kuhls2016-02-211-0/+6
| | | | | | | | | | | | | | When libcap was compiled before, chrony will use it as optional dependency: $ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/sbin/chronyd | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libm.so.1] 0x0000000000000001 (NEEDED) Shared library: [libcap.so.2] 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.1] Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* chrony: security bump to version 2.2.1James Knight2016-02-112-4/+4
| | | | | | | | | Fixes: CVE-2016-1567: Impersonation between authenticated peers. Signed-off-by: James Knight <james.knight@rockwellcollins.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* chrony: bump to version 2.2James Knight2015-11-192-11/+10
| | | | | | | | | | | | | | With the new version, documentation is not generated part of the main build. This removes the need to alter the Makefile to remove the invoke on the `chrony.txt` target. Cleanup also explicitly disabling seccomp (since its experimental) and tomcrypt (Buildroot does not have libtomcrypt at this time). [Thomas: use tabs for indentation in the definition of CHRONY_CONF_OPTS.] Signed-off-by: James Knight <james.knight@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: Replace 'echo -n' by 'printf'Maxime Hadjinlian2015-10-041-2/+2
| | | | | | | | | | | | 'echo -n' is not a POSIX construct (no flag support), we shoud use 'printf', especially in init script. This patch was generated by the following command line: git grep -l 'echo -n' -- `git ls-files | grep -v 'patch'` | xargs sed -i 's/echo -n/printf/' Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* chrony: S49chrony: fix starting messagePeter Korsgaard2015-09-241-1/+1
| | | | | | Purely cosmetical. The OK/FAIL should go on the same line as "Starting ..". Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package: Fix source path for systemd's serviceMaxime Hadjinlian2015-07-131-1/+1
| | | | | | | | Otherwise the link would appear broken in output/target it's not that big a deal but at least it's coherent with what we already have. Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* chrony: systemd supportAlex Suykov2015-07-132-0/+19
| | | | | | | | | systemd has its own NTP daemon, which must be disabled before starting chrony. Possible (but unlikely) conflict with openntpd is not marked in either package. Signed-off-by: Alex Suykov <alex.suykov@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: remove non-IPv6 dependencies and tweaksGustavo Zacarias2015-04-221-4/+0
| | | | | | | | Now that IPv6 is mandatory remove package dependencies and conditionals for it. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* chrony: bump versionPeter Korsgaard2014-12-292-1/+4
| | | | | | And add hash file. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* packages: rename FOO_CONF_OPT into FOO_CONF_OPTSThomas De Schampheleire2014-10-041-5/+5
| | | | | | | | | | | | To be consistent with the recent change of FOO_MAKE_OPT into FOO_MAKE_OPTS, make the same change for FOO_CONF_OPT. Sed command used: find * -type f | xargs sed -i 's#_CONF_OPT\>#&S#g' Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* chrony: disable docs buildGustavo Zacarias2014-09-011-0/+6
| | | | | | | | Needs makeinfo and we don't care about docs. Fixes: http://autobuild.buildroot.net/results/fd0/fd03a86ed670c765d9f0a1ed6cc913079e030fc9/ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* chrony: bump versionPeter Korsgaard2014-08-121-1/+1
| | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* chrony: add sysv initscriptPeter Korsgaard2014-08-122-0/+30
| | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package: remove the trailing slash sign from <PKG>_SITE variableJerzy Grzegorek2014-07-311-1/+1
| | | | | | | | | | | | Since the trailing slash is stripped from $($(PKG)_SITE) by pkg-generic.mk: $(call DOWNLOAD,$($(PKG)_SITE:/=)/$($(PKG)_SOURCE)) so it is redundant. This patch removes it from $(PKG)_SITE variable for BR consistency. Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* chrony: bump versionPeter Korsgaard2014-03-111-1/+1
| | | | | | | | | | | | | | | | | Fixes CVE-2014-0021: Amplification in chrony control protocol In the chrony control protocol some replies are significantly larger than their requests, which allows an attacker to use it in an amplification attack. With hosts allowed by cmdallow (only localhost by default) the maximum amplification factor is 9.2. Hosts that are not allowed receive a small reply with error status, which allows amplification of up to 1.5. To fix the problem, the protocol has been modified to require padding in the request packet, so replies are never larger than their requests. Also, chronyd no longer sends replies with error status to hosts that are not allowed by cmdallow. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* packages: remove uninstall commandsThomas De Schampheleire2013-12-061-4/+0
| | | | | Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* chrony: bump to version 1.29Jerzy Grzegorek2013-10-101-1/+1
| | | | | Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Normalize separator size to 80Alexandre Belloni2013-06-061-2/+2
| | | | | Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* chrony: new packageNathan Lynch2013-05-072-0/+54
Signed-off-by: Nathan Lynch <ntl@pobox.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
OpenPOWER on IntegriCloud