[LTP] [PATCH v3 5/6] ima: Rename the folder name for policy files to datafiles
Petr Vorel
pvorel@suse.cz
Thu Jan 24 08:38:56 CET 2019
Hi Jia,
> > I wasn't sure about this one as make install isn't that hard to do even during
> > debugging and policy is more descriptive. But other tests use datafiles as well,
> > therefore taken as well.
> Actually, this patch resolves the issue if we just follow this step to
> run IMA-only test:
> $ git clone https://github.com/linux-test-project/ltp.git
> $ cd ltp
> $ export LTP_ROOT="$PWD"
> $ make autotools
> $ ./configure
> $ cd testcases/lib
> $ make
> $ cd ../kernel/security/integrity/ima
> $ make
> $ sudo PATH=$LTP_ROOT/testcases/lib:tests:$PATH ./tests/ima_policy.sh
> A full LTP installation doesn't have this issue.
Just a side note: there is only one LTP installation: make install :).
Your example is compilation and running test *without* installation.
The fact we require installation suggest runltp (still not replaced LTP runner):
$ ./runltp
FATAL: LTP not installed correctly
INFO: Follow directions in INSTALL!
I usually do installation, also because I test patches on various VMs.
Kind regards,
Petr
More information about the ltp
mailing list