On Mon, Apr 04, 2016 at 09:29:15AM +0100, James Hogan wrote: > The cacheflush system call (found on MIPS and ARM) has been included in > the libseccomp header since 2.2.0, so include include it back to that > version. Previously it was only enabled since 2.2.3 since that is when > it was enabled properly for ARM. > > This will allow seccomp support to be enabled for MIPS back to > libseccomp 2.2.0. > > Signed-off-by: James Hogan <james.ho...@imgtec.com> > Cc: Eduardo Otubo <eduardo.ot...@profitbricks.com> > Cc: Aurelien Jarno <aurel...@aurel32.net> > --- > qemu-seccomp.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-)
Reviewed-By: Andrew Jones <drjo...@redhat.com> > > diff --git a/qemu-seccomp.c b/qemu-seccomp.c > index 2866e3c2a660..9425dac17155 100644 > --- a/qemu-seccomp.c > +++ b/qemu-seccomp.c > @@ -18,9 +18,7 @@ > > #if SCMP_VER_MAJOR >= 3 > #define HAVE_CACHEFLUSH > -#elif SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR >= 3 > - #define HAVE_CACHEFLUSH > -#elif SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR == 2 && SCMP_VER_MICRO >= 3 > +#elif SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR >= 2 > #define HAVE_CACHEFLUSH > #endif > > -- > 2.4.10 > >