]> git.ipfire.org Git - thirdparty/chrony.git/log
thirdparty/chrony.git
11 years agoUpdate NEWS 1.29-security 1.29.1
Miroslav Lichvar [Fri, 31 Jan 2014 12:12:59 +0000 (13:12 +0100)] 
Update NEWS

11 years agoUpdate faq.txt
Miroslav Lichvar [Tue, 28 Jan 2014 12:28:11 +0000 (13:28 +0100)] 
Update faq.txt

11 years agoSend cmdmon error replies only to allowed hosts
Miroslav Lichvar [Fri, 24 Jan 2014 15:06:38 +0000 (16:06 +0100)] 
Send cmdmon error replies only to allowed hosts

The status codes STT_BADPKTVERSION, STT_BADPKTLENGTH, STT_NOHOSTACCESS
were sent even to hosts that were not allowed by cmdallow. Deprecate
STT_NOHOSTACCESS and ignore packets from hosts not allowed by cmdallow
completely.

11 years agoSupport previous protocol version in chronyc
Miroslav Lichvar [Fri, 24 Jan 2014 14:49:18 +0000 (15:49 +0100)] 
Support previous protocol version in chronyc

This adds compatibility with chronyd using the previous protocol version
(chrony versions 1.27, 1.28, 1.29).

11 years agoAdd padding to cmdmon requests to prevent amplification attack
Miroslav Lichvar [Fri, 24 Jan 2014 12:55:15 +0000 (13:55 +0100)] 
Add padding to cmdmon requests to prevent amplification attack

To prevent an attacker using chronyd in an amplification attack, change
the protocol to include padding in request packets so that the largest
possible reply is not larger than the request. Request packets that
don't include this padding are ignored as invalid.

This is an incompatible change in the protocol. Clients from chrony
1.27, 1.28 and 1.29 will receive NULL reply with STT_BADPKTVERSION and
print "Protocol version mismatch". Clients from 1.26 and older will not
receive a reply as it would be larger than the request if it was padded
to be compatible with their protocol.

11 years agoSet maximum number of samples in manual list reply to 16
Miroslav Lichvar [Thu, 23 Jan 2014 09:55:12 +0000 (10:55 +0100)] 
Set maximum number of samples in manual list reply to 16

In chronyd the maximum number of manual samples is 16, so there is no
need to keep room for 32 samples in the command reply. This limits the
maximum assumed size of the reply packet.

12 years agoUpdate NEWS 1.29
Miroslav Lichvar [Wed, 31 Jul 2013 13:04:12 +0000 (15:04 +0200)] 
Update NEWS

12 years agoDrop support for SUBNETS_ACCESSED and CLIENT_ACCESSES commands
Miroslav Lichvar [Wed, 31 Jul 2013 13:03:27 +0000 (15:03 +0200)] 
Drop support for SUBNETS_ACCESSED and CLIENT_ACCESSES commands

Support for the SUBNETS_ACCESSED and CLIENT_ACCESSES commands was
enabled in chronyd, but in chronyc it was always disabled and the
CLIENT_ACCESSES_BY_INDEX command was used instead. As there is no plan
to enable it in the future, remove the support completely.

12 years agoDon't send uninitialized data in command replies
Miroslav Lichvar [Wed, 31 Jul 2013 13:02:09 +0000 (15:02 +0200)] 
Don't send uninitialized data in command replies

The RPY_SUBNETS_ACCESSED and RPY_CLIENT_ACCESSES command replies can
contain uninitalized data from stack when the client logging is disabled
or a bad subnet is requested. These commands were never used by chronyc
and they require the client to be authenticated since version 1.25.

12 years agoFix buffer overflow when processing crafted command packets
Miroslav Lichvar [Wed, 31 Jul 2013 13:01:15 +0000 (15:01 +0200)] 
Fix buffer overflow when processing crafted command packets

When the length of the REQ_SUBNETS_ACCESSED, REQ_CLIENT_ACCESSES
command requests and the RPY_SUBNETS_ACCESSED, RPY_CLIENT_ACCESSES,
RPY_CLIENT_ACCESSES_BY_INDEX, RPY_MANUAL_LIST command replies is
calculated, the number of items stored in the packet is not validated.

A crafted command request/reply can be used to crash the server/client.
Only clients allowed by cmdallow (by default only localhost) can crash
the server.

With chrony versions 1.25 and 1.26 this bug has a smaller security
impact as the server requires the clients to be authenticated in order
to process the subnet and client accesses commands. In 1.27 and 1.28,
however, the invalid calculated length is included also in the
authentication check which may cause another crash.

12 years agoUpdate chrony.conf.example2
Miroslav Lichvar [Fri, 2 Aug 2013 13:40:57 +0000 (15:40 +0200)] 
Update chrony.conf.example2

12 years agoDon't mention pre 2.2 Linux kernels in documentation
Miroslav Lichvar [Fri, 2 Aug 2013 13:36:46 +0000 (15:36 +0200)] 
Don't mention pre 2.2 Linux kernels in documentation

12 years agoUpdate NEWS 1.28
Miroslav Lichvar [Wed, 17 Jul 2013 13:54:21 +0000 (15:54 +0200)] 
Update NEWS

12 years agoTreat address bind errors as non-fatal
Miroslav Lichvar [Wed, 17 Jul 2013 11:45:36 +0000 (13:45 +0200)] 
Treat address bind errors as non-fatal

12 years agoUpdate chrony.spec.sample
Miroslav Lichvar [Mon, 1 Jul 2013 17:00:06 +0000 (19:00 +0200)] 
Update chrony.spec.sample

12 years agoUpdate copyright in chronyc GPL string
Miroslav Lichvar [Mon, 1 Jul 2013 15:52:23 +0000 (17:52 +0200)] 
Update copyright in chronyc GPL string

12 years agoUpdate NEWS 1.28-pre1
Miroslav Lichvar [Fri, 21 Jun 2013 12:20:09 +0000 (14:20 +0200)] 
Update NEWS

12 years agoUpdate example config files more
Miroslav Lichvar [Fri, 21 Jun 2013 09:45:44 +0000 (11:45 +0200)] 
Update example config files more

12 years agoDocument port directive set to 0 as random port
Miroslav Lichvar [Fri, 21 Jun 2013 06:43:54 +0000 (08:43 +0200)] 
Document port directive set to 0 as random port

12 years agoUse texi2html only if it's available
Miroslav Lichvar [Fri, 21 Jun 2013 13:32:38 +0000 (15:32 +0200)] 
Use texi2html only if it's available

12 years agoDon't ship faqgen.pl
Miroslav Lichvar [Fri, 21 Jun 2013 13:32:18 +0000 (15:32 +0200)] 
Don't ship faqgen.pl

12 years agoFix possible leaks of temporary file names
Miroslav Lichvar [Fri, 21 Jun 2013 14:08:14 +0000 (16:08 +0200)] 
Fix possible leaks of temporary file names

12 years agoFix memset calls
Miroslav Lichvar [Fri, 21 Jun 2013 12:39:12 +0000 (14:39 +0200)] 
Fix memset calls

12 years agoUpdate documentation
Miroslav Lichvar [Thu, 20 Jun 2013 16:00:32 +0000 (18:00 +0200)] 
Update documentation

12 years agoUpdate example config files
Miroslav Lichvar [Thu, 20 Jun 2013 14:19:36 +0000 (16:19 +0200)] 
Update example config files

12 years agoCreate /etc and /var/lib/chrony on installation
Miroslav Lichvar [Thu, 20 Jun 2013 12:47:06 +0000 (14:47 +0200)] 
Create /etc and /var/lib/chrony on installation

12 years agoAvoid sentences written in first person
Miroslav Lichvar [Thu, 20 Jun 2013 11:22:13 +0000 (13:22 +0200)] 
Avoid sentences written in first person

12 years agoUpdate comparison with ntpd
Miroslav Lichvar [Wed, 19 Jun 2013 16:25:28 +0000 (18:25 +0200)] 
Update comparison with ntpd

12 years agoRemove fixed problems from FAQ
Miroslav Lichvar [Wed, 19 Jun 2013 12:40:20 +0000 (14:40 +0200)] 
Remove fixed problems from FAQ

