Re: [chrony-dev] Failure of certain simulation tests

2024-04-25 Thread Miroslav Lichvar
vironment variable to 100. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] Failure of certain simulation tests

2024-04-24 Thread Miroslav Lichvar
On Thu, Apr 18, 2024 at 07:07:33PM +0200, Vincent Blut wrote: > Le 2024-04-18 17:19, Miroslav Lichvar a écrit : > > On Thu, Apr 18, 2024 at 04:06:54PM +0200, Vincent Blut wrote: > > > So after building clknetsim with these flags, the same tests are still > > > failing

Re: [chrony-dev] Failure of certain simulation tests

2024-04-18 Thread Miroslav Lichvar
t specific symbol on this arch that needs to be covered. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

[chrony-dev] [Git][chrony/chrony][master] 2 commits: doc: fix typo in chronyc docs

2024-04-16 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed to branch master at chrony / chrony Commits: 1920b1ef by Rob Gill at 2024-04-16T07:49:59+02:00 doc: fix typo in chronyc docs Typo fix only - no change to content Signed-off-by: Rob Gill rrobg...@protonmail.com - - - - - 989ef702 by Rob Gill at 2024-04-16T07:50:11+02

Re: [chrony-dev] Failure of certain simulation tests

2024-04-16 Thread Miroslav Lichvar
idea > about where the problem lies? > ¹ https://ci.debian.net/packages/c/chrony/unstable/armhf/45199616/#S6 The log shows that clknetsim is not built with the -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 flags. It needs to use the same time_t as the chronyd binaries. --

[chrony-dev] [Git][chrony/chrony][master] ntp: log failed connection to Samba signd socket

2024-04-15 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed to branch master at chrony / chrony Commits: bb5db828 by Miroslav Lichvar at 2024-04-15T16:35:33+02:00 ntp: log failed connection to Samba signd socket Log an error message (in addition to the socket-specific debug message) when the connection to signd socket fails

[chrony-dev] [Git][chrony/chrony][master] 5 commits: refclock: update comment in PHC driver

2024-04-12 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed to branch master at chrony / chrony Commits: 28e4eec1 by Miroslav Lichvar at 2024-04-10T12:13:29+02:00 refclock: update comment in PHC driver Since Linux 6.7 external timestamping events are no longer shared among all descriptors of a PHC. Each descriptor gets its own

Re: [chrony-dev] [PATCH] local threshold option

2024-04-12 Thread Miroslav Lichvar
n = dispersion; > > - } else if (enable_local_stratum) { > + } else if (enable_local_stratum && local_activate_ok) { > > *is_synchronised = 0; > Thanks, -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

[chrony-dev] [Git][chrony/chrony][master] 8 commits: nts: check for NTS NAK specifically when responding

2024-04-12 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed to branch master at chrony / chrony Commits: ce956c99 by Miroslav Lichvar at 2024-04-02T11:33:04+02:00 nts: check for NTS NAK specifically when responding Ignore other KoD codes than NTS NAK when deciding if the server response should not be authenticated

Re: [chrony-dev] [PATCH] local threshold option

2024-03-28 Thread Miroslav Lichvar
stance > 0 && distance < local_threshold) > + local_threshold_met = 1; This should be earlier in the function so the new condition below can trigger on the first pass? > + > + } else if (enable_local_stratum && > + (local_threshold == 0 || local_thresho

Re: [chrony-dev] [PATCH]

2024-03-21 Thread Miroslav Lichvar
cond, "local mintime" prevents the local reference being activated > unless the system clock is later than the specified time. Can you please explain why both options are needed? This seems more like a hack, that should have a better solution than making assumptions about absolute time.

[chrony-dev] [Git][chrony/chrony][master] 5 commits: test: replace another C99-style declaration in for loop

2024-03-14 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed to branch master at chrony / chrony Commits: 7fe98a83 by Miroslav Lichvar at 2024-03-11T12:00:12+01:00 test: replace another C99-style declaration in for loop - - - - - f49be7f0 by Miroslav Lichvar at 2024-03-12T14:57:30+01:00 conf: dont load sourcedir during

Re: [chrony-dev] timex kernel offset parameter not updated

2024-03-12 Thread Miroslav Lichvar
d would need to update it periodically to be useful. I don't think that would be acceptable as chronyd is supposed to be friendly to power saving. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject

Re: [chrony-dev] timex kernel offset parameter not updated

2024-03-12 Thread Miroslav Lichvar
ce clock. > This seems like a shortcoming in chrony. Are there any plans to implement > this functionality in the near future? That is not possible as chronyd doesn't use the kernel PLL. The closest thing to the kernel PLL offset would be the chronyc tracking offset. -- Miroslav Lichvar --

Re: [chrony-dev] [PATCH] Add support for the UT1 time scale

2024-03-07 Thread Miroslav Lichvar
ify the offset option of existing sources. This is now in git. With that I think you can write a script that will periodically modify the offset of all sources to follow the dUT1, i.e. keep the system clock synchronized to UT1. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...

[chrony-dev] [Git][chrony/chrony][master] 2 commits: ntp+refclock: add functions to modify offset option

2024-03-07 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed to branch master at chrony / chrony Commits: 719c6f6a by Miroslav Lichvar at 2024-03-07T16:19:04+01:00 ntp+refclock: add functions to modify offset option - - - - - ad37c409 by Miroslav Lichvar at 2024-03-07T16:20:27+01:00 cmdmon: add offset command Add a new command

[chrony-dev] [Git][chrony/chrony][master] 2 commits: test: avoid C99-style declaration in for loop

2024-03-05 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed to branch master at chrony / chrony Commits: ad79aec9 by Miroslav Lichvar at 2024-03-04T11:38:11+01:00 test: avoid C99-style declaration in for loop This fixes compilation without the -std=c99 option with an older gcc. - - - - - b0750136 by Miroslav Lichvar at 2024-03

Re: [chrony-dev] [PATCH v5 5/5] test/unit: add leapdb test

2024-02-11 Thread Miroslav Lichvar
e repository to run the clang static analyzer in few different chrony configurations. I also run a Coverity scan we have access to at Red Hat before each release. I think they provide a free service for open source projects, but I'm not sure how that works. -- Miroslav Lichvar -- To unsubscri

Re: [chrony-dev] [PATCH v5 5/5] test/unit: add leapdb test

2024-02-08 Thread Miroslav Lichvar
There was also an issue I found after I updated the other tests. The refclock tai option checked only for leapsectz. And there was a new issue reported by static analyzer about uninitialized value, probably due to not being able to follow the new function pointers. Thanks, -- Miroslav Lichvar

[chrony-dev] [Git][chrony/chrony][master] 13 commits: ntp: support per-source IP family restriction

2024-02-08 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed to branch master at chrony / chrony Commits: d7c2b1d2 by Miroslav Lichvar at 2024-02-07T10:23:36+01:00 ntp: support per-source IP family restriction Add a new parameter to the NSR_AddSourceByName() function to allow individual sources to be limited to IPv4 or IPv6

Re: [chrony-dev] [PATCH v4 4/5] leapdb: support leap-seconds.list as second source

2024-02-07 Thread Miroslav Lichvar
either they should be saved to temporary variables, or the loop should stop when a matching entry is found, so the error message is not logged when the result is used. Everything else looks good to me. Thanks for your work on this. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] [PATCH v4 5/5] test/unit: add leapdb test

2024-02-07 Thread Miroslav Lichvar
the blank line above is intentional? > +3439756800 34 # 1 Jan 2009 > +3550089600 35 # 1 Jul 2012 > +3644697600 36 # 1 Jul 2015 > +3692217600 37 # 1 Jan 2017 How about adding and testing a negative leap second? -- Miroslav Lichvar -- To u

Re: [chrony-dev] How to use the port configuration?

2024-02-01 Thread Miroslav Lichvar
art) of the source is > finished (until source is marked as *) If no source is selected, how would it know the offset that needs to be corrected by stepping the clock? There is the initstepslew directive to use a different set of servers for the initial correction, but the selection still happens.

