[LTP] [PATCH v3 5/6] ima: Rename the folder name for policy files to datafiles

Jia Zhang
2019-01-24T07:49:34Z

On 2019/1/24 下午3:38, Petr Vorel wrote:
> 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.

Yes. Actually I already switch to always do a full installation :)

Jia

>
> Kind regards,
> Petr
>