12 years agoUpdate copyright years
Miroslav Lichvar [Wed, 19 Jun 2013 10:50:26 +0000 (12:50 +0200)] 
Update copyright years

12 years agoDon't call finalise functions on fatal error
Miroslav Lichvar [Wed, 19 Jun 2013 10:28:00 +0000 (12:28 +0200)] 
Don't call finalise functions on fatal error

Also, return with non-zero exit code.

12 years agoCombine source frequencies by skew
Miroslav Lichvar [Wed, 19 Jun 2013 10:11:27 +0000 (12:11 +0200)] 
Combine source frequencies by skew

12 years agoAdd minimum skew limit to sourcestats
Miroslav Lichvar [Wed, 19 Jun 2013 08:22:49 +0000 (10:22 +0200)] 
Add minimum skew limit to sourcestats

12 years agoFix printing of outlier status
Miroslav Lichvar [Tue, 18 Jun 2013 14:13:17 +0000 (16:13 +0200)] 
Fix printing of outlier status

12 years agoAdd more entries to tracking log
Miroslav Lichvar [Mon, 17 Jun 2013 16:16:52 +0000 (18:16 +0200)] 
Add more entries to tracking log

Add number of combined sources, remaining offset correction from
previous update and estimated stddev of the combined offset.

12 years agoFix maxchange offset check
Miroslav Lichvar [Mon, 17 Jun 2013 13:39:43 +0000 (15:39 +0200)] 
Fix maxchange offset check

12 years agoCall maybe_log_offset and update_leap_status after adjusting clock
Miroslav Lichvar [Mon, 17 Jun 2013 09:09:05 +0000 (11:09 +0200)] 
Call maybe_log_offset and update_leap_status after adjusting clock

12 years agoFix spelling
Miroslav Lichvar [Mon, 17 Jun 2013 08:40:16 +0000 (10:40 +0200)] 
Fix spelling

12 years agoLog manual entries with MANU refid in tracking log
Miroslav Lichvar [Fri, 14 Jun 2013 17:42:13 +0000 (19:42 +0200)] 
Log manual entries with MANU refid in tracking log

12 years agoFix log message to not include newline
Miroslav Lichvar [Fri, 14 Jun 2013 17:19:42 +0000 (19:19 +0200)] 
Fix log message to not include newline

12 years agoFix printing of negative offset with settime command
Miroslav Lichvar [Fri, 14 Jun 2013 17:18:36 +0000 (19:18 +0200)] 
Fix printing of negative offset with settime command

12 years agoReuse REF_SetReference code with manual reference
Miroslav Lichvar [Fri, 14 Jun 2013 16:57:30 +0000 (18:57 +0200)] 
Reuse REF_SetReference code with manual reference

12 years agoWrite freq and skew to drift file with six decimal places
Miroslav Lichvar [Fri, 14 Jun 2013 14:44:00 +0000 (16:44 +0200)] 
Write freq and skew to drift file with six decimal places

12 years agoUse fscanf to read drift file
Miroslav Lichvar [Fri, 14 Jun 2013 14:37:18 +0000 (16:37 +0200)] 
Use fscanf to read drift file

12 years agoModify minimum skew checking
Miroslav Lichvar [Fri, 14 Jun 2013 14:27:15 +0000 (16:27 +0200)] 
Modify minimum skew checking

12 years agoReplace bzero with memset
Miroslav Lichvar [Fri, 14 Jun 2013 11:48:16 +0000 (13:48 +0200)] 
Replace bzero with memset

12 years agoRemove changelog from conf.c
Miroslav Lichvar [Fri, 14 Jun 2013 11:44:15 +0000 (13:44 +0200)] 
Remove changelog from conf.c

12 years agoCleanup including of system headers
Miroslav Lichvar [Fri, 14 Jun 2013 11:30:54 +0000 (13:30 +0200)] 
Cleanup including of system headers

12 years agoDon't abort on EINTR select errors
Miroslav Lichvar [Fri, 14 Jun 2013 10:37:24 +0000 (12:37 +0200)] 
Don't abort on EINTR select errors

