* [LTP] [PATCH] uaccess.c: Skip on Lockdown/Secure Boot
@ 2026-01-08 12:59 Avinesh Kumar via ltp
2026-01-08 13:07 ` Petr Vorel
2026-01-08 17:08 ` Petr Vorel
0 siblings, 2 replies; 3+ messages in thread
From: Avinesh Kumar via ltp @ 2026-01-08 12:59 UTC (permalink / raw)
To: ltp
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
Signed-off-by: Avinesh Kumar <avinesh.kumar@suse.com>
---
testcases/kernel/device-drivers/uaccess/uaccess.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/testcases/kernel/device-drivers/uaccess/uaccess.c b/testcases/kernel/device-drivers/uaccess/uaccess.c
index ab6fa58a7..f337aba64 100644
--- a/testcases/kernel/device-drivers/uaccess/uaccess.c
+++ b/testcases/kernel/device-drivers/uaccess/uaccess.c
@@ -29,6 +29,7 @@
#include "test.h"
#include "old_module.h"
#include "safe_macros.h"
+#include "tst_security.h"
#include "ltp_uaccess.h"
@@ -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");
+}
+
static void cleanup(void)
{
if (module_loaded)
@@ -94,6 +101,8 @@ int main(int argc, char *argv[])
{
tst_parse_opts(argc, argv, NULL, NULL);
+ setup();
+
tst_require_root();
tst_sig(FORK, DEF_HANDLER, cleanup);
--
2.52.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [LTP] [PATCH] uaccess.c: Skip on Lockdown/Secure Boot
2026-01-08 12:59 [LTP] [PATCH] uaccess.c: Skip on Lockdown/Secure Boot Avinesh Kumar via ltp
@ 2026-01-08 13:07 ` Petr Vorel
2026-01-08 17:08 ` Petr Vorel
1 sibling, 0 replies; 3+ messages in thread
From: Petr Vorel @ 2026-01-08 13:07 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: ltp
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
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LTP] [PATCH] uaccess.c: Skip on Lockdown/Secure Boot
2026-01-08 12:59 [LTP] [PATCH] uaccess.c: Skip on Lockdown/Secure Boot Avinesh Kumar via ltp
2026-01-08 13:07 ` Petr Vorel
@ 2026-01-08 17:08 ` Petr Vorel
1 sibling, 0 replies; 3+ messages in thread
From: Petr Vorel @ 2026-01-08 17:08 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: ltp
Hi Avinesh,
thanks, merged!
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-01-08 17:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-08 12:59 [LTP] [PATCH] uaccess.c: Skip on Lockdown/Secure Boot Avinesh Kumar via ltp
2026-01-08 13:07 ` Petr Vorel
2026-01-08 17:08 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox