[LTP] [PATCH v4] IMA: Allow only ima-buf template for key measurement
Petr Vorel
pvorel@suse.cz
Tue Mar 23 08:16:14 CET 2021
Hi Lakshmi, Mimi,
merged this one with slightly updated text of docs and commit message.
...
> +check_policy_template()
> +{
> + while read line; do
> + if ( echo $line | grep -q 'template=') && ( ! echo $line | grep -q 'template=ima-buf' ); then
FYI: parentheses are not necessary, thus I removed them.
> + tst_res TCONF "only template=ima-buf can be specified for KEY_CHECK"
> + return 1
> + fi
Kind regards,
Petr
More information about the ltp
mailing list