Re: [chrony-dev] [PATCH v3 5/5] test/unit: add leapdb test

2024-01-29 Thread Miroslav Lichvar
On Mon, Jan 29, 2024 at 04:29:00PM +0100, Miroslav Lichvar wrote: > On Thu, Dec 07, 2023 at 01:17:16PM +1100, patrick.oppenlan...@gmail.com wrote: > > +void > > +test_unit(void) > > +{ > > + char conf[][100] = { > > +"leapsectz right/UTC", >

Re: [chrony-dev] [PATCH v3 5/5] test/unit: add leapdb test

2024-01-29 Thread Miroslav Lichvar
test should not fail on non-glibc systems and when the list file is missing. It should skip instead. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] [PATCH v3 4/5] leapdb: support leap-seconds.list as second source

2024-01-29 Thread Miroslav Lichvar
List(); Declarations should be at the beginning of the function. > + if (leap_sec_list && !check_leap_source(get_leap_sec_list_leap)) { > +LOG(LOGS_WARN, "Leap second list %s failed check, ignoring", > leap_sec_list); > +leap_sec_list = NULL; > + } >

[chrony-dev] [Git][chrony/chrony][master] ntp: fix authenticated requests in serverstats

2024-01-08 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed to branch master at chrony / chrony Commits: e11b518a by Miroslav Lichvar at 2024-01-08T11:46:32+01:00 ntp: fix authenticated requests in serverstats Fix the CLG_UpdateNtpStats() call to count requests passing the authentication check instead of requests triggering

Re: [chrony-dev] SNMP agent

2024-01-04 Thread Miroslav Lichvar
t see much interest in the MIB. The future seems to be the Yang model, see RFC 9249. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] Multihomed (multiple) network interfaces support !

2023-12-12 Thread Miroslav Lichvar
ss directive. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] Multihomed (multiple) network interfaces support !

2023-12-12 Thread Miroslav Lichvar
On Tue, Dec 12, 2023 at 04:07:23PM +0300, CpServiceSPb wrote: > Let' s clarify: Yes, that looks good to me. Make sure no other chronyd instance is running before you start those three. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "uns

Re: [chrony-dev] Multihomed (multiple) network interfaces support !

2023-12-12 Thread Miroslav Lichvar
t bindaddresses. It was just an example showing how multiple instances can be started. You should create the three configs (1 client + 2 servers) at some location and run chronyd -f /etc/chrony.conf.1 chronyd -f /etc/chrony.conf.2 chronyd -f /etc/chrony.conf.3 -- Miroslav Lichvar -- To unsubscri

Re: [chrony-dev] Multihomed (multiple) network interfaces support !

2023-12-12 Thread Miroslav Lichvar
at process has the PID 135687. Maybe your system is cursed and cannot run chrony as expected. Try ntpsec. It should be easier to configure for your requirements. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. Fo

Re: [chrony-dev] Multihomed (multiple) network interfaces support !

2023-12-11 Thread Miroslav Lichvar
ess /var/run/chrony/chronyd-server2.sock pidfile /var/run/chronyd-server2.pid driftfile /var/lib/chrony/drift-server2 client instance synchornizing clock and providing time to the server instances: pool pool.ntp.org iburst allow 127.0.0.1 port 11123 driftfile /var/lib/chrony/drift makestep 1 3 rtcsync

Re: [chrony-dev] Multihomed (multiple) network interfaces support !

2023-12-11 Thread Miroslav Lichvar
ar/run/chrony/chronyd-server_lan.sock > cmdport 11323 > pidfile /var/run/chrony/chronyd-server_lan.pid > driftfile /var/lib/chrony/drift-server_lan There should be a bindaddress or binddevice directive. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.t

Re: [chrony-dev] [PATCH v2 5/6] leapdb: support leap-seconds.list as second source

2023-12-06 Thread Miroslav Lichvar
> +}; Please avoid saving the data in memory. I think the requested leap can be found in one pass over the file. Simpler is better. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev

Re: [chrony-dev] [PATCH v2 3/6] leapdb: move source check into separate function

2023-12-06 Thread Miroslav Lichvar
he code. Can it be replaced with a condition in LDB_GetLeap? -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] [PATCH v2 1/6] reference: move leap second source into leapdb

2023-12-06 Thread Miroslav Lichvar
/main.c > @@ -57,6 +57,7 @@ > #include "smooth.h" > #include "tempcomp.h" > #include "util.h" > +#include "leapdb.h" Try to keep the inclusion in alphabetical order. > +++ b/reference.c > @@ -36,6 +36,7 @@ > #include "log

Re: [chrony-dev] Multihomed (multiple) network interfaces support !

2023-12-06 Thread Miroslav Lichvar
/faq.html#_can_ntp_server_be_separated_from_ntp_client and a script: https://gist.github.com/mlichvar/d2260423e2c5c3d83ec9608feaa749f1 You would just need to modify it to set different binddevice for each server instance. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxf

Re: [chrony-dev] Chrony and leap-second table expiration

2023-12-05 Thread Miroslav Lichvar
oll) and too many servers in the chain, or a refclock getting the leap announcement only one hour ahead (e.g. DCF77). Using the right timezone or leapfile helps with that. For an event that might happen only once or twice again, I would prefer to not complicate things any further. --

[chrony-dev] chrony-4.5 released

2023-12-05 Thread Miroslav Lichvar
and documentation. -- Miroslav Lichvar signature.asc Description: PGP signature

[chrony-dev] [Git][chrony/chrony] Pushed new tag 4.5

2023-12-05 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed new tag 4.5 at chrony / chrony -- View it on GitLab: https://gitlab.com/chrony/chrony/-/tree/4.5 You're receiving this email because of your account on gitlab.com.

[chrony-dev] [Git][chrony/chrony][master] 4 commits: doc: improve description of reload sources command

2023-12-05 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed to branch master at chrony / chrony Commits: 42fdad5d by Miroslav Lichvar at 2023-12-04T16:50:51+01:00 doc: improve description of reload sources command - - - - - 89aa8fa3 by Miroslav Lichvar at 2023-12-05T14:22:08+01:00 doc: mention dependency of net corrections

Re: [chrony-dev] Chrony and leap-second table expiration

2023-12-04 Thread Miroslav Lichvar
expiration seems to be the only reasonable option to me. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] Multihomed (multiple) network interfaces support !

2023-12-04 Thread Miroslav Lichvar
[152704]: Could not open > /var/run/cc/chronyd-server1.pid : Permission denied > сен 05 22:55:07 key chronyd[152706]: Wrong permissions on /var/run/cc You will need to fix the permission of the directory to be writable by the chrony user. -- Miroslav Lichvar -- To unsubscribe

Re: [chrony-dev] [PATCH 1/1] reference: support leap-seconds.list leap second source

2023-11-29 Thread Miroslav Lichvar
nctions LDB_Initialise(), LDB_GetLeap(), LDB_Finalise(). The first commit would refactor the existing code into that. The second commit would add the leapfile parsing, documentation and some tests. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org wi

[chrony-dev] [Git][chrony/chrony][master] sources: rework logging of selection loss

2023-11-28 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed to branch master at chrony / chrony Commits: 3ee7b3e7 by Miroslav Lichvar at 2023-11-28T12:21:23+01:00 sources: rework logging of selection loss The commit 5dd288dc0cbd (sources: reselect earlier when removing selected source) didnt cover all paths that can lead

[chrony-dev] chrony-4.5-pre1 released

2023-11-22 Thread Miroslav Lichvar
selectopts +noselect command -- Miroslav Lichvar signature.asc Description: PGP signature

[chrony-dev] [Git][chrony/chrony] Pushed new tag 4.5-pre1

2023-11-22 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed new tag 4.5-pre1 at chrony / chrony -- View it on GitLab: https://gitlab.com/chrony/chrony/-/tree/4.5-pre1 You're receiving this email because of your account on gitlab.com.

[chrony-dev] [Git][chrony/chrony][master] 7 commits: doc: improve cmdport description

2023-11-22 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed to branch master at chrony / chrony Commits: 68a3d520 by Miroslav Lichvar at 2023-11-22T09:48:36+01:00 doc: improve cmdport description - - - - - b92b2da2 by Miroslav Lichvar at 2023-11-22T11:55:27+01:00 doc: improve ntstrustedcerts description - - - - - 82959431

[chrony-dev] [Git][chrony/chrony][master] 8 commits: socket: set close-on-exec on all reusable sockets

2023-11-21 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed to branch master at chrony / chrony Commits: ee9d721b by Miroslav Lichvar at 2023-11-20T13:33:45+01:00 socket: set close-on-exec on all reusable sockets Set the CLOEXEC flag on all reusable sockets in the initialization to avoid leaking them to sendmail (mailonchange

Re: [chrony-dev] SNMP agent

2023-11-14 Thread Miroslav Lichvar
ng > into chrony or not? I think it should be a separate project using the cmdmon protocol for communication with chronyd as used by chronyc. With this library it should be easy https://gitlab.com/chrony/libchrony Note that it's still in early stages of development and the API might

[chrony-dev] [Git][chrony/chrony][master] 2 commits: socket: add support for systemd sockets

2023-11-13 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed to branch master at chrony / chrony Commits: e6a0476e by Luke Valenta at 2023-11-13T17:05:26+01:00 socket: add support for systemd sockets Before opening new IPv4/IPv6 server sockets, chronyd will check for matching reusable sockets passed from the service manager

[chrony-dev] [Git][chrony/chrony][master] logging: move severity_chars to fix compiler warning

2023-11-08 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed to branch master at chrony / chrony Commits: c063b9e7 by Luke Valenta at 2023-11-08T15:09:03+01:00 logging: move severity_chars to fix compiler warning - - - - - 1 changed file: - logging.c View it on GitLab: https://gitlab.com/chrony/chrony/-/commit

[chrony-dev] [Git][chrony/chrony][master] 2 commits: ntp: initialize network correction of transmitted packets

2023-11-07 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed to branch master at chrony / chrony Commits: 51a621bc by Miroslav Lichvar at 2023-11-02T12:53:00+01:00 ntp: initialize network correction of transmitted packets Initialize the unused value of network correction parsed from own transmitted packets to avoid a use

Re: [chrony-dev] Feedback for libchrony API

2023-11-01 Thread Miroslav Lichvar
It has now also the selectdata and authdata reports. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] Adding information to tracking

2023-10-26 Thread Miroslav Lichvar
to me why you care about steps but not larger slews. If you need to know if the maximum estimated error of the clock is below a specific value, you should be monitoring the last field in the tracking.log file. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.or

Re: [chrony-dev] [PATCH] Add support for systemd socket activation

2023-10-24 Thread Miroslav Lichvar
ich are returned by SCK_Open*() when they match the requested address and port. Other calls would do nothing on these sockets and would be closed only on exit. If there are no reusable socket, there should be a negligible impact. -- Miroslav Lichvar -- To unsubscribe email chrony

[chrony-dev] [Git][chrony/chrony][master] doc: document '-L -1' option for debug logging output

2023-10-24 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed to branch master at chrony / chrony Commits: 1488b31a by Luke Valenta at 2023-10-24T11:37:56+02:00 doc: document -L -1 option for debug logging output - - - - - 1 changed file: - doc/chronyd.adoc View it on GitLab: https://gitlab.com/chrony/chrony/-/commit

Re: [chrony-dev] [PATCH] Add support for systemd socket activation

2023-10-23 Thread Miroslav Lichvar
e.g. when issuing the chronyc deny all command. The socket might be needed later. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in

Re: [chrony-dev] [PATCH] Document '-L -1' option for debug logging output

2023-10-23 Thread Miroslav Lichvar
'-L -1' option. This > proposed patch adds documentation for this feature. Good idea. However, the patches seem to be mangled. Please send them with git-send email (you can add comments after the --- line), or submit a MR at the project's gitlab. -- Miroslav Lichvar -- To unsubscribe ema

Re: [chrony-dev] [sdl-chrony] NO_CAST.INTEGER_OVERFLOW in set_frequency function

2023-10-11 Thread Miroslav Lichvar
' > is a subject to overflow because its operands are not cast to a larger data > type before perfoming arithmetic: The largest value that the tick variables can have is 11000. This comes from the kernel. There is no need to cast it to long. -- Miroslav Lichvar -- To unsubscri

Re: [chrony-dev] [sdl-chrony] DEREF_OF_NULL.RET.STAT in UTI_OpenFile function

2023-10-11 Thread Miroslav Lichvar
, errors are fatal): That is, with an uppercase mode the function doesn't return NULL. If the file cannot be opened, the process is terminated instead. There is no need to check the return value. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "un

[chrony-dev] [Git][chrony/chrony][master] 16 commits: conf: fix reloading modified sources specified by IP address

2023-09-27 Thread Miroslav Lichvar (@mlichvar)
Miroslav Lichvar pushed to branch master at chrony / chrony Commits: 7ff74d9e by Miroslav Lichvar at 2023-09-12T08:02:36+02:00 conf: fix reloading modified sources specified by IP address When reloading a modified source from sourcedir which is ordered before the original source (e.g. maxpoll

[chrony-dev] Automatic commit reports no longer working

2023-09-13 Thread Miroslav Lichvar
configuration page. I'll see if I can get it fixed or script some replacement on my side. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help&q

Re: [chrony-dev] SOCK refclock system time resolution

2023-09-13 Thread Miroslav Lichvar
n purpose of that timestamp is detection of stale and out-of-order samples. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help

Re: [chrony-dev] SOCK refclock system time resolution

2023-09-13 Thread Miroslav Lichvar
(sys / 1000) % 100; > msg->offset = (ref - sys) / 1e9; I think the difference should be casted to int64_t before going to double. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help em

Re: [chrony-dev] SOCK refclock system time resolution

2023-09-11 Thread Miroslav Lichvar
On Mon, Sep 11, 2023 at 08:03:49AM -0400, Josef 'Jeff' Sipek wrote: > On Mon, Sep 11, 2023 at 10:29:30 +0200, Miroslav Lichvar wrote: > > That timestamp doesn't need much resolution. It just says when the > > offset (in double format) was captured. Milliseconds would be fine. >

Re: [chrony-dev] SOCK refclock system time resolution

2023-09-11 Thread Miroslav Lichvar
(in double format) was captured. Milliseconds would be fine. The code was written when chrony was still internally using timeval. If it was written today, timespec would be the obvious choice, but switching now I think would just create unnecessary work for the applications and more code to maint

Re: [chrony-dev] Multihomed (multiple) network interfaces support !

2023-09-05 Thread Miroslav Lichvar
currently supports. > I believe you will be able to implement correctly the functionality. > And will wait for the version to test it. I added it to my todo list, but don't get your hopes up. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "uns

Re: [chrony-dev] Multihomed (multiple) network interfaces support !

2023-09-05 Thread Miroslav Lichvar
stances of chronyd, each bound to a different interface. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] Multihomed (multiple) network interfaces support !

2023-09-05 Thread Miroslav Lichvar
nterface. > That is, will any packets come to the lan interface or not. You can verify that with single bindaddress. If you really need multiple addresses, you can start multiple servers instances as explained here: https://chrony-project.org/faq.html#_can_ntp_server_be_separated_from_ntp_clie

Re: [chrony-dev] [PATCH] sys_linux: Fix build failure on ARM Cortex-A9

2023-09-05 Thread Miroslav Lichvar
On Tue, Sep 05, 2023 at 02:11:06PM +0800, James Raphael Tiovalen wrote: > Guard references to syscalls not available on 32-bit ARM EABI > (__ARM_EABI__). What libseccomp version do you have? I think such old syscalls should be handled there. -- Miroslav Lichvar -- To unsubscribe email

