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

Petr Vorel
2026-01-08T13:07:34Z

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