seccomp: add ifdefine for SECCOMP_FILTER_FLAG_NEW_LISTENER

So that we can deal with older kernels.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2019-06-12 00:02:49 +02:00
parent 2e5bcac329
commit fe02f63c08
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -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