From: Bruno Thomsen <bruno.thomsen@gmail.com>
To: ptxdist@pengutronix.de
Cc: bruno.thomsen@gmail.com, bth@kamstrup.com, m.ciocan@ppc-ag.de
Subject: [ptxdist] [PATCH] chrony: fix runtime with busybox init
Date: Sat, 19 Jun 2021 17:26:07 +0200 [thread overview]
Message-ID: <20210619152607.858107-1-bruno.thomsen@gmail.com> (raw)
Run as root if busybox init is used (INITMETHOD_BBINIT) so
runtime directory is read and writable. When running under
systemd (INITMETHOD_SYSTEMD) use chrony user.
A busybox init system typically ends up with a turtle shell
security architecture where systemd is used when defense in
depth is needed.
Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
---
rules/chrony.make | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rules/chrony.make b/rules/chrony.make
index 4435b8e97..cbdf9314b 100644
--- a/rules/chrony.make
+++ b/rules/chrony.make
@@ -54,7 +54,7 @@ CHRONY_CONF_OPT := \
--disable-phc \
$(call ptx/ifdef, PTXCONF_CHRONY_PPS_REFCLK,,--disable-pps) \
$(call ptx/ifdef, PTXCONF_GLOBAL_IPV6,,--disable-ipv6) \
- --with-user=chrony \
+ --with-user=$(call ptx/ifdef, PTXCONF_INITMETHOD_SYSTEMD,chrony,root) \
$(call ptx/ifdef, PTXCONF_CHRONY_SECCOMP,--enable-scfilter,) \
$(call ptx/ifdef, PTXCONF_CHRONY_SECCOMP,,--without-seccomp)
base-commit: e1f0f2abd3116fdcb5e3e3211321aef801e959ff
--
2.31.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
next reply other threads:[~2021-06-19 15:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-19 15:26 Bruno Thomsen [this message]
2021-06-29 5:09 ` [ptxdist] [APPLIED] " Michael Olbrich
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=20210619152607.858107-1-bruno.thomsen@gmail.com \
--to=bruno.thomsen@gmail.com \
--cc=bth@kamstrup.com \
--cc=m.ciocan@ppc-ag.de \
--cc=ptxdist@pengutronix.de \
/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