[lxc-devel] [lxc/master] seccomp: add ifdefine for SECCOMP_FILTER_FLAG_NEW_LISTENER

brauner on Github lxc-bot at linuxcontainers.org
Tue Jun 11 22:10:59 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 407 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190611/300eb2fe/attachment.bin>
-------------- next part --------------
From fe02f63c0824b2ab104b31d978ccbf54e7578f9a Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Wed, 12 Jun 2019 00:02:49 +0200
Subject: [PATCH] seccomp: add ifdefine for SECCOMP_FILTER_FLAG_NEW_LISTENER

So that we can deal with older kernels.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 src/lxc/lxcseccomp.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lxc/lxcseccomp.h b/src/lxc/lxcseccomp.h
index 893b8887d9..121aa4e7a7 100644
--- a/src/lxc/lxcseccomp.h
+++ b/src/lxc/lxcseccomp.h
@@ -45,6 +45,10 @@ struct lxc_conf;
 struct lxc_epoll_descr;
 struct lxc_handler;
 
+#ifndef SECCOMP_FILTER_FLAG_NEW_LISTENER
+#define SECCOMP_FILTER_FLAG_NEW_LISTENER (1UL << 3)
+#endif
+
 #ifdef HAVE_SECCOMP
 
 


More information about the lxc-devel mailing list