[lxc-devel] [lxc/master] seccomp: check libseccomp version for s390x
brauner on Github
lxc-bot at linuxcontainers.org
Thu Oct 20 17:26:22 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 443 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20161020/49c13b94/attachment.bin>
-------------- next part --------------
From 5ef2ebe212ac3bcd937dde4b9f5629bbb3f847e6 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at canonical.com>
Date: Thu, 20 Oct 2016 19:23:14 +0200
Subject: [PATCH] seccomp: check libseccomp version for s390x
If libseccomp version is < 2.3 we do not have appropriate s390x support.
Signed-off-by: Christian Brauner <christian.brauner at canonical.com>
---
src/lxc/seccomp.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/lxc/seccomp.c b/src/lxc/seccomp.c
index ccffa9f..fc8ec0e 100644
--- a/src/lxc/seccomp.c
+++ b/src/lxc/seccomp.c
@@ -33,6 +33,12 @@
#include "log.h"
#include "lxcseccomp.h"
+#if SCMP_VER_MAJOR < 2 || (SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR < 3)
+#ifdef SCMP_ARCH_S390X
+#undef SCMP_ARCH_S390X
+#endif
+#endif
+
lxc_log_define(lxc_seccomp, lxc);
static int parse_config_v1(FILE *f, struct lxc_conf *conf)
More information about the lxc-devel
mailing list