[lxc-devel] [lxd/master] lxd/include: Fix definition of SECCOMP_USER_NOTIF_FLAG_CONTINUE

stgraber on Github lxc-bot at linuxcontainers.org
Fri Oct 25 19:29:54 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20191025/64ca33c9/attachment.bin>
-------------- next part --------------
From 7318abe3c3d4cd68ab0d0327cf7fa8b5b6272c3e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Fri, 25 Oct 2019 15:29:13 -0400
Subject: [PATCH] lxd/include: Fix definition of
 SECCOMP_USER_NOTIF_FLAG_CONTINUE
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxd/include/lxd_seccomp.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lxd/include/lxd_seccomp.h b/lxd/include/lxd_seccomp.h
index 9756cca255..665abb96be 100644
--- a/lxd/include/lxd_seccomp.h
+++ b/lxd/include/lxd_seccomp.h
@@ -20,6 +20,9 @@
 #define SECCOMP_GET_NOTIF_SIZES 3
 #endif
 
+// Workaround for kernels with bad definition (using BIT)
+#undef SECCOMP_USER_NOTIF_FLAG_CONTINUE
+
 #ifndef SECCOMP_USER_NOTIF_FLAG_CONTINUE
 #define SECCOMP_USER_NOTIF_FLAG_CONTINUE 0x00000001
 #endif


More information about the lxc-devel mailing list