Merge ~paelzer/ubuntu/+source/chrony:merge-4.1-3-impish into ubuntu/+source/chrony:debian/sid

Proposed by Christian Ehrhardt 
Status: Merged
Approved by: Christian Ehrhardt 
Approved revision: 7f7bde221228fdaf3f7767cbe15b18b5dbbb45d8
Merge reported by: Bryce Harrington
Merged at revision: 7f7bde221228fdaf3f7767cbe15b18b5dbbb45d8
Proposed branch: ~paelzer/ubuntu/+source/chrony:merge-4.1-3-impish
Merge into: ubuntu/+source/chrony:debian/sid
Diff against target: 1091 lines (+886/-5)
11 files modified
debian/README.container (+60/-0)
debian/changelog (+674/-0)
debian/chrony.conf (+17/-2)
debian/chrony.default (+4/-0)
debian/chrony.service (+1/-2)
debian/chronyd-starter.sh (+68/-0)
debian/control (+3/-1)
debian/docs (+1/-0)
debian/install (+1/-0)
debian/patches/lp-1940252-rtc-avoid-printing-and-scanning-time_t.patch (+56/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Utkarsh Gupta (community) Approve
Canonical Server packageset reviewers Pending
Canonical Server Pending
Review via email: mp+407248@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

PPA: https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/4650/+packages

This late merge was made necessary by glibc 2.34 which brought some incompatibilities.

Builds started, tests will follow.
But the review could already be started and check the general correctness.

Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

K, taking this one for 1-for-1-review deal, heh.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Download full text (15.7 KiB)

Tests are good now (be aware there are expected errors)

The former fail was
099-scfilter Testing system call filter in non-destructive tests:
  level -1:
    001-minimal OK
    002-extended OK
    003-memlock OK
    004-priority OK
    006-privdrop OK
    007-cmdmon BAD
FAIL

New successful build is:

autopkgtest [14:14:22]: test run_system_tests: debian/tests/upstream-system-tests
autopkgtest [14:14:22]: test run_system_tests: [-----------------------
001-minimal Testing minimal configuration:
  non-default settings:
    minimal_config=1
  starting chronyd OK
  stopping chronyd OK
  checking chronyd messages OK
PASS

002-extended Testing extended configuration:
  non-default settings:
  starting chronyd OK
  waiting for synchronization OK
  stopping chronyd OK
  checking chronyd messages OK
  checking chronyd files OK
PASS

003-memlock Testing memory locking:
  non-default settings:
    extra_chronyd_options=-m
  starting chronyd OK
  waiting for synchronization OK
  stopping chronyd OK
  checking chronyd messages OK
  checking chronyd files OK
PASS

004-priority Testing process priority:
  non-default settings:
    extra_chronyd_options=-P 1
  starting chronyd OK
  waiting for synchronization OK
  stopping chronyd OK
  checking chronyd messages OK
  checking chronyd files OK
PASS

006-privdrop Testing dropping of root privileges:
  non-default settings:
    minimal_config=1
    user=nobody
  starting chronyd OK
  stopping chronyd OK
  checking chronyd messages OK
PASS

007-cmdmon Testing chronyc commands:
  non-default settings:
  starting chronyd OK
  waiting for synchronization OK
  running chronyc allow 1.2.3.4 OK
  checking chronyc output OK
  running chronyc deny 1.2.3.4 OK
  checking chronyc output OK
  running chronyc cmddeny OK
  checking chronyc output OK
  running chronyc cmdallow OK
  checking chronyc output OK
  running chronyc cmddeny 1.2.3.4 OK
  checking chronyc ou...

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Full autopkgtest passed (all teste, before I only ran the formerly broken one).

Also if it helps here the usual merge-tags, but it is a simple one anyway.

 * [new tag] lp1940252/logical/4.1-1ubuntu1 -> lp1940252/logical/4.1-1ubuntu1
 * [new tag] lp1940252/new/debian -> lp1940252/new/debian
 * [new tag] lp1940252/old/debian -> lp1940252/old/debian
 * [new tag] lp1940252/old/ubuntu -> lp1940252/old/ubuntu
 * [new tag] lp1940252/reconstruct/4.1-1ubuntu1 -> lp1940252/reconstruct/4.1-1ubuntu1
 * [new tag] lp1940252/split/4.1-1ubuntu1 -> lp1940252/split/4.1-1ubuntu1

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

autopkgtest [15:38:27]: @@@@@@@@@@@@@@@@@@@@ summary
upstream-simulation-test-suite PASS
time-sources-from-dhcp-servers PASS
run_system_tests PASS
run_destructive_system_tests PASS
fragmented-configuration PASS
dynamically-add-source PASS
ntp-server-and-nts-auth PASS

Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

* Changelog:
  - [✔] old content and logical tag match as expected
  - [✔] changelog entry correct version and targeted codename
  - [-] changelog entries correct

Trivial nitpick added as an inline comment.

  - [✔] update-maintainer has been run

* Actual changes:
  - [✔] no further upstream version to consider
  - [✔] debian changes look safe

* Old Delta:
  - [✔] dropped changes are ok to be dropped

Verified that they are indeed included in 4.1-2. Perfect!

  - [✔] nothing else to drop

* New Delta:
  - [✔] patches match what was proposed upstream
  - [✔] patches correctly included in debian/patches/series
  - [✔] patches have correct DEP3 metadata

* Build/Test:
  - [✔] build is ok
  - [✔] verified PPA package installs/uninstalls
  - [✔] autopkgtest against the PPA package passes

Thanks for build and autopkgtest logs above.

TL;DR: +1, thanks. Maybe take care of adding the nitpicky suggest whilst uploading. Thanks!

review: Approve
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

 * [new tag] upload/4.1-3ubuntu1 -> upload/4.1-3ubuntu1

Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading chrony_4.1-3ubuntu1.dsc: done.
  Uploading chrony_4.1-3ubuntu1.debian.tar.xz: done.
  Uploading chrony_4.1-3ubuntu1_source.buildinfo: done.
  Uploading chrony_4.1-3ubuntu1_source.changes: done.
Successfully uploaded packages.

Revision history for this message
Bryce Harrington (bryce) wrote :

This has migrated successfully

  - Source Package: chrony
  - Current Version: 4.1-3ubuntu1
  - New Version: 4.1-3ubuntu1
  - Migrated: True
  - Requester: Christian Ehrhardt 

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/README.container b/debian/README.container
0new file mode 1006440new file mode 100644
index 0000000..dcacf49
--- /dev/null
+++ b/debian/README.container
@@ -0,0 +1,60 @@
1Chrony in Containers
2--------------------
3
4Currently in 99.9+% of the cases syncing the local clock in a container
5is wrong. Most of the time it will be unable to do so, because it is lacking
6CAP_SYS_TIME. Or worse, if the CAP_SYS_TIME privilege is granted, multiple
7containers could fight over the system's time, because the Linux kernel does
8not provide time namespaces (yet).
9
10There are two things a user installing chrony usually wants:
111. synchronize my time (NTP client)
122. serve NTP (NTP server)
13
14In a container the first makes (usually) no sense, so by default we enable -x
15there (as it would only crash otherwise).
16This will disable the control of the system clock.
17See `man chronyd` for more details on the -x option.
18
19Formerly, the check for Condition=CAP_SYS_TIME in the systemd service avoided
20the crash of the NTP client portion, but that means the server use case will
21not work by default in containers. It is still not recommended to use a
22container as an NTP server, but if the host clock is synchronised via NTP,
23adding the -x option to chronyd instances running in containers will allow
24them to function as NTP servers which do not adjust the system clock.
25The Condition=CAP_SYS_TIME check was a silent, no-log-entry stealing away
26leaving users often unclear what happened - especially if they were more after
27the NTP server than the NTP client.
28
29One could argue that someone who installs chrony expects the system time to be
30synchronised, so it should fail if it is not able to do so. On the other hand
31it could be argued that someone who installs chrony expects time to be served
32over the network via NTP.
33We can't know which expectation is applicable, so we assume that time should
34be synchronised unless chronyd is running in a container (or is without
35CAP_SYS_TIME in any other environment).
36
37To make things worse recent container implementations will offer CAP_SYS_TIME
38to the container. Since from the container's point of view, this capability is
39available for the container's user namespace. Just later on adjtimex and similar
40are actually evaluated against the host kernel where they will fail. Due to
41that without further precaution running chrony in Ubuntu in the future will
42likely have the service start (as Condition=CAP_SYS_TIME will be true) but
43then immediately fail.
44This will depend on the environment e.g. versions and types of containers and
45thereby feel just 'unreliable' from users point of view.
46Furthermore it will affect upgrades as the service has to be restarted for a
47package upgrade to be considered complete.
48
49Due to all of that Ubuntu decided (LP: #1589780) to default to -x (do not
50set the system clock) in containers.
51
52If one really wants to (try to) sync time in a container or CAP_SYS_TIME-less
53environment set SYNC_IN_CONTAINER="yes" in /etc/default/chrony to disable
54this special handling.
55
56It is important to mention that as soon as upstream provides a way to provide
57a default config working in those cases Ubuntu intends to use that and drop
58the current workaround.
59
60 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Fri, 16 Mar 2018 12:25:44 +0100
diff --git a/debian/changelog b/debian/changelog
index 9309508..cb25d12 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,38 @@
1chrony (4.1-3ubuntu1) impish; urgency=medium
2
3 * Merge with Debian unstable (LP: #1940252). Remaining changes:
4 Remaining changes:
5 - d/chrony.conf: use ubuntu ntp pool and server (LP 1744664 1754358)
6 - Set -x as default if unable to set time (e.g. in containers) (LP 1589780)
7 Chrony is a single service which acts as both NTP client (i.e. syncing the
8 local clock) and NTP server (i.e. providing NTP services to the network),
9 and that is both desired and expected in the vast majority of cases.
10 But in containers syncing the local clock is usually impossible, but this
11 shall not break the providing of NTP services to the network.
12 To some extent this makes chrony's default config more similar to 'ntpd',
13 which complained in syslog but still provided NTP server service in those
14 cases.
15 + debian/chrony.service: allow the service to run without CAP_SYS_TIME
16 + debian/control: add new dependency libcap2-bin for capsh (usually
17 installed anyway, but make them explicit to be sure).
18 + debian/chrony.default: new option SYNC_IN_CONTAINER to not fall back
19 (Default off) [fixed a minor typo in the comment in this update]
20 + debian/chronyd-starter.sh: wrapper to handle special cases in containers
21 and if CAP_SYS_TIME is missing. Effectively allows on to run NTP server
22 in containers on a default installation and avoid failing to sync time
23 (or if allowed to sync, avoid multiple containers to fight over it by
24 accident).
25 + debian/install: make chrony-starter.sh available on install.
26 + debian/docs, debian/README.container: provide documentation about the
27 handling of this case.
28 * Dropped changes:
29 - d/t/helper-functions: restart explicitly to fix test issues
30 * Added changes:
31 - d/p/lp-1940252-rtc-avoid-printing-and-scanning-time_t.patch: glibc 2.34
32 compatibility
33
34 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Tue, 17 Aug 2021 12:22:32 +0200
35
1chrony (4.1-3) unstable; urgency=medium36chrony (4.1-3) unstable; urgency=medium
237
3 * Upload to unstable.38 * Upload to unstable.
@@ -28,6 +63,51 @@ chrony (4.1-2) experimental; urgency=medium
2863
29 -- Vincent Blut <vincent.debian@free.fr> Sat, 26 Jun 2021 17:16:45 +020064 -- Vincent Blut <vincent.debian@free.fr> Sat, 26 Jun 2021 17:16:45 +0200
3065
66chrony (4.1-1ubuntu1) impish; urgency=medium
67
68 * Merge new upstream 4.1 and yet unrelased changes from Debian salsa.
69 Remaining changes:
70 - d/chrony.conf: use ubuntu ntp pool and server (LP 1744664 1754358)
71 - Set -x as default if unable to set time (e.g. in containers) (LP 1589780)
72 Chrony is a single service which acts as both NTP client (i.e. syncing the
73 local clock) and NTP server (i.e. providing NTP services to the network),
74 and that is both desired and expected in the vast majority of cases.
75 But in containers syncing the local clock is usually impossible, but this
76 shall not break the providing of NTP services to the network.
77 To some extent this makes chrony's default config more similar to 'ntpd',
78 which complained in syslog but still provided NTP server service in those
79 cases.
80 + debian/chrony.service: allow the service to run without CAP_SYS_TIME
81 + debian/control: add new dependency libcap2-bin for capsh (usually
82 installed anyway, but make them explicit to be sure).
83 + debian/chrony.default: new option SYNC_IN_CONTAINER to not fall back
84 (Default off) [fixed a minor typo in the comment in this update]
85 + debian/chronyd-starter.sh: wrapper to handle special cases in containers
86 and if CAP_SYS_TIME is missing. Effectively allows on to run NTP server
87 in containers on a default installation and avoid failing to sync time
88 (or if allowed to sync, avoid multiple containers to fight over it by
89 accident).
90 + debian/install: make chrony-starter.sh available on install.
91 + debian/docs, debian/README.container: provide documentation about the
92 handling of this case.
93 * Dropped changes:
94 - d/t/helper-functions: reduce default ubuntu config, to make space for
95 testcase config
96 [ in Debian 4.0-6 ]
97 - d/t/{dynamically-add-source,ntp-server-and-nts-auth,helper-functions}:
98 unify tests to use reload and restart
99 [ in Debian 4.0-6 ]
100 - d/t/upstream-simulation-test-suite: Update clknetsim version to fix
101 a test failure on s390x when LTO is enabled at build time (LP #1921377)
102 [ in Debian 4.1~pre1-1 ]
103 - d/p/lp-1915006-sys_linux-allow-statx-and-fstatat64-in-seccomp-filte.patch:
104 add compatibility for glibc 2.33 (LP: 1915006)
105 [ upstream in 4.1-pre1 ]
106 * Added changes:
107 - d/t/helper-functions: restart explicitly to fix test issues
108
109 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Tue, 18 May 2021 08:12:59 +0200
110
31chrony (4.1-1) experimental; urgency=medium111chrony (4.1-1) experimental; urgency=medium
32112
33 * Import upstream version 4.1:113 * Import upstream version 4.1:
@@ -118,6 +198,54 @@ chrony (4.0-6) unstable; urgency=medium
118198
119 -- Vincent Blut <vincent.debian@free.fr> Sun, 21 Feb 2021 21:59:22 +0100199 -- Vincent Blut <vincent.debian@free.fr> Sun, 21 Feb 2021 21:59:22 +0100
120200
201chrony (4.0-5ubuntu3) hirsute; urgency=medium
202
203 * d/t/upstream-simulation-test-suite: Update clknetsim version to fix
204 a test failure on s390x when LTO is enabled at build time (LP: #1921377)
205
206 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Thu, 25 Mar 2021 15:45:47 +0100
207
208chrony (4.0-5ubuntu2) hirsute; urgency=medium
209
210 * d/p/lp-1915006-sys_linux-allow-statx-and-fstatat64-in-seccomp-filte.patch:
211 add compatibility for glibc 2.33 (LP: 1915006)
212
213 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Mon, 15 Feb 2021 12:50:29 +0100
214
215chrony (4.0-5ubuntu1) hirsute; urgency=medium
216
217 * Merge with Debian unstable (LP: #1915006). Remaining changes:
218 - d/chrony.conf: use ubuntu ntp pool and server (LP 1744664 1754358)
219 - Set -x as default if unable to set time (e.g. in containers) (LP 1589780)
220 Chrony is a single service which acts as both NTP client (i.e. syncing the
221 local clock) and NTP server (i.e. providing NTP services to the network),
222 and that is both desired and expected in the vast majority of cases.
223 But in containers syncing the local clock is usually impossible, but this
224 shall not break the providing of NTP services to the network.
225 To some extent this makes chrony's default config more similar to 'ntpd',
226 which complained in syslog but still provided NTP server service in those
227 cases.
228 + debian/chrony.service: allow the service to run without CAP_SYS_TIME
229 + debian/control: add new dependency libcap2-bin for capsh (usually
230 installed anyway, but make them explicit to be sure).
231 + debian/chrony.default: new option SYNC_IN_CONTAINER to not fall back
232 (Default off) [fixed a minor typo in the comment in this update]
233 + debian/chronyd-starter.sh: wrapper to handle special cases in containers
234 and if CAP_SYS_TIME is missing. Effectively allows on to run NTP server
235 in containers on a default installation and avoid failing to sync time
236 (or if allowed to sync, avoid multiple containers to fight over it by
237 accident).
238 + debian/install: make chrony-starter.sh available on install.
239 + debian/docs, debian/README.container: provide documentation about the
240 handling of this case.
241 * Added changes:
242 - d/t/helper-functions: reduce default ubuntu config, to make space for
243 testcase config
244 - d/t/{dynamically-add-source,ntp-server-and-nts-auth,helper-functions}:
245 unify tests to use reload and restart
246
247 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Mon, 08 Feb 2021 12:45:05 +0100
248
121chrony (4.0-5) unstable; urgency=medium249chrony (4.0-5) unstable; urgency=medium
122250
123 * Follow DEP-14 branch naming conventions:251 * Follow DEP-14 branch naming conventions:
@@ -234,6 +362,35 @@ chrony (4.0-3) unstable; urgency=medium
234362
235 -- Vincent Blut <vincent.debian@free.fr> Mon, 18 Jan 2021 21:58:52 +0100363 -- Vincent Blut <vincent.debian@free.fr> Mon, 18 Jan 2021 21:58:52 +0100
236364
365chrony (4.0-2ubuntu1) hirsute; urgency=medium
366
367 * Merge with Debian unstable. Remaining changes:
368 - d/chrony.conf: use ubuntu ntp pool and server (LP 1744664 1754358)
369 - Set -x as default if unable to set time (e.g. in containers) (LP 1589780)
370 Chrony is a single service which acts as both NTP client (i.e. syncing the
371 local clock) and NTP server (i.e. providing NTP services to the network),
372 and that is both desired and expected in the vast majority of cases.
373 But in containers syncing the local clock is usually impossible, but this
374 shall not break the providing of NTP services to the network.
375 To some extent this makes chrony's default config more similar to 'ntpd',
376 which complained in syslog but still provided NTP server service in those
377 cases.
378 + debian/chrony.service: allow the service to run without CAP_SYS_TIME
379 + debian/control: add new dependency libcap2-bin for capsh (usually
380 installed anyway, but make them explicit to be sure).
381 + debian/chrony.default: new option SYNC_IN_CONTAINER to not fall back
382 (Default off) [fixed a minor typo in the comment in this update]
383 + debian/chronyd-starter.sh: wrapper to handle special cases in containers
384 and if CAP_SYS_TIME is missing. Effectively allows on to run NTP server
385 in containers on a default installation and avoid failing to sync time
386 (or if allowed to sync, avoid multiple containers to fight over it by
387 accident).
388 + debian/install: make chrony-starter.sh available on install.
389 + debian/docs, debian/README.container: provide documentation about the
390 handling of this case.
391
392 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Tue, 27 Oct 2020 10:55:19 +0100
393
237chrony (4.0-2) unstable; urgency=medium394chrony (4.0-2) unstable; urgency=medium
238395
239 * Merge branch 'experimental' into 'master'.396 * Merge branch 'experimental' into 'master'.
@@ -369,6 +526,44 @@ chrony (4.0~pre4-1) experimental; urgency=medium
369526
370 -- Vincent Blut <vincent.debian@free.fr> Fri, 02 Oct 2020 21:21:08 +0200527 -- Vincent Blut <vincent.debian@free.fr> Fri, 02 Oct 2020 21:21:08 +0200
371528
529chrony (3.5.1-1ubuntu2) groovy; urgency=medium
530
531 * d/chronyd-starter.sh: fix commandline argument parsing (LP: #1898000)
532
533 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Tue, 06 Oct 2020 12:20:40 +0200
534
535chrony (3.5.1-1ubuntu1) groovy; urgency=medium
536
537 * Merge with Debian unstable. Remaining changes:
538 - d/chrony.conf: use ubuntu ntp pool and server (LP 1744664 1754358)
539 - Set -x as default if unable to set time (e.g. in containers) (LP 1589780)
540 Chrony is a single service which acts as both NTP client (i.e. syncing the
541 local clock) and NTP server (i.e. providing NTP services to the network),
542 and that is both desired and expected in the vast majority of cases.
543 But in containers syncing the local clock is usually impossible, but this
544 shall not break the providing of NTP services to the network.
545 To some extent this makes chrony's default config more similar to 'ntpd',
546 which complained in syslog but still provided NTP server service in those
547 cases.
548 + debian/chrony.service: allow the service to run without CAP_SYS_TIME
549 + debian/control: add new dependency libcap2-bin for capsh (usually
550 installed anyway, but make them explicit to be sure).
551 + debian/chrony.default: new option SYNC_IN_CONTAINER to not fall back
552 (Default off) [fixed a minor typo in the comment in this update]
553 + debian/chronyd-starter.sh: wrapper to handle special cases in containers
554 and if CAP_SYS_TIME is missing. Effectively allows to run NTP server in
555 containers on a default installation and avoid failing to sync time (or
556 if allowed to sync, avoid multiple containers to fight over it by
557 accident).
558 + debian/install: make chrony-starter.sh available on install.
559 + debian/docs, debian/README.container: provide documentation about the
560 handling of this case.
561 * Dropped changes
562 - d/t/control: harden time-sources-from-dhcp-servers test for systemd change
563 (LP: 1873031) [no more needed with recent systemd that is in groovy]
564
565 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Wed, 26 Aug 2020 15:30:48 +0200
566
372chrony (3.5.1-1) unstable; urgency=medium567chrony (3.5.1-1) unstable; urgency=medium
373568
374 * Import upstream version 3.5.1:569 * Import upstream version 3.5.1:
@@ -384,6 +579,50 @@ chrony (3.5.1-1) unstable; urgency=medium
384579
385 -- Vincent Blut <vincent.debian@free.fr> Thu, 20 Aug 2020 14:07:22 +0200580 -- Vincent Blut <vincent.debian@free.fr> Thu, 20 Aug 2020 14:07:22 +0200
386581
582chrony (3.5-9ubuntu2) groovy; urgency=medium
583
584 * No change rebuild against new libnettle8 and libhogweed6 ABI.
585
586 -- Dimitri John Ledkov <xnox@ubuntu.com> Mon, 29 Jun 2020 22:22:19 +0100
587
588chrony (3.5-9ubuntu1) groovy; urgency=medium
589
590 * Merge with Debian unstable (LP: #1878005). Remaining changes:
591 - d/chrony.conf: use ubuntu ntp pool and server (LP 1744664 1754358)
592 - Set -x as default if unable to set time (e.g. in containers) (LP 1589780)
593 Chrony is a single service which acts as both NTP client (i.e. syncing the
594 local clock) and NTP server (i.e. providing NTP services to the network),
595 and that is both desired and expected in the vast majority of cases.
596 But in containers syncing the local clock is usually impossible, but this
597 shall not break the providing of NTP services to the network.
598 To some extent this makes chrony's default config more similar to 'ntpd',
599 which complained in syslog but still provided NTP server service in those
600 cases.
601 + debian/chrony.service: allow the service to run without CAP_SYS_TIME
602 + debian/control: add new dependency libcap2-bin for capsh (usually
603 installed anyway, but make them explicit to be sure).
604 + debian/chrony.default: new option SYNC_IN_CONTAINER to not fall back
605 (Default off) [fixed a minor typo in the comment in this update]
606 + debian/chronyd-starter.sh: wrapper to handle special cases in containers
607 and if CAP_SYS_TIME is missing. Effectively allows to run NTP server in
608 containers on a default installation and avoid failing to sync time (or
609 if allowed to sync, avoid multiple containers to fight over it by
610 accident).
611 + debian/install: make chrony-starter.sh available on install.
612 + debian/docs, debian/README.container: provide documentation about the
613 handling of this case.
614 - d/t/control: harden time-sources-from-dhcp-servers test for systemd change
615 (LP: 1873031)
616 * Dropped changes [in Debian now]
617 - d/t/upstream-system-tests: stop chrony/systemd-timesynd before tests
618 - d/t/upstream-system-tests: fix stderr in case services do not exist
619 - Stop starting systemd-timesyncd in postrm. This is no longer relevant
620 since systemd-timesyncd is a standalone package declaring
621 Conflicts/Replaces/Provides: time-daemon. (Closes 955773, LP: 1872183)
622 - d/postrm: Reinstate the remove target (LP: 1873810)
623
624 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Wed, 20 May 2020 09:57:39 +0200
625
387chrony (3.5-9) unstable; urgency=medium626chrony (3.5-9) unstable; urgency=medium
388627
389 * debian/patches/:628 * debian/patches/:
@@ -446,6 +685,76 @@ chrony (3.5-7) unstable; urgency=medium
446685
447 -- Vincent Blut <vincent.debian@free.fr> Tue, 17 Mar 2020 15:21:53 +0100686 -- Vincent Blut <vincent.debian@free.fr> Tue, 17 Mar 2020 15:21:53 +0100
448687
688chrony (3.5-6ubuntu6) focal; urgency=medium
689
690 * d/postrm: Reinstate the remove target (LP: #1873810)
691
692 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Mon, 20 Apr 2020 15:58:52 +0200
693
694chrony (3.5-6ubuntu5) focal; urgency=medium
695
696 * d/t/control: harden time-sources-from-dhcp-servers test for systemd change
697 (LP: #1873031)
698
699 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Wed, 15 Apr 2020 18:23:10 +0200
700
701chrony (3.5-6ubuntu4) focal; urgency=medium
702
703 * debian/postrm:
704 - Stop starting systemd-timesyncd in postrm. This is no longer relevant
705 since systemd-timesyncd is a standalone package declaring
706 Conflicts/Replaces/Provides: time-daemon. (Closes 955773, LP: #1872183)
707
708 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Wed, 15 Apr 2020 09:01:30 +0200
709
710chrony (3.5-6ubuntu3) focal; urgency=medium
711
712 * avoid multiple time services running concurrently (LP: #1870144).
713 This fixes the autopkgtests vs chrond itself, the issue of concurrent
714 systemd-timesyncd will be fixed in systemd by (LP 1849156)
715 - d/t/upstream-system-tests: stop chrony/systemd-timesynd before tests
716 - d/t/upstream-system-tests: fix stderr in case services do not exist
717
718 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Wed, 01 Apr 2020 09:25:45 +0200
719
720chrony (3.5-6ubuntu2) focal; urgency=medium
721
722 * fix capsh usage in focal avoiding to always fall back to -x (LP: #1867036)
723 - d/control: add versioned dependency to libcap2-bin new enough to
724 support --has-p
725 - d/chronyd-starter.sh: update capsh usage to use --has-p
726
727 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Tue, 31 Mar 2020 10:19:20 +0200
728
729chrony (3.5-6ubuntu1) focal; urgency=medium
730
731 * Merge with Debian unstable (LP: #1866753). Remaining changes:
732 - d/chrony.conf: use ubuntu ntp pool and server (LP 1744664 1754358)
733 - Set -x as default if unable to set time (e.g. in containers) (LP 1589780)
734 Chrony is a single service which acts as both NTP client (i.e. syncing the
735 local clock) and NTP server (i.e. providing NTP services to the network),
736 and that is both desired and expected in the vast majority of cases.
737 But in containers syncing the local clock is usually impossible, but this
738 shall not break the providing of NTP services to the network.
739 To some extent this makes chrony's default config more similar to 'ntpd',
740 which complained in syslog but still provided NTP server service in those
741 cases.
742 + debian/chrony.service: allow the service to run without CAP_SYS_TIME
743 + debian/control: add new dependency libcap2-bin for capsh (usually
744 installed anyway, but make them explicit to be sure).
745 + debian/chrony.default: new option SYNC_IN_CONTAINER to not fall back
746 (Default off) [fixed a minor typo in the comment in this update]
747 + debian/chronyd-starter.sh: wrapper to handle special cases in containers
748 and if CAP_SYS_TIME is missing. Effectively allows to run NTP server in
749 containers on a default installation and avoid failing to sync time (or
750 if allowed to sync, avoid multiple containers to fight over it by
751 accident).
752 + debian/install: make chrony-starter.sh available on install.
753 + debian/docs, debian/README.container: provide documentation about the
754 handling of this case.
755
756 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Thu, 12 Mar 2020 11:02:33 +0100
757
449chrony (3.5-6) unstable; urgency=medium758chrony (3.5-6) unstable; urgency=medium
450759
451 * debian/chrony.service:760 * debian/chrony.service:
@@ -480,6 +789,41 @@ chrony (3.5-6) unstable; urgency=medium
480789
481 -- Vincent Blut <vincent.debian@free.fr> Tue, 10 Mar 2020 19:17:16 +0100790 -- Vincent Blut <vincent.debian@free.fr> Tue, 10 Mar 2020 19:17:16 +0100
482791
792chrony (3.5-5ubuntu1) focal; urgency=medium
793
794 * Merge with Debian unstable (LP: #1859969). Remaining changes:
795 - d/chrony.conf: use ubuntu ntp pool and server (LP 1744664 1754358)
796 - Set -x as default if unable to set time (e.g. in containers) (LP 1589780)
797 Chrony is a single service which acts as both NTP client (i.e. syncing the
798 local clock) and NTP server (i.e. providing NTP services to the network),
799 and that is both desired and expected in the vast majority of cases.
800 But in containers syncing the local clock is usually impossible, but this
801 shall not break the providing of NTP services to the network.
802 To some extent this makes chrony's default config more similar to 'ntpd',
803 which complained in syslog but still provided NTP server service in those
804 cases.
805 + debian/chrony.service: allow the service to run without CAP_SYS_TIME
806 + debian/control: add new dependency libcap2-bin for capsh (usually
807 installed anyway, but make them explicit to be sure).
808 + debian/chrony.default: new option SYNC_IN_CONTAINER to not fall back
809 (Default off) [fixed a minor typo in the comment in this update]
810 + debian/chronyd-starter.sh: wrapper to handle special cases in containers
811 and if CAP_SYS_TIME is missing. Effectively allows to run NTP server in
812 containers on a default installation and avoid failing to sync time (or
813 if allowed to sync, avoid multiple containers to fight over it by
814 accident).
815 + debian/install: make chrony-starter.sh available on install.
816 + debian/docs, debian/README.container: provide documentation about the
817 handling of this case.
818 * Dropped changes:
819 - d/t/control: destructive_system_tests only work on amd64 and s390x right
820 now [fixed by backporting fixes from upstream in 3.5-5 ]
821 - d/t/upstream-simulation-test-suite: ignore warnings on stderr while
822 running clksim make
823 [ in Debian 3.5-5 ]
824
825 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Thu, 16 Jan 2020 12:55:32 +0100
826
483chrony (3.5-5) unstable; urgency=medium827chrony (3.5-5) unstable; urgency=medium
484828
485 * debian/control:829 * debian/control:
@@ -507,6 +851,47 @@ chrony (3.5-5) unstable; urgency=medium
507851
508 -- Vincent Blut <vincent.debian@free.fr> Sun, 22 Dec 2019 17:30:40 +0100852 -- Vincent Blut <vincent.debian@free.fr> Sun, 22 Dec 2019 17:30:40 +0100
509853
854chrony (3.5-4ubuntu2) focal; urgency=medium
855
856 * d/t/control: destructive_system_tests only work on amd64 and s390x right
857 now
858 * d/t/upstream-simulation-test-suite: ignore warnings on stderr while
859 running clksim make
860
861 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Tue, 03 Dec 2019 14:50:50 +0100
862
863chrony (3.5-4ubuntu1) focal; urgency=medium
864
865 * Merge with Debian unstable (LP: #1854328). Remaining changes:
866 - d/chrony.conf: use ubuntu ntp pool and server (LP 1744664 1754358)
867 - Set -x as default if unable to set time (e.g. in containers) (LP 1589780)
868 Chrony is a single service which acts as both NTP client (i.e. syncing the
869 local clock) and NTP server (i.e. providing NTP services to the network),
870 and that is both desired and expected in the vast majority of cases.
871 But in containers syncing the local clock is usually impossible, but this
872 shall not break the providing of NTP services to the network.
873 To some extent this makes chrony's default config more similar to 'ntpd',
874 which complained in syslog but still provided NTP server service in those
875 cases.
876 + debian/chrony.service: allow the service to run without CAP_SYS_TIME
877 + debian/control: add new dependency libcap2-bin for capsh (usually
878 installed anyway, but make them explicit to be sure).
879 + debian/chrony.default: new option SYNC_IN_CONTAINER to not fall back
880 (Default off) [fixed a minor typo in the comment in this update]
881 + debian/chronyd-starter.sh: wrapper to handle special cases in containers
882 and if CAP_SYS_TIME is missing. Effectively allows to run NTP server in
883 containers on a default installation and avoid failing to sync time (or
884 if allowed to sync, avoid multiple containers to fight over it by
885 accident).
886 + debian/install: make chrony-starter.sh available on install.
887 + debian/docs, debian/README.container: provide documentation about the
888 handling of this case.
889 * Dropped changes:
890 - d/t/control: allow stderr for recent changes in resolved/iproute
891 (LP 1836882) [no more needed]
892
893 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Thu, 28 Nov 2019 10:31:36 +0100
894
510chrony (3.5-4) unstable; urgency=medium895chrony (3.5-4) unstable; urgency=medium
511896
512 * debian/tests/control:897 * debian/tests/control:
@@ -551,6 +936,52 @@ chrony (3.5-3) unstable; urgency=medium
551936
552 -- Vincent Blut <vincent.debian@free.fr> Tue, 13 Aug 2019 17:57:47 +0200937 -- Vincent Blut <vincent.debian@free.fr> Tue, 13 Aug 2019 17:57:47 +0200
553938
939chrony (3.5-2ubuntu3) focal; urgency=medium
940
941 * No-change rebuild against libnettle7
942
943 -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 31 Oct 2019 22:07:56 +0000
944
945chrony (3.5-2ubuntu2) eoan; urgency=medium
946
947 * d/t/control: allow stderr for recent changes in resolved/iproute
948 (LP: #1836882)
949
950 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Wed, 17 Jul 2019 12:41:58 +0200
951
952chrony (3.5-2ubuntu1) eoan; urgency=medium
953
954 * Merge with Debian experimental (LP: #1835046). Remaining changes:
955 - d/chrony.conf: use ubuntu ntp pool and server (LP 1744664 1754358)
956 - Set -x as default if unable to set time (e.g. in containers) (LP 1589780)
957 Chrony is a single service which acts as both NTP client (i.e. syncing the
958 local clock) and NTP server (i.e. providing NTP services to the network),
959 and that is both desired and expected in the vast majority of cases.
960 But in containers syncing the local clock is usually impossible, but this
961 shall not break the providing of NTP services to the network.
962 To some extent this makes chrony's default config more similar to 'ntpd',
963 which complained in syslog but still provided NTP server service in those
964 cases.
965 + debian/chrony.service: allow the service to run without CAP_SYS_TIME
966 + debian/control: add new dependency libcap2-bin for capsh (usually
967 installed anyway, but make them explicit to be sure).
968 + debian/chrony.default: new option SYNC_IN_CONTAINER to not fall back
969 (Default off) [fixed a minor typo in the comment in this update]
970 + debian/chronyd-starter.sh: wrapper to handle special cases in containers
971 and if CAP_SYS_TIME is missing. Effectively allows to run NTP server in
972 containers on a default installation and avoid failing to sync time (or
973 if allowed to sync, avoid multiple containers to fight over it by
974 accident).
975 + debian/install: make chrony-starter.sh available on install.
976 + debian/docs, debian/README.container: provide documentation about the
977 handling of this case.
978 * Dropped changes (accepted in Debian now):
979 - d/postrm: re-establish systemd-timesyncd on removal (LP 1764357)
980 - d/postrm: respect policy-rc.d when restoring systemd-timesyncd
981 (LP 1771994)
982
983 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Tue, 02 Jul 2019 13:37:23 +0200
984
554chrony (3.5-2) unstable; urgency=medium985chrony (3.5-2) unstable; urgency=medium
555986
556 * Merge branch “experimental” into “master”.987 * Merge branch “experimental” into “master”.
@@ -637,6 +1068,56 @@ chrony (3.5~pre1-1) experimental; urgency=medium
6371068
638 -- Vincent Blut <vincent.debian@free.fr> Sun, 12 May 2019 22:16:14 +02001069 -- Vincent Blut <vincent.debian@free.fr> Sun, 12 May 2019 22:16:14 +0200
6391070
1071chrony (3.4-4ubuntu2) eoan; urgency=medium
1072
1073 * Dropped sysV change added in 3.4-4ubuntu1 (LP: #1829700):
1074 - removed d/init to avoid weird interactions between sysV and systemd
1075 [With debhelper compat level 12 this isn't an issue anymore]
1076
1077 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Wed, 22 May 2019 09:10:41 +0200
1078
1079chrony (3.4-4ubuntu1) eoan; urgency=medium
1080
1081 * Merge with Debian unstable (LP: #1828992). Remaining changes:
1082 - d/chrony.conf: use ubuntu ntp pool and server (LP 1744664 1754358)
1083 - Set -x as default if unable to set time (e.g. in containers) (LP 1589780)
1084 Chrony is a single service which acts as both NTP client (i.e. syncing the
1085 local clock) and NTP server (i.e. providing NTP services to the network),
1086 and that is both desired and expected in the vast majority of cases.
1087 But in containers syncing the local clock is usually impossible, but this
1088 shall not break the providing of NTP services to the network.
1089 To some extent this makes chrony's default config more similar to 'ntpd',
1090 which complained in syslog but still provided NTP server service in those
1091 cases.
1092 + debian/chrony.service: allow the service to run without CAP_SYS_TIME
1093 + debian/control: add new dependency libcap2-bin for capsh (usually
1094 installed anyway, but make them explicit to be sure).
1095 + debian/chrony.default: new option SYNC_IN_CONTAINER to not fall back
1096 (Default off) [fixed a minor typo in the comment in this update]
1097 + debian/chronyd-starter.sh: wrapper to handle special cases in containers
1098 and if CAP_SYS_TIME is missing. Effectively allows to run NTP server in
1099 containers on a default installation and avoid failing to sync time (or
1100 if allowed to sync, avoid multiple containers to fight over it by
1101 accident).
1102 + debian/install: make chrony-starter.sh available on install.
1103 + debian/docs, debian/README.container: provide documentation about the
1104 handling of this case.
1105 - d/postrm: re-establish systemd-timesyncd on removal (LP 1764357)
1106 - d/postrm: respect policy-rc.d when restoring systemd-timesyncd
1107 (LP 1771994)
1108 * Added Changes:
1109 - removed d/init to avoid weird interactions between sysV and systemd
1110 * Dropped Changes:
1111 - Notify chrony to update sources in response to systemd-networkd
1112 events (LP: 1718227)
1113 + d/links: link dispatcher script to networkd-dispatcher events routable
1114 and off
1115 + d/control: set Recommends to networkd-dispatcher
1116 [Those are in Debian, except that we agreed to have networkd-dispatcher
1117 to only be a Suggests]
1118
1119 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Tue, 14 May 2019 12:49:30 +0200
1120
640chrony (3.4-4) unstable; urgency=medium1121chrony (3.4-4) unstable; urgency=medium
6411122
642 * debian/patches/*:1123 * debian/patches/*:
@@ -713,6 +1194,48 @@ chrony (3.4-2) unstable; urgency=medium
7131194
714 -- Vincent Blut <vincent.debian@free.fr> Wed, 13 Feb 2019 17:08:17 +01001195 -- Vincent Blut <vincent.debian@free.fr> Wed, 13 Feb 2019 17:08:17 +0100
7151196
1197chrony (3.4-1ubuntu1) disco; urgency=medium
1198
1199 * Merge with Debian unstable (LP: #1802886). Remaining changes:
1200 - d/chrony.conf: use ubuntu ntp pool and server (LP 1744664)
1201 - Set -x as default if unable to set time (e.g. in containers) (LP: 1589780)
1202 Chrony is a single service which acts as both NTP client (i.e. syncing the
1203 local clock) and NTP server (i.e. providing NTP services to the network),
1204 and that is both desired and expected in the vast majority of cases.
1205 But in containers syncing the local clock is usually impossible, but this
1206 shall not break the providing of NTP services to the network.
1207 To some extent this makes chrony's default config more similar to 'ntpd',
1208 which complained in syslog but still provided NTP server service in those
1209 cases.
1210 + debian/chrony.service: allow the service to run without CAP_SYS_TIME
1211 + debian/control: add new dependency libcap2-bin for capsh (usually
1212 installed anyway, but make them explicit to be sure).
1213 + debian/chrony.default: new option SYNC_IN_CONTAINER to not fall back
1214 (Default off).
1215 + debian/chronyd-starter.sh: wrapper to handle special cases in containers
1216 and if CAP_SYS_TIME is missing. Effectively allows to run NTP server in
1217 containers on a default installation and avoid failing to sync time (or
1218 if allowed to sync, avoid multiple containers to fight over it by
1219 accident).
1220 + debian/install: make chronyd-starter.sh available on install.
1221 + debian/docs, debian/README.container: provide documentation about the
1222 handling of this case.
1223 - d/postrm: re-establish systemd-timesyncd on removal (LP: 1764357)
1224 - Notify chrony to update sources in response to systemd-networkd
1225 events (LP: 1718227)
1226 + d/links: link dispatcher script to networkd-dispatcher events routable
1227 and off
1228 + d/control: set Recommends to networkd-dispatcher
1229 * Dropped Changes (upstream):
1230 - d/p/lp-1718227-nm-dispatcher-for-networkd.patch
1231 - d/p/lp-1787366-fall-back-to-urandom.patch: avoid hangs when starting
1232 the service on newer kernels by falling back to urandom. (LP: 1787366)
1233 * Added Changes:
1234 - d/postrm: respect policy-rc.d when restoring systemd-timesyncd
1235 (LP: #1771994)
1236
1237 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Mon, 12 Nov 2018 11:39:08 +0100
1238
716chrony (3.4-1) unstable; urgency=medium1239chrony (3.4-1) unstable; urgency=medium
7171240
718 * Import upstream version 3.4:1241 * Import upstream version 3.4:
@@ -789,6 +1312,66 @@ chrony (3.3-3) unstable; urgency=medium
7891312
790 -- Vincent Blut <vincent.debian@free.fr> Sat, 18 Aug 2018 16:23:19 +02001313 -- Vincent Blut <vincent.debian@free.fr> Sat, 18 Aug 2018 16:23:19 +0200
7911314
1315chrony (3.3-2ubuntu2) cosmic; urgency=medium
1316
1317 * - d/p/lp-1787366-fall-back-to-urandom.patch: avoid hangs when starting
1318 the service on newer kernels by falling back to urandom.
1319 (LP: #1787366, Closes: #906276)
1320
1321 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Thu, 16 Aug 2018 11:48:38 +0200
1322
1323chrony (3.3-2ubuntu1) cosmic; urgency=medium
1324
1325 * Merge with Debian unstable (LP: #1771061). Remaining changes:
1326 - d/chrony.conf: use ubuntu ntp pool and server (LP 1744664)
1327 - Set -x as default if unable to set time (e.g. in containers) (LP: 1589780)
1328 Chrony is a single service which acts as both NTP client (i.e. syncing the
1329 local clock) and NTP server (i.e. providing NTP services to the network),
1330 and that is both desired and expected in the vast majority of cases.
1331 But in containers syncing the local clock is usually impossible, but this
1332 shall not break the providing of NTP services to the network.
1333 To some extent this makes chrony's default config more similar to 'ntpd',
1334 which complained in syslog but still provided NTP server service in those
1335 cases.
1336 - debian/chrony.service: allow the service to run without CAP_SYS_TIME
1337 - debian/control: add new dependency libcap2-bin for capsh (usually
1338 installed anyway, but make them explicit to be sure).
1339 - debian/chrony.default: new option SYNC_IN_CONTAINER to not fall back
1340 (Default off).
1341 - debian/chronyd-starter.sh: wrapper to handle special cases in containers
1342 and if CAP_SYS_TIME is missing. Effectively allows to run NTP server in
1343 containers on a default installation and avoid failing to sync time (or
1344 if allowed to sync, avoid multiple containers to fight over it by
1345 accident).
1346 - debian/install: make chronyd-starter.sh available on install.
1347 - debian/docs, debian/README.container: provide documentation about the
1348 handling of this case.
1349 - d/postrm: re-establish systemd-timesyncd on removal (LP: 1764357)
1350 - Notify chrony to update sources in response to systemd-networkd
1351 events (LP: 1718227)
1352 - d/links: link dispatcher script to networkd-dispatcher events routable
1353 and off
1354 - d/control: set Recommends to networkd-dispatcher
1355 - d/p/lp-1718227-nm-dispatcher-for-networkd.patch
1356 * Dropped changes
1357 - debian/usr.sbin.chronyd: ensure RTC/GPS usage isn't blocked by apparmor
1358 (LP: 1751241) (in Debian now)
1359 - debian/usr.sbin.chronyd: add cap net_admin for hwtimestamp (LP: 1761327)
1360 (in Debian now)
1361 - d/p/lp1589780-sys_linux-don-t-keep-CAP_SYS_TIME-with-x-option.patch:
1362 When dropping the root privileges, don't try to keep the CAP_SYS_TIME
1363 capability if the -x option was enabled. This allows chronyd to be
1364 started without the capability (e.g. in containers) and also drop the
1365 root privileges (This is upstream now).
1366 - d/p/lp-1718227-ignore-non-up-down-events-in-nm-dispatcher.patch (This is
1367 upstream now).
1368 - d/control: switch to nss instead of tomcrypt (Debian switched to nettle
1369 which is in main, so we can drop this)
1370 * Added changes
1371 - debian/README.container: fix typos
1372
1373 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Mon, 14 May 2018 09:06:01 +0200
1374
792chrony (3.3-2) unstable; urgency=medium1375chrony (3.3-2) unstable; urgency=medium
7931376
794 * debian/chrony.service:1377 * debian/chrony.service:
@@ -844,6 +1427,76 @@ chrony (3.2-5) unstable; urgency=medium
8441427
845 -- Vincent Blut <vincent.debian@free.fr> Wed, 28 Feb 2018 17:31:08 +01001428 -- Vincent Blut <vincent.debian@free.fr> Wed, 28 Feb 2018 17:31:08 +0100
8461429
1430chrony (3.2-4ubuntu4) bionic; urgency=medium
1431
1432 * d/postrm: re-establish systemd-timesyncd on removal (LP: #1764357)
1433 * Notify chrony to update sources in response to systemd-networkd
1434 events (LP: #1718227)
1435 - d/links: link dispatcher script to networkd-dispatcher events routable
1436 and off
1437 - d/control: set Recommends to networkd-dispatcher
1438 - d/p/lp-1718227-ignore-non-up-down-events-in-nm-dispatcher.patch
1439 - d/p/lp-1718227-nm-dispatcher-for-networkd.patch
1440
1441 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Mon, 16 Apr 2018 17:04:06 +0200
1442
1443chrony (3.2-4ubuntu3) bionic; urgency=medium
1444
1445 * debian/usr.sbin.chronyd: add cap net_admin for hwtimestamp (LP: #1761327)
1446
1447 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Thu, 05 Apr 2018 09:38:10 +0200
1448
1449chrony (3.2-4ubuntu2) bionic; urgency=medium
1450
1451 * Set -x as default if unable to set time (e.g. in containers) (LP: #1589780)
1452 Chrony is a single service which acts as both NTP client (i.e. syncing the
1453 local clock) and NTP server (i.e. providing NTP services to the network),
1454 and that is both desired and expected in the vast majority of cases.
1455 But in containers syncing the local clock is usually impossible, but this
1456 shall not break the providing of NTP services to the network.
1457 To some extent this makes chrony's default config more similar to 'ntpd',
1458 which complained in syslog but still provided NTP server service in those
1459 cases.
1460 - d/p/lp1589780-sys_linux-don-t-keep-CAP_SYS_TIME-with-x-option.patch:
1461 When dropping the root privileges, don't try to keep the CAP_SYS_TIME
1462 capability if the -x option was enabled. This allows chronyd to be
1463 started without the capability (e.g. in containers) and also drop the
1464 root privileges.
1465 - debian/chrony.service: allow the service to run without CAP_SYS_TIME
1466 - debian/control: add new dependency libcap2-bin for capsh (usually
1467 installed anyway, but make them explicit to be sure).
1468 - debian/chrony.default: new option SYNC_IN_CONTAINER to not fall back
1469 (Default off).
1470 - debian/chronyd-starter.sh: wrapper to handle special cases in containers
1471 and if CAP_SYS_TIME is missing. Effectively allows to run NTP server in
1472 containers on a default installation and avoid failing to sync time (or
1473 if allowed to sync, avoid multiple containers to fight over it by
1474 accident).
1475 - debian/install: make chronyd-starter.sh available on install.
1476 - debian/docs, debian/README.container: provide documentation about the
1477 handling of this case.
1478 * debian/chrony.conf: update default chrony.conf to not violate the policy
1479 of pool.ntp.org (to use no more than four of their servers) and to provide
1480 more ipv6 capable sources by default (LP: #1754358)
1481
1482 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Fri, 16 Mar 2018 12:25:44 +0100
1483
1484chrony (3.2-4ubuntu1) bionic; urgency=medium
1485
1486 * Merge with Debian unstable. Remaining changes:
1487 - d/control: switch to nss instead of tomcrypt (nss is in main)
1488 - d/chrony.conf: use ubuntu ntp pool and server (LP 1744664)
1489 * Dropped changes (in Debian)
1490 - d/chrony.default, d/chrony.service: support /etc/default/chrony
1491 DAEMON_OPTS in systemd environment (LP: 1746081)
1492 - d/chrony.service: properly start after networking (LP: 1746458)
1493 - d/usr.sbin.chronyd: allow to create /run/chrony on demand (LP: 1746444)
1494 * Added Changes:
1495 - debian/usr.sbin.chronyd: ensure RTC/GPS usage isn't blocked by apparmor
1496 (LP: #1751241, Closes: #891201)
1497
1498 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Mon, 26 Feb 2018 14:44:54 +0100
1499
847chrony (3.2-4) unstable; urgency=medium1500chrony (3.2-4) unstable; urgency=medium
8481501
849 * debian/changelog:1502 * debian/changelog:
@@ -910,6 +1563,27 @@ chrony (3.2-3) unstable; urgency=medium
9101563
911 -- Vincent Blut <vincent.debian@free.fr> Wed, 07 Feb 2018 21:27:09 +01001564 -- Vincent Blut <vincent.debian@free.fr> Wed, 07 Feb 2018 21:27:09 +0100
9121565
1566chrony (3.2-2ubuntu3) bionic; urgency=medium
1567
1568 * Revert the changes of (LP 1746458) as in the follow on discussion
1569 it became clear that we want it to start early (for example for an
1570 early offset from drift file). iIf needed chrony will later on pick
1571 up that servers are online via retries (augmented by hooks on network
1572 events).
1573
1574 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Thu, 08 Feb 2018 10:52:30 +0100
1575
1576chrony (3.2-2ubuntu2) bionic; urgency=medium
1577
1578 * d/control: use to nss instead of tomcrypt (in main) (LP: #1744072)
1579 * d/chrony.conf: use ubuntu ntp pool and server (LP: #1744664)
1580 * d/chrony.default, d/chrony.service: support /etc/default/chrony
1581 DAEMON_OPTS in systemd environment (LP: #1746081)
1582 * d/chrony.service: properly start after networking (LP: #1746458)
1583 * d/usr.sbin.chronyd: allow to create /run/chrony on demand (LP: #1746444)
1584
1585 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Fri, 19 Jan 2018 09:45:38 +0100
1586
913chrony (3.2-2) unstable; urgency=medium1587chrony (3.2-2) unstable; urgency=medium
9141588
915 * Initial AppArmor profile for chronyd. Thanks to Jamie1589 * Initial AppArmor profile for chronyd. Thanks to Jamie
diff --git a/debian/chrony.conf b/debian/chrony.conf
index b3a9510..793227a 100644
--- a/debian/chrony.conf
+++ b/debian/chrony.conf
@@ -4,8 +4,23 @@
4# Include configuration files found in /etc/chrony/conf.d.4# Include configuration files found in /etc/chrony/conf.d.
5confdir /etc/chrony/conf.d5confdir /etc/chrony/conf.d
66
7# Use Debian vendor zone.7# This will use (up to):
8pool 2.debian.pool.ntp.org iburst8# - 4 sources from ntp.ubuntu.com which some are ipv6 enabled
9# - 2 sources from 2.ubuntu.pool.ntp.org which is ipv6 enabled as well
10# - 1 source from [01].ubuntu.pool.ntp.org each (ipv4 only atm)
11# This means by default, up to 6 dual-stack and up to 2 additional IPv4-only
12# sources will be used.
13# At the same time it retains some protection against one of the entries being
14# down (compare to just using one of the lines). See (LP: #1754358) for the
15# discussion.
16#
17# About using servers from the NTP Pool Project in general see (LP: #104525).
18# Approved by Ubuntu Technical Board on 2011-02-08.
19# See http://www.pool.ntp.org/join.html for more information.
20pool ntp.ubuntu.com iburst maxsources 4
21pool 0.ubuntu.pool.ntp.org iburst maxsources 1
22pool 1.ubuntu.pool.ntp.org iburst maxsources 1
23pool 2.ubuntu.pool.ntp.org iburst maxsources 2
924
10# Use time sources from DHCP.25# Use time sources from DHCP.
11sourcedir /run/chrony-dhcp26sourcedir /run/chrony-dhcp
diff --git a/debian/chrony.default b/debian/chrony.default
index 028f63d..6e4e02a 100644
--- a/debian/chrony.default
+++ b/debian/chrony.default
@@ -4,3 +4,7 @@
44
5# Options to pass to chrony.5# Options to pass to chrony.
6DAEMON_OPTS="-F 1"6DAEMON_OPTS="-F 1"
7
8# Sync system clock in containers or without CAP_SYS_TIME (likely to fail)
9# See /usr/share/doc/chrony/README.container for details.
10SYNC_IN_CONTAINER="no"
diff --git a/debian/chrony.service b/debian/chrony.service
index 29e6382..d1d8cb9 100644
--- a/debian/chrony.service
+++ b/debian/chrony.service
@@ -5,13 +5,12 @@ Conflicts=openntpd.service ntp.service ntpsec.service
5Wants=time-sync.target5Wants=time-sync.target
6Before=time-sync.target6Before=time-sync.target
7After=network.target7After=network.target
8ConditionCapability=CAP_SYS_TIME
98
10[Service]9[Service]
11Type=forking10Type=forking
12PIDFile=/run/chrony/chronyd.pid11PIDFile=/run/chrony/chronyd.pid
13EnvironmentFile=-/etc/default/chrony12EnvironmentFile=-/etc/default/chrony
14ExecStart=/usr/sbin/chronyd $DAEMON_OPTS13ExecStart=/usr/lib/systemd/scripts/chronyd-starter.sh $DAEMON_OPTS
15PrivateTmp=yes14PrivateTmp=yes
16ProtectHome=yes15ProtectHome=yes
17ProtectSystem=full16ProtectSystem=full
diff --git a/debian/chronyd-starter.sh b/debian/chronyd-starter.sh
18new file mode 10075517new file mode 100755
index 0000000..2539ffe
--- /dev/null
+++ b/debian/chronyd-starter.sh
@@ -0,0 +1,68 @@
1#!/bin/sh
2set -ue
3
4CONF="/etc/default/chrony"
5DOC="/usr/share/doc/chrony/README.container"
6CAP="cap_sys_time"
7CMD="/usr/sbin/chronyd"
8# Take any args passed, use none if nothing was specified
9EFFECTIVE_DAEMON_OPTS=${@:-""}
10
11if [ -f "${CONF}" ]; then
12 . "${CONF}"
13else
14 echo "<4>Warning: ${CONF} is missing"
15fi
16# take from conffile if available, default to no otherwise
17EFFECTIVE_SYNC_IN_CONTAINER=${SYNC_IN_CONTAINER:-"no"}
18
19if [ ! -x "${CMD}" ]; then
20 echo "<3>Error: ${CMD} not executable"
21 # ugly, but works around https://github.com/systemd/systemd/issues/2913
22 sleep 0.1
23 exit 1
24fi
25
26# Check if -x is already set manually, don't process further if that is the case
27X_SET=0
28for arg in $@; do
29 if echo "$arg" | grep -q -e '^-[a-zA-Z0-9]*x'; then
30 X_SET=1
31 fi
32done
33
34if [ ${X_SET} -ne 1 ]; then
35 # Assume it is not in a container
36 IS_CONTAINER=0
37 if [ -x /usr/bin/systemd-detect-virt ]; then
38 if /usr/bin/systemd-detect-virt --quiet --container; then
39 IS_CONTAINER=1
40 fi
41 fi
42
43
44 # Assume it has the cap
45 HAS_CAP=1
46 CAPSH="/sbin/capsh"
47 if [ -x "${CAPSH}" ]; then
48 ${CAPSH} --has-p="${CAP}" || HAS_CAP=0
49 fi
50
51 if [ ${HAS_CAP} -eq 0 ]; then
52 echo "<4>Warning: Missing ${CAP}, syncing the system clock will fail"
53 fi
54 if [ ${IS_CONTAINER} -eq 1 ]; then
55 echo "<4>Warning: Running in a container, likely impossible and unintended to sync system clock"
56 fi
57
58 if [ ${HAS_CAP} -eq 0 -o ${IS_CONTAINER} -eq 1 ]; then
59 if [ "${EFFECTIVE_SYNC_IN_CONTAINER}" != "yes" ]; then
60 echo "<5>Adding -x as fallback disabling control of the system clock, see ${DOC} to override this behavior"
61 EFFECTIVE_DAEMON_OPTS="${EFFECTIVE_DAEMON_OPTS} -x"
62 else
63 echo "<5>Not falling back to disable control of the system clock, see ${DOC} to change this behavior"
64 fi
65 fi
66fi
67
68${CMD} ${EFFECTIVE_DAEMON_OPTS}
diff --git a/debian/control b/debian/control
index 19073e2..04e8b2b 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,8 @@
1Source: chrony1Source: chrony
2Section: net2Section: net
3Priority: optional3Priority: optional
4Maintainer: Vincent Blut <vincent.debian@free.fr>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Vincent Blut <vincent.debian@free.fr>
5Standards-Version: 4.5.16Standards-Version: 4.5.1
6Build-Depends: asciidoctor,7Build-Depends: asciidoctor,
7 bison,8 bison,
@@ -27,6 +28,7 @@ Architecture: linux-any
27Pre-Depends: ${misc:Pre-Depends}28Pre-Depends: ${misc:Pre-Depends}
28Depends: adduser,29Depends: adduser,
29 iproute2 [linux-any],30 iproute2 [linux-any],
31 libcap2-bin (>= 1:2.32-1),
30 tzdata,32 tzdata,
31 ucf,33 ucf,
32 ${misc:Depends},34 ${misc:Depends},
diff --git a/debian/docs b/debian/docs
index e12f653..3bfc9dc 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1,3 +1,4 @@
1FAQ1FAQ
2NEWS2NEWS
3README3README
4debian/README.container
diff --git a/debian/install b/debian/install
index e7dc12a..2647461 100644
--- a/debian/install
+++ b/debian/install
@@ -5,3 +5,4 @@ debian/conf.d etc/chrony
5debian/ntp-units.d/50-chrony.list usr/lib/systemd/ntp-units.d5debian/ntp-units.d/50-chrony.list usr/lib/systemd/ntp-units.d
6debian/sources.d etc/chrony6debian/sources.d etc/chrony
7debian/usr.sbin.chronyd etc/apparmor.d7debian/usr.sbin.chronyd etc/apparmor.d
8debian/chronyd-starter.sh usr/lib/systemd/scripts/
diff --git a/debian/patches/lp-1940252-rtc-avoid-printing-and-scanning-time_t.patch b/debian/patches/lp-1940252-rtc-avoid-printing-and-scanning-time_t.patch
8new file mode 1006449new file mode 100644
index 0000000..bbdf877
--- /dev/null
+++ b/debian/patches/lp-1940252-rtc-avoid-printing-and-scanning-time_t.patch
@@ -0,0 +1,56 @@
1From f27d719a4e2e983aea23058a29729a200b070dc6 Mon Sep 17 00:00:00 2001
2From: Miroslav Lichvar <mlichvar@redhat.com>
3Date: Thu, 5 Aug 2021 14:07:17 +0200
4Subject: [PATCH] rtc: avoid printing and scanning time_t
5
6With the latest glibc it's now possible to define _TIME_BITS=64 to get
764-bit time_t on 32-bit Linux systems. This breaks the %ld printf/scanf
8modifier used with the RTC drift timestamp. Process it as a double.
9
10Origin: upstream, https://git.tuxfamily.org/chrony/chrony.git/commit/?id=f27d719a4e
11Bug-Ubuntu: https://bugs.launchpad.net/bugs/1940252
12Last-Update: 2021-08-17
13
14---
15 rtc_linux.c | 8 +++++---
16 1 file changed, 5 insertions(+), 3 deletions(-)
17
18diff --git a/rtc_linux.c b/rtc_linux.c
19index 08c2a19f..c95c06e3 100644
20--- a/rtc_linux.c
21+++ b/rtc_linux.c
22@@ -434,6 +434,7 @@ setup_config(void)
23 static void
24 read_coefs_from_file(void)
25 {
26+ double ref_time;
27 FILE *in;
28
29 if (!tried_to_load_coefs) {
30@@ -444,11 +445,12 @@ read_coefs_from_file(void)
31
32 if (coefs_file_name &&
33 (in = UTI_OpenFile(NULL, coefs_file_name, NULL, 'r', 0))) {
34- if (fscanf(in, "%d%ld%lf%lf",
35+ if (fscanf(in, "%d%lf%lf%lf",
36 &valid_coefs_from_file,
37- &file_ref_time,
38+ &ref_time,
39 &file_ref_offset,
40 &file_rate_ppm) == 4) {
41+ file_ref_time = ref_time;
42 } else {
43 LOG(LOGS_WARN, "Could not read coefficients from %s", coefs_file_name);
44 }
45@@ -472,7 +474,7 @@ write_coefs_to_file(int valid,time_t ref_time,double offset,double rate)
46 return RTC_ST_BADFILE;
47
48 /* Gain rate is written out in ppm */
49- fprintf(out, "%1d %ld %.6f %.3f\n", valid, ref_time, offset, 1.0e6 * rate);
50+ fprintf(out, "%1d %.0f %.6f %.3f\n", valid, (double)ref_time, offset, 1.0e6 * rate);
51 fclose(out);
52
53 /* Rename the temporary file to the correct location */
54--
552.32.0
56
diff --git a/debian/patches/series b/debian/patches/series
index 8de067f..8531f7a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
1nm-dispatcher-dhcp_Move-server_dir-to-run.patch1nm-dispatcher-dhcp_Move-server_dir-to-run.patch
2allow-clone3-and-pread64-in-seccomp-filter.patch2allow-clone3-and-pread64-in-seccomp-filter.patch
3lp-1940252-rtc-avoid-printing-and-scanning-time_t.patch

Subscribers

People subscribed via source and target branches