[Buildroot] [git commit] chrony: add optional seccomp support

Peter Korsgaard peter at korsgaard.com
Wed Sep 20 17:31:17 UTC 2017


commit: https://git.buildroot.net/buildroot/commit/?id=883eb058afeaa345886d0bb617f5134ca206cd93
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

seccomp support has been available since chrony-2.2

Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/chrony/chrony.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/chrony/chrony.mk b/package/chrony/chrony.mk
index 3b10c8c..e78d4b4 100644
--- a/package/chrony/chrony.mk
+++ b/package/chrony/chrony.mk
@@ -13,7 +13,6 @@ CHRONY_CONF_OPTS = \
 	--host-system=Linux \
 	--host-machine=$(BR2_ARCH) \
 	--prefix=/usr \
-	--without-seccomp \
 	--without-tomcrypt
 
 ifeq ($(BR2_PACKAGE_LIBCAP),y)
@@ -28,6 +27,13 @@ else
 CHRONY_CONF_OPTS += --without-nss
 endif
 
+ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
+CHRONY_CONF_OPTS += --enable-scfilter
+CHRONY_DEPENDENCIES += libseccomp
+else
+CHRONY_CONF_OPTS += --without-seccomp
+endif
+
 ifeq ($(BR2_PACKAGE_READLINE),y)
 CHRONY_DEPENDENCIES += readline
 else


More information about the buildroot mailing list