From: Michael Olbrich <mol@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Bruno Thomsen <bruno.thomsen@gmail.com>
Subject: Re: [ptxdist] [APPLIED] chrony: add seccomp sandbox option
Date: Mon, 03 Aug 2020 08:30:22 +0200 [thread overview]
Message-ID: <E1k2TzK-0003Fl-0s@dude02.hi.pengutronix.de> (raw)
In-Reply-To: <20200731161420.6568-1-bruno.thomsen@gmail.com>
Thanks, applied as 96db4ea70594b4213770929907262de503c32725.
Michael
[sent from post-receive hook]
On Mon, 03 Aug 2020 08:30:22 +0200, Bruno Thomsen <bruno.thomsen@gmail.com> wrote:
> This adds a little extra security by using seccomp.
>
> Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
> Message-Id: <20200731161420.6568-1-bruno.thomsen@gmail.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/rules/chrony.in b/rules/chrony.in
> index 2f906d2cec4a..f50b864429b0 100644
> --- a/rules/chrony.in
> +++ b/rules/chrony.in
> @@ -6,6 +6,7 @@ menuconfig CHRONY
> prompt "chrony "
> select LIBC_M
> select LIBCAP
> + select LIBSECCOMP if CHRONY_SECCOMP
> select NETTLE if CHRONY_USE_NETTLE
> help
> This will install the Chrony NTPD Daemon (chronyd)
> @@ -29,6 +30,13 @@ config CHRONY_USE_NETTLE
> Use nettle crypto library for stronger keys than MD5 in
> NTP authentication.
>
> +config CHRONY_SECCOMP
> + bool
> + default y
> + prompt "Enable seccomp sandboxing"
> + help
> + Enables seccomp sandboxing to reduce the attack surface.
> +
> config CHRONY_ADVANCED_COMMAND
> bool
> prompt "Enable advanced monitoring command"
> diff --git a/rules/chrony.make b/rules/chrony.make
> index 4d6f58f3ba1e..f5e40dfb8d12 100644
> --- a/rules/chrony.make
> +++ b/rules/chrony.make
> @@ -55,7 +55,8 @@ CHRONY_CONF_OPT := \
> --disable-pps \
> $(call ptx/ifdef, PTXCONF_GLOBAL_IPV6,,--disable-ipv6) \
> --with-user=chrony \
> - --without-seccomp
> + $(call ptx/ifdef, PTXCONF_CHRONY_SECCOMP,--enable-scfilter,) \
> + $(call ptx/ifdef, PTXCONF_CHRONY_SECCOMP,,--without-seccomp)
>
> # ----------------------------------------------------------------------------
> # Install
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
prev parent reply other threads:[~2020-08-03 6:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-31 16:14 [ptxdist] [PATCH] " Bruno Thomsen
2020-08-03 6:30 ` Michael Olbrich [this message]
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=E1k2TzK-0003Fl-0s@dude02.hi.pengutronix.de \
--to=mol@pengutronix.de \
--cc=bruno.thomsen@gmail.com \
--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