Re: [chrony-dev] Multihomed (multiple) network interfaces support !

2023-08-30 Thread Miroslav Lichvar
p as "martian packets" if received from real network interfaces, so default bindcmdaddress of 127.0.0.1 should prevent responding to requests from network. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in th

Re: [chrony-dev] Multihomed (multiple) network interfaces support !

2023-08-30 Thread Miroslav Lichvar
ress172.10.0.0/24 # dmz For compatibility with current configuration, which effectively applies only the last occurence per IPv4/IPv6, I think it would need to be specified on one line like this bindaddress 192.168.0.0/24 172.10.0.0/24 It can be implemented, but there should be a good use case for

Re: [chrony-dev] Question about performance test 3

2023-08-29 Thread Miroslav Lichvar
On Tue, Aug 29, 2023 at 11:33:49AM +, Jeffrey Kane Johnson wrote: > > On Aug 29, 2023, at 07:30 , Miroslav Lichvar wrote: > > It's the root mean square (RMS) of the clock error over the whole > > testing interval, not a minimum or maximum. > > > > Thank

Re: [chrony-dev] Question about performance test 3

2023-08-29 Thread Miroslav Lichvar
testing interval, not a minimum or maximum. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] libchrony feedback: expose constants

2023-08-28 Thread Miroslav Lichvar
our of enumerated values? Offering a lookup for the values would > still be useful, and even internationalizable. We can do that if there is a major benefit for the applications, but I'd prefer simplicity and less code to maintain. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-req

Re: [chrony-dev] Feedback for libchrony API

2023-08-24 Thread Miroslav Lichvar
On Thu, Aug 24, 2023 at 01:00:02PM +0200, Reinhard Max wrote: > On Thu, 24 Aug 2023 at 10:09, Miroslav Lichvar wrote: > > > Is there a portable way to detect when a Unix socket is no longer > > referenced by anything? > > how about just trying to connect to the socket

Re: [chrony-dev] Feedback for libchrony API

2023-08-24 Thread Miroslav Lichvar
is buggy or not terminated correctly. Is there a portable way to detect when a Unix socket is no longer referenced by anything? I think that would allow libchrony to reuse old sockets with predictable names. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "uns

[chrony-dev] chrony-4.4 released

2023-08-09 Thread Miroslav Lichvar
and others the opportunity to continue with his work. His ideas and design are still present in the current code. I think it still is the most advanced NTP implementation and now it is also one of the most widely used ones, both as a client and server. -- Miroslav Lichvar signature.asc Description

Re: [chrony-dev] New Repository

2023-08-01 Thread Miroslav Lichvar
t what was the issue. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] [PATCH] macOS - Replace tuxfamily with chrony-project

2023-08-01 Thread Miroslav Lichvar
On Fri, Jul 28, 2023 at 11:16:00AM +1200, Bryan Christianson wrote: > The chrony project has moved from tuxfamily.org to chrony-project.org. > Reflect these changes in the macOS startup files and documentation. Applied, thanks. -- Miroslav Lichvar -- To unsubscribe email chrony-de

Re: [chrony-dev] autoconf for libchrony

2023-07-27 Thread Miroslav Lichvar
makefile should be able to do it too. I'd expect setting the CC and CFLAGS variables on the make command line to be sufficient. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ.

Re: [chrony-dev] Moving chrony website

2023-07-27 Thread Miroslav Lichvar
tomer's attention to it. It doesn't matter. I already registered chrony-project.org. It's good enough. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.or

Re: [chrony-dev] Moving chrony website

2023-07-26 Thread Miroslav Lichvar
essage, but got no calls back. > > Failing that, I personally like chrony-project.org. Done. If I don't hear any complaints, I'll set up a redirect on tuxfamily. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the

Re: [chrony-dev] Moving chrony website