12 years agoReplace LOG_FATAL call with assert in SCH_MailLoop
Miroslav Lichvar [Fri, 14 Jun 2013 10:34:52 +0000 (12:34 +0200)] 
Replace LOG_FATAL call with assert in SCH_MailLoop

12 years agoDon't apply outlyer penalty at beginning
Miroslav Lichvar [Thu, 13 Jun 2013 16:19:17 +0000 (18:19 +0200)] 
Don't apply outlyer penalty at beginning

Wait until the reach register is full to allow marking a source as
outlyer for 32 updates. This makes start nicer with iburst.

12 years agoAdd minsamples and maxsamples directives
Miroslav Lichvar [Thu, 13 Jun 2013 14:23:32 +0000 (16:23 +0200)] 
Add minsamples and maxsamples directives

Allow configuration of the maximum and minimum number of samples per
source.

12 years agoModify SST_GetSelectionData to return only necessary data
Miroslav Lichvar [Wed, 12 Jun 2013 14:06:33 +0000 (16:06 +0200)] 
Modify SST_GetSelectionData to return only necessary data

12 years agoUse UTI_DiffTimevalsToDouble to calculate theta
Miroslav Lichvar [Wed, 12 Jun 2013 13:11:33 +0000 (15:11 +0200)] 
Use UTI_DiffTimevalsToDouble to calculate theta

12 years agoFix fabs use on delay
Miroslav Lichvar [Wed, 12 Jun 2013 13:10:54 +0000 (15:10 +0200)] 
Fix fabs use on delay

12 years agoLimit sources included in combining
Miroslav Lichvar [Mon, 10 Jun 2013 16:37:08 +0000 (18:37 +0200)] 
Limit sources included in combining

Combine only sources whose distance is shorter than distance of the
selected source multiplied by the value of combinelimit and their
estimated frequencies are close to the frequency of the selected source.
Add outlyer status for sources which are selectable, but not included in
the combining. The status is displayed as '-' in the chronyc sources
output.

12 years agoResurrect source combining
Miroslav Lichvar [Wed, 29 Jun 2011 16:45:31 +0000 (18:45 +0200)] 
Resurrect source combining

This is based on the code that was removed in CVS revision 1.3 of
sources.c. The weighting is simplified and the code is moved to a new
function.

12 years agoRemove unnecessary adjtimex calls
Miroslav Lichvar [Thu, 6 Jun 2013 17:38:36 +0000 (19:38 +0200)] 
Remove unnecessary adjtimex calls

12 years agoFix rounding in UTI_AddDoubleToTimeval with negative increments
Miroslav Lichvar [Thu, 6 Jun 2013 14:30:37 +0000 (16:30 +0200)] 
Fix rounding in UTI_AddDoubleToTimeval with negative increments

12 years agoAdjust last_select_ts on slew
Miroslav Lichvar [Thu, 6 Jun 2013 14:28:33 +0000 (16:28 +0200)] 
Adjust last_select_ts on slew

12 years agoRename SCH_GetFileReadyTime() and extend it to return raw time
Miroslav Lichvar [Wed, 5 Jun 2013 15:52:13 +0000 (17:52 +0200)] 
Rename SCH_GetFileReadyTime() and extend it to return raw time

12 years agoDrop duplicated int64_to_timeval()
Miroslav Lichvar [Wed, 5 Jun 2013 11:11:53 +0000 (13:11 +0200)] 
Drop duplicated int64_to_timeval()

12 years agoFix UTI_DoubleToInt32 to check for overflow
Miroslav Lichvar [Wed, 5 Jun 2013 11:05:54 +0000 (13:05 +0200)] 
Fix UTI_DoubleToInt32 to check for overflow

12 years agoMove NTP_int32 conversion functions to util.c
Miroslav Lichvar [Wed, 5 Jun 2013 10:49:12 +0000 (12:49 +0200)] 
Move NTP_int32 conversion functions to util.c

12 years agoAdd --enable-trace to configure
Miroslav Lichvar [Wed, 5 Jun 2013 10:18:46 +0000 (12:18 +0200)] 
Add --enable-trace to configure

12 years agoFix configure help message
Miroslav Lichvar [Wed, 5 Jun 2013 09:58:13 +0000 (11:58 +0200)] 
Fix configure help message

12 years agoAbort on parse errors in refclock directive
Miroslav Lichvar [Wed, 5 Jun 2013 09:48:48 +0000 (11:48 +0200)] 
Abort on parse errors in refclock directive

12 years agoFix burst command with specified address
Miroslav Lichvar [Wed, 5 Jun 2013 08:17:13 +0000 (10:17 +0200)] 
Fix burst command with specified address

This was broken in commit 0f8def4ca4237495f13a93384ded9245495e3c8f.

12 years agoAllow hostnames in offline, online and burst commands
Miroslav Lichvar [Wed, 5 Jun 2013 08:00:36 +0000 (10:00 +0200)] 
Allow hostnames in offline, online and burst commands

12 years agoDon't use uninitialized value in receive_packet()
Miroslav Lichvar [Wed, 5 Jun 2013 07:56:37 +0000 (09:56 +0200)] 
Don't use uninitialized value in receive_packet()

12 years agoFix stratum setting when source with non-minimum stratum is selected
Miroslav Lichvar [Wed, 5 Jun 2013 07:55:00 +0000 (09:55 +0200)] 
Fix stratum setting when source with non-minimum stratum is selected

12 years agoImprove peer polling in symmetric mode
Miroslav Lichvar [Tue, 4 Jun 2013 17:20:37 +0000 (19:20 +0200)] 
Improve peer polling in symmetric mode

If the remote stratum is higher than ours, try to lock on the peer's
polling to minimize our response time by slightly extending our delay or
waiting for the peer to catch up with us as the random part in the
actual interval is reduced. If the remote stratum is equal to ours, try
to interleave evenly with the peer.

12 years agoSave remote poll only with valid packets
Miroslav Lichvar [Tue, 4 Jun 2013 13:35:22 +0000 (15:35 +0200)] 
Save remote poll only with valid packets

12 years agoFix peer polling with shorter remote poll
Miroslav Lichvar [Tue, 4 Jun 2013 10:39:17 +0000 (12:39 +0200)] 
Fix peer polling with shorter remote poll

If the remote peer uses a polling interval shorter than the local
minimum, the local peer will be unable to send any packets as the
timeout will be updated on every received valid packet and will never
expire.

Modify the delay calculation to aim at poll interval away since the last
transmit.

Also, share the delay calculation code with transmit_timeout().

12 years agoRequeue transmit timeout only with valid packets
Miroslav Lichvar [Tue, 4 Jun 2013 10:08:58 +0000 (12:08 +0200)] 
Requeue transmit timeout only with valid packets

12 years agoIgnore packets from offline sources
Miroslav Lichvar [Mon, 3 Jun 2013 14:37:58 +0000 (16:37 +0200)] 
Ignore packets from offline sources

Rework the logic in transmit_timeout() to change the online status on
the following timeout to allow ignoring packets from offline sources.

12 years agoSet stratum from last sample instead of best
Miroslav Lichvar [Mon, 3 Jun 2013 14:00:19 +0000 (16:00 +0200)] 
Set stratum from last sample instead of best

12 years agoDrop unused SST_GetReferenceData()
Miroslav Lichvar [Mon, 3 Jun 2013 13:49:01 +0000 (15:49 +0200)] 
Drop unused SST_GetReferenceData()

12 years agoMake receive_packet() more readable
Miroslav Lichvar [Mon, 3 Jun 2013 12:27:09 +0000 (14:27 +0200)] 
Make receive_packet() more readable

12 years agoIn burst count only accumulated samples as good
Miroslav Lichvar [Mon, 3 Jun 2013 11:05:26 +0000 (13:05 +0200)] 
In burst count only accumulated samples as good

12 years agoSlew only non-zero local timestamps in ntp core
Miroslav Lichvar [Mon, 3 Jun 2013 09:34:15 +0000 (11:34 +0200)] 
Slew only non-zero local timestamps in ntp core

