Skip to contentSkip to conversation

chrony: add optional seccomp support

PATCH New Peter Korsgaard 1 participant 2 messages Sep 15, 2017 – Sep 20, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 chrony: add optional seccomp support

seccomp support has been available since chrony-2.2

---
 package/chrony/chrony.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/chrony/chrony.mk +7 -1
index 3b10c8cbff..e78d4b4857 100644
@@ -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
Signature · 1 line
2.11.0