public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/chrony/
Date: Mon,  8 Feb 2021 14:54:14 +0000 (UTC)	[thread overview]
Message-ID: <1612796042.9a5c393d884d5e20f95097feca7f98a3499639e6.sam@gentoo> (raw)

commit:     9a5c393d884d5e20f95097feca7f98a3499639e6
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Feb  8 14:10:07 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Feb  8 14:54:02 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a5c393d

net-misc/chrony: add note re changes on USE=seccomp install

Users must enable seccomp manually for now at runtime.

Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/chrony/chrony-4.0-r1.ebuild | 15 ++++++++++++++-
 net-misc/chrony/chrony-9999.ebuild   | 15 ++++++++++++++-
 2 files changed, 28 insertions(+), 2 deletions(-)

diff --git a/net-misc/chrony/chrony-4.0-r1.ebuild b/net-misc/chrony/chrony-4.0-r1.ebuild
index e0333b6483f..d663e9cb680 100644
--- a/net-misc/chrony/chrony-4.0-r1.ebuild
+++ b/net-misc/chrony/chrony-4.0-r1.ebuild
@@ -173,10 +173,16 @@ src_install() {
 
 pkg_preinst() {
 	HAD_CAPS=false
+	HAD_SECCOMP=false
 
-	if has_version 'net-misc/chrony[caps]'; then
+	if has_version 'net-misc/chrony[caps]' ; then
 		HAD_CAPS=true
 	fi
+
+	if has_version 'net-misc/chrony[seccomp]' ; then
+		HAD_SECCOMP=true
+	fi
+
 }
 
 pkg_postinst() {
@@ -187,4 +193,11 @@ pkg_postinst() {
 		ewarn "e.g. chown -R ntp:ntp ${EROOT}/var/{lib,log}/chrony"
 		ewarn "This is necessary for chrony to drop privileges"
 	fi
+
+	if [[ ! ${HAD_SECCOMP} ]] && use seccomp ; then
+		elog "To enable seccomp in enforcing mode, please modify:"
+		elog "- /etc/conf.d/chronyd for OpenRC"
+		elog "- systemctl edit chronyd for systemd"
+		elog "to use -F 1 or -F -1 instead of -F 0 (see man chronyd)"
+	fi
 }

diff --git a/net-misc/chrony/chrony-9999.ebuild b/net-misc/chrony/chrony-9999.ebuild
index e0333b6483f..d663e9cb680 100644
--- a/net-misc/chrony/chrony-9999.ebuild
+++ b/net-misc/chrony/chrony-9999.ebuild
@@ -173,10 +173,16 @@ src_install() {
 
 pkg_preinst() {
 	HAD_CAPS=false
+	HAD_SECCOMP=false
 
-	if has_version 'net-misc/chrony[caps]'; then
+	if has_version 'net-misc/chrony[caps]' ; then
 		HAD_CAPS=true
 	fi
+
+	if has_version 'net-misc/chrony[seccomp]' ; then
+		HAD_SECCOMP=true
+	fi
+
 }
 
 pkg_postinst() {
@@ -187,4 +193,11 @@ pkg_postinst() {
 		ewarn "e.g. chown -R ntp:ntp ${EROOT}/var/{lib,log}/chrony"
 		ewarn "This is necessary for chrony to drop privileges"
 	fi
+
+	if [[ ! ${HAD_SECCOMP} ]] && use seccomp ; then
+		elog "To enable seccomp in enforcing mode, please modify:"
+		elog "- /etc/conf.d/chronyd for OpenRC"
+		elog "- systemctl edit chronyd for systemd"
+		elog "to use -F 1 or -F -1 instead of -F 0 (see man chronyd)"
+	fi
 }


             reply	other threads:[~2021-02-08 14:54 UTC|newest]

Thread overview: 265+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-08 14:54 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-14  0:36 [gentoo-commits] repo/gentoo:master commit in: net-misc/chrony/ Sam James
2024-11-13 11:10 Arthur Zamarin
2024-11-11 15:22 Sam James
2024-11-11 14:47 Sam James
2024-11-11 14:47 Sam James
2024-10-29  2:45 Sam James
2024-10-13 11:06 Sam James
2024-10-09  7:15 Arthur Zamarin
2024-10-08 21:50 Jakov Smolić
2024-10-08 16:38 Sam James
2024-10-08  8:04 Sam James
2024-10-05 12:58 Arthur Zamarin
2024-10-05 11:12 Sam James
2024-09-04 10:38 Sam James
2024-08-25 12:04 Andreas K. Hüttel
2024-05-16  5:56 WANG Xuerui
2024-05-16  5:56 WANG Xuerui
2024-05-09 23:09 Sam James
2024-03-04 10:49 Sam James
2024-01-25  1:05 Ionen Wolkens
2024-01-07 12:42 Arthur Zamarin
2024-01-07 12:42 Arthur Zamarin
2024-01-07 12:42 Arthur Zamarin
2024-01-07  9:31 Sam James
2024-01-07  9:31 Sam James
2024-01-07  9:31 Sam James
2024-01-07  9:31 Sam James
2023-12-06  9:58 Sam James
2023-09-24 14:25 Arthur Zamarin
2023-09-22 20:25 Sam James
2023-09-22 20:25 Sam James
2023-09-22 20:25 Sam James
2023-09-22 20:25 Sam James
2023-09-22 20:25 Sam James
2023-09-22 18:59 Arthur Zamarin
2023-09-22 18:58 Arthur Zamarin
2023-08-10  3:22 Sam James
2023-08-06  1:28 Sam James
2023-08-06  1:28 Sam James
2023-08-06  1:28 Sam James
2023-06-12  6:01 Arthur Zamarin
2023-04-23 21:59 Sam James
2023-04-23 19:46 Sam James
2023-03-13 19:16 Arthur Zamarin
2023-03-04  9:59 Arthur Zamarin
2023-03-04  8:22 Arthur Zamarin
2023-03-04  6:34 Arthur Zamarin
2023-03-04  6:17 Arthur Zamarin
2023-03-04  6:14 Arthur Zamarin
2023-03-04  5:41 Arthur Zamarin
2023-01-18 22:55 Sam James
2023-01-18 22:55 Sam James
2023-01-18 22:52 Sam James
2022-12-11 18:25 Arthur Zamarin
2022-12-11 18:24 Arthur Zamarin
2022-12-10  8:50 Arthur Zamarin
2022-12-10  4:52 Sam James
2022-12-10  4:52 Sam James
2022-12-10  4:50 Sam James
2022-12-10  4:50 Sam James
2022-12-10  4:48 Sam James
2022-12-10  4:48 Sam James
2022-11-14  3:50 Sam James
2022-11-14  3:50 Sam James
2022-11-14  3:50 Sam James
2022-11-14  3:50 Sam James
2022-10-31  0:44 Sam James
2022-09-01 21:49 Sam James
2022-08-11  9:49 Sam James
2022-04-16  4:47 Arthur Zamarin
2022-03-26 18:38 Arthur Zamarin
2022-03-23  9:58 Jakov Smolić
2022-03-22 11:26 Agostino Sarubbo
2022-03-22 11:26 Agostino Sarubbo
2022-03-22 11:25 Agostino Sarubbo
2022-03-22  9:27 Jakov Smolić
2022-03-22  9:27 Jakov Smolić
2022-01-24 23:00 Sam James
2022-01-21 12:42 Sam James
2022-01-20 18:34 Arthur Zamarin
2022-01-20 16:48 Arthur Zamarin
2022-01-20 16:42 Sam James
2022-01-20 14:55 Sam James
2022-01-20 13:08 Jakov Smolić
2022-01-20 13:08 Jakov Smolić
2022-01-19 22:49 James Le Cuirot
2021-08-24  0:57 Sam James
2021-07-31 13:40 Michał Górny
2021-06-14  9:16 Agostino Sarubbo
2021-06-13 22:38 Sam James
2021-06-13 22:38 Sam James
2021-06-13 22:38 Sam James
2021-06-13 22:38 Sam James
2021-06-13 22:38 Sam James
2021-06-13 22:38 Sam James
2021-05-24  3:12 Sam James
2021-05-14 11:31 Sam James
2021-05-13 20:33 Sam James
2021-05-13 20:33 Sam James
2021-05-13 16:15 Sam James
2021-04-30 23:27 Sam James
2021-04-23  9:10 David Seifert
2021-04-22 22:32 Sam James
2021-04-22 22:25 Sam James
2021-04-22 22:25 Sam James
2021-04-22 22:25 Sam James
2021-04-16  5:36 Sam James
2021-04-16  4:47 Sam James
2021-04-16  4:47 Sam James
2021-03-28  0:20 Joshua Kinard
2021-03-12 15:28 Sam James
2021-03-12 15:25 Sam James
2021-03-11 13:33 Sam James
2021-03-11 13:33 Sam James
2021-03-11 13:33 Sam James
2021-03-11 13:33 Sam James
2021-03-11 13:33 Sam James
2021-02-08 15:06 Sam James
2021-02-08 14:54 Sam James
2021-02-08 14:54 Sam James
2021-02-08 14:54 Sam James
2021-02-08 14:54 Sam James
2021-02-08 14:54 Sam James
2021-02-08 14:54 Sam James
2021-02-08 14:54 Sam James
2021-02-08 14:54 Sam James
2021-02-08 14:54 Sam James
2021-02-08 14:54 Sam James
2021-02-08 14:54 Sam James
2021-02-05 10:37 Sam James
2020-11-25 22:38 Sergei Trofimovich
2020-11-25  7:44 Agostino Sarubbo
2020-11-24 14:39 Sam James
2020-11-24 12:57 Agostino Sarubbo
2020-11-24 12:56 Agostino Sarubbo
2020-11-24 12:55 Agostino Sarubbo
2020-11-24 12:54 Agostino Sarubbo
2020-11-24  3:01 Sam James
2020-11-24  2:47 Sam James
2020-11-24  2:46 Sam James
2020-11-24  2:22 Sam James
2020-11-04 13:13 Andreas K. Hüttel
2020-11-04  0:44 Sam James
2020-11-04  0:44 Sam James
2020-10-08  8:16 Jeroen Roovers
2020-10-08  8:16 Jeroen Roovers
2020-10-08  8:16 Jeroen Roovers
2020-09-19  7:17 Jeroen Roovers
2020-09-02 15:51 Jeroen Roovers
2020-08-31 10:04 Jeroen Roovers
2020-08-31  9:57 Jeroen Roovers
2020-08-31  9:43 Jeroen Roovers
2020-08-31  9:28 Jeroen Roovers
2020-08-30 23:32 Sam James
2020-08-30 23:03 Sam James
2020-08-30 23:01 Sam James
2020-08-30 22:51 Sam James
2020-08-30 20:55 Sam James
2020-08-30 17:14 Thomas Deutschmann
2020-08-27 12:15 Jeroen Roovers
2020-08-27 10:04 Jeroen Roovers
2020-08-27 10:04 Jeroen Roovers
2020-08-27  7:05 Jeroen Roovers
2020-08-27  7:05 Jeroen Roovers
2020-08-27  7:05 Jeroen Roovers
2020-08-20  7:31 Jeroen Roovers
2020-05-04 17:36 Thomas Deutschmann
2020-05-02 10:43 Thomas Deutschmann
2020-05-02 10:43 Thomas Deutschmann
2020-05-02 10:43 Thomas Deutschmann
2020-05-02 10:43 Thomas Deutschmann
2020-05-02 10:43 Thomas Deutschmann
2020-05-01 21:27 Jeroen Roovers
2020-04-21  8:04 Jeroen Roovers
2020-04-14 13:11 Thomas Deutschmann
2020-04-11 12:34 Mart Raudsepp
2020-03-20  9:41 Jeroen Roovers
2019-12-24 20:02 Mikle Kolyada
2019-11-22  9:52 Mikle Kolyada
2019-11-13  7:39 Agostino Sarubbo
2019-11-12 13:36 Agostino Sarubbo
2019-11-04 20:06 Sergei Trofimovich
2019-11-01  8:57 Jeroen Roovers
2019-09-27 15:46 Mike Gilbert
2019-09-26  7:36 Jeroen Roovers
2019-07-26  4:55 Jeroen Roovers
2019-05-02 16:26 Jeroen Roovers
2018-09-19 18:02 Jeroen Roovers
2018-09-19 18:02 Jeroen Roovers
2018-09-05 14:16 Jeroen Roovers
2018-09-01 13:27 Jeroen Roovers
2018-09-01 13:27 Jeroen Roovers
2018-09-01 13:27 Jeroen Roovers
2018-04-05 20:48 Jeroen Roovers
2018-03-31 10:11 Tobias Klausmann
2018-03-20  8:11 Jeroen Roovers
2018-03-18 13:04 Mikle Kolyada
2017-12-01 22:57 Sergei Trofimovich
2017-11-09 22:54 Sergei Trofimovich
2017-11-09 22:54 Sergei Trofimovich
2017-11-08  7:01 Jeroen Roovers
2017-10-01  0:56 Thomas Deutschmann
2017-10-01  0:56 Thomas Deutschmann
2017-09-15 10:02 Jeroen Roovers
2017-09-15 10:02 Jeroen Roovers
2017-09-02 12:22 Jeroen Roovers
2017-09-02 12:22 Jeroen Roovers
2017-07-29  9:55 Jeroen Roovers
2017-07-29  9:55 Jeroen Roovers
2017-06-30  8:45 Jeroen Roovers
2017-06-05 18:43 Jeroen Roovers
2017-04-18 19:31 Michael Weber
2017-04-11  6:43 Jeroen Roovers
2017-02-27 17:01 Michael Weber
2017-02-27 17:01 Michael Weber
2017-02-14 16:49 Michael Weber
2017-02-02  7:27 Jeroen Roovers
2017-01-22 10:25 Tobias Klausmann
2017-01-17 16:54 Jeroen Roovers
2017-01-17 16:54 Jeroen Roovers
2017-01-09 22:25 Jeroen Roovers
2017-01-09 22:25 Jeroen Roovers
2017-01-09 22:19 Jeroen Roovers
2017-01-09 22:19 Jeroen Roovers
2016-12-29 10:32 Jeroen Roovers
2016-12-17  7:21 Jeroen Roovers
2016-12-15 11:52 Jeroen Roovers
2016-11-24 17:45 Tobias Klausmann
2016-11-21 20:19 Jeroen Roovers
2016-11-21 20:15 Jeroen Roovers
2016-11-21 19:10 Jeroen Roovers
2016-11-06  9:39 Jeroen Roovers
2016-11-06  9:32 Jeroen Roovers
2016-11-06  9:32 Jeroen Roovers
2016-11-06  9:32 Jeroen Roovers
2016-09-23 17:40 Tobias Klausmann
2016-08-12 19:23 Markus Meier
2016-08-08 11:09 Jeroen Roovers
2016-06-16  8:51 Jeroen Roovers
2016-06-14 12:07 Tobias Klausmann
2016-05-19  9:26 Jeroen Roovers
2016-05-18 10:23 Jeroen Roovers
2016-05-18  9:27 Jeroen Roovers
2016-04-07  7:37 Jeroen Roovers
2016-03-26 16:39 Agostino Sarubbo
2016-03-24  5:47 Jeroen Roovers
2016-03-23 16:03 Mike Frysinger
2016-03-19 11:35 Agostino Sarubbo
2016-02-19  5:33 Jeroen Roovers
2016-02-10 15:59 Jeroen Roovers
2016-01-24 17:35 Agostino Sarubbo
2016-01-22  8:59 Jeroen Roovers
2016-01-22  4:46 Jeroen Roovers
2016-01-22  4:44 Jeroen Roovers
2015-11-18  8:57 Agostino Sarubbo
2015-11-18  8:21 Jeroen Roovers
2015-11-18  5:09 Jeroen Roovers
2015-11-17  9:59 Agostino Sarubbo
2015-10-23  5:57 Jeroen Roovers
2015-10-21  4:30 Jeroen Roovers
2015-10-13  4:53 Jeroen Roovers
2015-10-12 12:30 Jeroen Roovers
2015-10-04  6:55 Jeroen Roovers
2015-10-04  6:01 Jeroen Roovers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1612796042.9a5c393d884d5e20f95097feca7f98a3499639e6.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox