[LTP] [PATCH 2/2] security/dirtyc0w: synchronize parent and child

Jan Stancek jstancek@redhat.com
Wed Oct 4 14:25:00 CEST 2017


----- Original Message -----
> Hi!
> > +static const char *const resource_files[] = {
> > +	TEST_APP,
> > +	NULL,
> > +};
> 
> I do not get why we need the test binary to be listed as resource file,
> the rest seems OK to me.

Since the test is using tmpdir, we either need exec*p* variant and
set PATH or copy binary to tmpdir. I took inspiration from creat07.

Copy approach is slightly more convenient when running test from git tree:
# ./dirtyc0w

But I can replace it with execvpe() - user would just need to setup PATH
before running it from git tree:
# env PATH=`pwd`:$PATH ./dirtyc0w

Regards,
Jan


More information about the ltp mailing list