[LTP] [PATCH] uaccess.c: Skip on Lockdown/Secure Boot

Petr Vorel pvorel@suse.cz
Thu Jan 8 14:07:07 CET 2026


Hi Avinesh,

> following the commit (fca9460dee fw_load: Skip on Lockdown/Secure Boot)
> to take care of

> ltp_uaccess    0  TINFO  :  module signature enforcement: off
> insmod: ERROR: could not insert module ltp_uaccess.ko: Key was rejected by service

...
> @@ -39,6 +40,12 @@ static const char dev_tcase[]	= "/sys/devices/" DEV_NAME "/tcase";
>  static const char module_name[]	= DEV_NAME ".ko";
>  static int module_loaded;

> +static void setup(void)
> +{
> +	if (tst_lockdown_enabled() > 0 || tst_secureboot_enabled() > 0)
> +		tst_brkm(TCONF, NULL, "Cannot load unsigned modules in Lockdown/Secure Boot");
> +}
...
> +	setup();

Thanks for fixing it!
Reviewed-by: Petr Vorel <pvorel@suse.cz>

Kind regards,
Petr



More information about the ltp mailing list