12 years agoFix poll timeout with symmetric peer and poll 0
Miroslav Lichvar [Mon, 3 Jun 2013 09:13:45 +0000 (11:13 +0200)] 
Fix poll timeout with symmetric peer and poll 0

12 years agoRemove unncessary return statements
Miroslav Lichvar [Tue, 21 May 2013 12:29:22 +0000 (14:29 +0200)] 
Remove unncessary return statements

12 years agoAdd recommendation on password security to keyfile description
Miroslav Lichvar [Tue, 21 May 2013 12:02:45 +0000 (14:02 +0200)] 
Add recommendation on password security to keyfile description

12 years agoAdd option to generate command key on start
Miroslav Lichvar [Tue, 21 May 2013 11:58:52 +0000 (13:58 +0200)] 
Add option to generate command key on start

With generatecommandkey directive, if no command key is found in the key
file on start, one will be generated automatically from /dev/urandom.

12 years agoFix some error messages
Miroslav Lichvar [Mon, 20 May 2013 16:21:30 +0000 (18:21 +0200)] 
Fix some error messages

12 years agoCreate sockets only in selected family with -4 or -6 option
Miroslav Lichvar [Mon, 20 May 2013 13:34:33 +0000 (15:34 +0200)] 
Create sockets only in selected family with -4 or -6 option

12 years agoSet paths in documentation by configure
Miroslav Lichvar [Thu, 16 May 2013 10:28:37 +0000 (12:28 +0200)] 
Set paths in documentation by configure

12 years agoDocument default value of commandkey
Miroslav Lichvar [Thu, 16 May 2013 09:02:24 +0000 (11:02 +0200)] 
Document default value of commandkey

12 years agoAdd option to authenticate automatically on chronyc start
Miroslav Lichvar [Wed, 15 May 2013 17:25:15 +0000 (19:25 +0200)] 
Add option to authenticate automatically on chronyc start

12 years agoRefactor key parsing
Miroslav Lichvar [Wed, 15 May 2013 14:38:01 +0000 (16:38 +0200)] 
Refactor key parsing

12 years agoTry linking readline without ncurses first
Miroslav Lichvar [Wed, 15 May 2013 09:50:58 +0000 (11:50 +0200)] 
Try linking readline without ncurses first

12 years agoVarious spelling fixes
Joachim Wiedorn [Thu, 8 Nov 2012 02:00:00 +0000 (00:00 -0200)] 
Various spelling fixes

Reviewed-By: Rogério Theodoro de Brito <rbrito@ime.usp.br>
12 years agoRefactor command parsing
Miroslav Lichvar [Thu, 9 May 2013 15:29:37 +0000 (17:29 +0200)] 
Refactor command parsing

- normalize command line before parsing
- compare whole words
- check for missing/extra arguments in config parsing
- use strdup for string allocation
- share code for reporting syntax errors
- avoid using function pointers
- cleanup the code a bit

12 years agoAbort on errors when parsing config
Miroslav Lichvar [Thu, 9 May 2013 14:56:08 +0000 (16:56 +0200)] 
Abort on errors when parsing config

12 years agoLog online/offline status change for burst sources too.
Miroslav Lichvar [Wed, 15 May 2013 08:36:52 +0000 (10:36 +0200)] 
Log online/offline status change for burst sources too.

12 years agoDon't send uninitialized fields in dump and local requests
Miroslav Lichvar [Tue, 14 May 2013 17:36:10 +0000 (19:36 +0200)] 
Don't send uninitialized fields in dump and local requests

12 years agoAccept float value as initstepslew threshold
Miroslav Lichvar [Thu, 9 May 2013 17:15:25 +0000 (19:15 +0200)] 
Accept float value as initstepslew threshold

12 years agoUpdate .gitignore
Miroslav Lichvar [Thu, 9 May 2013 16:43:19 +0000 (18:43 +0200)] 
Update .gitignore

12 years agoTerminate batch processing in chronyc on quit command
Miroslav Lichvar [Tue, 7 May 2013 14:59:56 +0000 (16:59 +0200)] 
Terminate batch processing in chronyc on quit command