On Tue, 2020-07-28 at 02:13 +0200, Petr Vorel wrote: > From: Lachlan Sneff <t-josne@xxxxxxxxxxxxxxxxxxx> > > IMA policy can be set to measure the command line passed in the kexec > system call. Add a testcase that verifies that the IMA subsystem > correctly measure the cmdline specified during a kexec. > > Reviewed-by: Petr Vorel <pvorel@xxxxxxx> > Reviewed-by: Mimi Zohar <zohar@xxxxxxxxxxxxx> > Signed-off-by: Lachlan Sneff <t-josne@xxxxxxxxxxxxxxxxxxx> > [ pvorel: improved setup, various LTP API cleanup ] > Signed-off-by: Petr Vorel <pvorel@xxxxxxx> Thanks, really nice. Missing is a short comment explaining the reason for the multiple tests. > +test() > +{ > + case $1 in > + 1) kexec_test '--reuse-cmdline';; > + 2) kexec_test '--append' 'foo';; > + 3) kexec_test '--command-line' 'bar';; > + esac > +} > + > +tst_run