From fe02f63c0824b2ab104b31d978ccbf54e7578f9a Mon Sep 17 00:00:00 2001 From: Christian Brauner 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 --- src/lxc/lxcseccomp.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lxc/lxcseccomp.h b/src/lxc/lxcseccomp.h index 893b8887d..121aa4e7a 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 -- 2.47.2