Linux Test Project
 help / color / mirror / Atom feed
From: Andrea Cervesato via ltp <ltp@lists.linux.it>
To: "Avinesh Kumar" <avinesh.kumar@suse.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v2] fw_load0[12]: Skip on Lockdown and Secure Boot
Date: Thu, 18 Jun 2026 11:52:13 +0000	[thread overview]
Message-ID: <6a33dbee.51d65a57.34452b.c5b3@mx.google.com> (raw)
In-Reply-To: <20260618114706.105296-1-avinesh.kumar@suse.com>

Hi
> these checks were lost in the recent commit converting
> these tests to new API.
> 
> tst_module.c:139: TINFO: module signature enforcement: off
> insmod: ERROR: could not insert module ltp_fw_load.ko: Key was rejected by service
> tst_cmd.c:112: TBROK: 'insmod' exited with a non-zero code 1 at tst_cmd.c:112
> 
> with checks added:
> 
> tst_security.c:104: TINFO: Kernel lockdown: on
> tst_test.c:1467: TCONF: Kernel is locked down, skipping test
> 
> Fixes: fd2c4d2c25d3 ("fw_load: rewrite test using new LTP API")
> Signed-off-by: Avinesh Kumar <avinesh.kumar@suse.com>
> ---
> Changes in v2:
> Use .skip_in_lockdown and .skip_in_secureboot fields in struct tst_test
> instead of tst_lockdown_enabled()/tst_secureboot_enabled()
> ---
>  testcases/kernel/firmware/fw_load/fw_load01.c | 2 ++
>  testcases/kernel/firmware/fw_load/fw_load02.c | 2 ++
>  2 files changed, 4 insertions(+)
> 
> diff --git a/testcases/kernel/firmware/fw_load/fw_load01.c b/testcases/kernel/firmware/fw_load/fw_load01.c
> index 4b30a3b40..cdf0d387b 100644
> --- a/testcases/kernel/firmware/fw_load/fw_load01.c
> +++ b/testcases/kernel/firmware/fw_load/fw_load01.c
> @@ -108,4 +108,6 @@ static struct tst_test test = {
>  		"CONFIG_FW_LOADER=y|CONFIG_FW_LOADER=m",
>  		NULL,
>  	},
> +	.skip_in_lockdown = 1,
> +	.skip_in_secureboot = 1,
>  };
> diff --git a/testcases/kernel/firmware/fw_load/fw_load02.c b/testcases/kernel/firmware/fw_load/fw_load02.c
> index 8d2063772..fbcfd3faf 100644
> --- a/testcases/kernel/firmware/fw_load/fw_load02.c
> +++ b/testcases/kernel/firmware/fw_load/fw_load02.c
> @@ -90,4 +90,6 @@ static struct tst_test test = {
>  		{FW_PATH, NULL, TST_SR_TCONF},
>  		{},
>  	},
> +	.skip_in_lockdown = 1,
> +	.skip_in_secureboot = 1,
>  };
> -- 
> 2.54.0
> 

--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2026-06-18 11:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-17 20:03 [LTP] [PATCH] fw_load0[12]: Skip on Lockdown and Secure Boot Avinesh Kumar via ltp
2026-06-17 21:09 ` [LTP] " linuxtestproject.agent
2026-06-18 11:47   ` [LTP] [PATCH v2] " Avinesh Kumar via ltp
2026-06-18 11:52     ` Andrea Cervesato via ltp [this message]
2026-06-18 11:52     ` Andrea Cervesato via ltp
2026-06-18 11:53     ` Andrea Cervesato via ltp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6a33dbee.51d65a57.34452b.c5b3@mx.google.com \
    --to=ltp@lists.linux.it \
    --cc=andrea.cervesato@suse.com \
    --cc=avinesh.kumar@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox