[LTP] [PATCH] {delete, finit, init}_module0[1-3]: Handle CONFIG_MODULE_SIG_FORCE

Petr Vorel pvorel@suse.cz
Fri Dec 27 13:46:53 CET 2024


Hi Po-Hsu Lin,

> The patch adds parsing for CONFIG_MODULE_SIG_FORCE kernel config,
> which will make tests expect an EKEYREJECTED error like using the
> 'module.sig_enforce' parameter.

Thanks, merged!

> Patch tested on kernel with CONFIG_MODULE_SIG_FORCE=y and it's
> working as expected.

+1

We might want to refactor the code to single place (DRY), but that can be done
later (we have lib/tst_module.c, which is using an old API because shared
between old and new code, but it looks like all tests has been converted to new
API, thus lib/tst_module.c could be convert to new API as well and then add
these checks into).

Kind regards,
Petr


More information about the ltp mailing list