2023-07-24 Thread Miroslav Lichvar
dwidth for > the downloads? The space is limited to 1 GB. Plenty for us. The traffic is not limited officially, handled case by case if it's too much. I doubt we will make a blip on their radar. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with &qu

[chrony-dev] Moving chrony website

2023-07-24 Thread Miroslav Lichvar
ast until a good replacement is found. I'm not aware of any and I'm not interested in managing our own MTA. Does this seem reasonable? -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email ch

[chrony-dev] chrony-4.4-pre2 released

2023-06-21 Thread Miroslav Lichvar
* Improve source replacement * Refresh address of NTP sources periodically * Update seccomp filter for musl -- Miroslav Lichvar signature.asc Description: PGP signature

Re: [chrony-dev] libchrony

2023-06-05 Thread Miroslav Lichvar
> The interfaces so far look good to me. Ok, thanks. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] Seccomp issue on Alpine linux

2023-06-01 Thread Miroslav Lichvar
d be now fixed in git. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] Seccomp issue on Alpine linux

2023-06-01 Thread Miroslav Lichvar
tl(7, TCGETS, 0x7ffcb332cee0) = -1 EINVAL (Invalid argument) -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] Seccomp issue on Alpine linux

2023-06-01 Thread Miroslav Lichvar
On Thu, Jun 01, 2023 at 01:51:27PM +0200, jvoisin wrote: > On 01/06/2023 13:31, Miroslav Lichvar wrote: > > On Thu, Jun 01, 2023 at 01:16:17PM +0200, jvoisin wrote: > >> is there a way to tell the strace wrapper to follow children? > > > > Try CHRONYD_WRAP

Re: [chrony-dev] Seccomp issue on Alpine linux

2023-06-01 Thread Miroslav Lichvar
On Thu, Jun 01, 2023 at 01:16:17PM +0200, jvoisin wrote: > is there a way to tell the strace wrapper to follow children? Try CHRONYD_WRAPPER="strace -f" ./002-extended but you will need to terminate it manually (e.g. ctrl-c). -- Miroslav Lichvar -- To unsubscribe email ch

Re: [chrony-dev] Seccomp issue on Alpine linux

2023-06-01 Thread Miroslav Lichvar
tl tmp/chronyd.out -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.

Re: [chrony-dev] Seccomp issue on Alpine linux

2023-06-01 Thread Miroslav Lichvar
the "chronyd exiting" message. It might have crashed due to seccomp filter. If you run "TEST_SCFILTER=1 ./002-extended", do you see the offending syscall in the system log? -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org w

[chrony-dev] libchrony

2023-05-31 Thread Miroslav Lichvar
some reports are supported. Other reports and commands could be added later if there is interest. At this point I'm mainly interested in feedback about the API, if it looks sane and future proof. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org

Re: [chrony-dev] Seccomp issue on Alpine linux

2023-05-31 Thread Miroslav Lichvar
quot;touch $TEST_DIR/test" 2> /dev/null || \ test_skip "$user cannot access $TEST_DIR" rm "$TEST_DIR/test" + else + chown 0:0 "$TEST_DIR" || test_skip "could not chown $TEST_DIR" fi

Re: [chrony-dev] Seccomp issue on Alpine linux

2023-05-31 Thread Miroslav Lichvar
OK > stopping chronydOK > checking chronyd messages BAD > FAIL What do you see in tmp/chronyd.log after this test? -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "

Re: [chrony-dev] Seccomp issue on Alpine linux

2023-05-29 Thread Miroslav Lichvar
voisin/chrony/test/system# > ``` > > What would be the best way to find the root cause/blacklisted syscalls? Try running the failing test as "TEST_SCFILTER=1 ./001-minimal" and see the failing syscall number in the system or audit log. Thanks, -- Miroslav Lichvar --

Re: [chrony-dev] Seccomp issue on Alpine linux

2023-05-29 Thread Miroslav Lichvar
gt; > > > I'd love to, but the latest master doesn't compile here: Compiling from git requires bison installed, or you can copy getdate.c from a released tarball. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubsc

  1   2   3   4   5   6   7   >