Re: [PATCH v4a 1/2] selftests/kexec: make tests independent of IMA being enabled

From: Mimi Zohar
Date: Tue Mar 26 2019 - 09:57:11 EST


On Tue, 2019-03-26 at 15:49 +0800, Dave Young wrote:
> On 03/25/19 at 04:37pm, Mimi Zohar wrote:
> > On Mon, 2019-03-25 at 16:09 +0800, Dave Young wrote:
> > > Hi Mimi
> > > On 03/22/19 at 03:35pm, Mimi Zohar wrote:
> > > > Verify IMA is enabled before failing tests or emitting irrelevant
> > > > messages. Also, don't skip the test if signatures are not required.
> > > >
> > > > Suggested-by: Dave Young <dyoung@xxxxxxxxxx>
> > > > Signed-off-by: Mimi Zohar <zohar@xxxxxxxxxxxxx>
> > > > ---
> > > > Dave, if this patch resolves the outstanding issues, I can fold these
> > > > changes into the original patches. (Reminder, these patches will need to
> > > > be updated to support the "lockdown" patch set.)
> > >
> > > They looks good to me, thanks for the update
> >
> > I've folded the kexec_file_load changes into the kexec_file_load test.
> > ÂThe remaining kexec_load change is left as a separate patch, since it
> > is dependent on the ikconfig change.
> >
> > > Feel free to add my reviewed-by, I did some tests although not cover all
> > > ima cases.
> >
> > Thanks! ÂIs this meant as a general "reviewed-by" for all of the
> > patches or just this specific one?
>
> Thank you for taking this as a separate kexec tests, I think it can
> be used for these delta fixes

Ok, I just re-posted the patches, folding part of this patch into the
kexec_file_load test. ÂI've added your Reviewed-by on the remaining
patch.

>
> I read all the patches and reviewed the kexec stuff, but I do not
> understand all the IMA logic yet although I did some simple ima
> tests.

I understand. ÂThere are many different aspects to the integrity
subsystem. ÂI'm happy to answer any questions you have.

Mimi