From: Jia Zhang Date: Thu, 24 Jan 2019 15:49:34 +0800 Subject: [LTP] [PATCH v3 5/6] ima: Rename the folder name for policy files to datafiles In-Reply-To: <20190124073856.GA12189@dell5510> References: <1547607461-11233-1-git-send-email-zhang.jia@linux.alibaba.com> <1547607461-11233-6-git-send-email-zhang.jia@linux.alibaba.com> <20190123170409.GA11731@dell5510> <49244744-3546-c477-f443-a70ced4a4ed4@linux.alibaba.com> <20190124073856.GA12189@dell5510> Message-ID: <201c075e-ed4a-cf32-c590-ce42170e12db@linux.alibaba.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: ltp@lists.linux.it 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 >