[LTP] [RFC PATCH 1/6] android: cve: Disable building cve-2017-5669

Cyril Hrubis chrubis@suse.cz
Wed Sep 6 15:17:12 CEST 2017


Hi!
> > shmat() is not available on Android/Binder
> > 
> > Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
> > ---
> >  testcases/cve/Makefile | 4 ++++
> >  1 file changed, 4 insertions(+)
> > 
> > diff --git a/testcases/cve/Makefile b/testcases/cve/Makefile
> > index 04abc1f9c..5119c67cf 100644
> > --- a/testcases/cve/Makefile
> > +++ b/testcases/cve/Makefile
> > @@ -28,4 +28,8 @@ cve-2014-0196:  LDLIBS += -lrt -lutil
> >  cve-2017-2671:	CFLAGS += -pthread
> >  cve-2017-2671:	LDLIBS += -lrt
> >  
> > +ifeq ($(ANDROID),1)
> > +FILTER_OUT_MAKE_TARGETS	+= cve-2017-5669
> > +endif
> > +
> >  include $(top_srcdir)/include/mk/generic_leaf_target.mk
> 
> Do you have pointers to how you are build + testing with this? There seem to
> be some duplication of effort that I would like to avoid and make sure there
> is only 1 way in which tests like this are disabled out of build.

There was some initiall android support done by Steven Jackson, just
grep the git log for his name.

Basically what he did is to add a similar system we had for uClinux. You
are supposed to define shell variable ANDROID=1 when building for
android and the build system uses that to skip certain directories/files
from build.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list