From: Petr Vorel <pvorel@suse.cz>
To: Martin Doucha <mdoucha@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH 3/4] {delete, finit, init}_module0[1-3]: Skip on SecureBoot
Date: Fri, 21 Jul 2023 10:51:38 +0200 [thread overview]
Message-ID: <20230721085138.GA1348273@pevik> (raw)
In-Reply-To: <92c457da-9b02-88ae-62e4-9a2be155e6cb@suse.cz>
Hi Martin,
> > +++ b/testcases/kernel/syscalls/delete_module/delete_module01.c
> > @@ -52,6 +52,8 @@ static struct tst_test test = {
> > .needs_root = 1,
> > /* lockdown requires signed modules */
> > .skip_in_lockdown = 1,
> > + /* SecureBoot requires signed modules */
> Nit: the two comments could be merged into one.
+1
...
> > @@ -102,9 +104,16 @@ static void run(unsigned int n)
> > {
> > struct tcase *tc = &tcases[n];
> > - if (tc->skip_in_lockdown && kernel_lockdown) {
> > - tst_res(TCONF, "Kernel is locked down, skipping %s", tc->name);
> > - return;
> > + if (tc->skip_in_lockdown) {
> > + if (secure_boot) {
> > + tst_res(TCONF, "SecureBoot enabled, skipping %s", tc->name);
> > + return;
> > + }
> > +
> > + if (kernel_lockdown) {
> > + tst_res(TCONF, "Kernel is locked down, skipping %s", tc->name);
> > + return;
> > + }
> It'd be better to just change the original TCONF message to something like
> "Cannot load unsigned modules, skipping %s". Adding a TINFO message
> "Lockdown on/off" to tst_lockdown_enabled() would provide the explanation
> why.
+1
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2023-07-21 8:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-20 15:02 [LTP] [PATCH 0/4] Add .skip_in_secureboot flag Petr Vorel
2023-07-20 15:02 ` [LTP] [PATCH 1/4] tst_lockdown: Check other lockdown configuration Petr Vorel
2023-07-20 15:16 ` Martin Doucha
2023-07-21 8:55 ` Petr Vorel
2023-07-20 15:02 ` [LTP] [PATCH 2/4] lib: Add .skip_in_secureboot flag Petr Vorel
2023-07-20 15:18 ` Martin Doucha
2023-07-20 15:02 ` [LTP] [PATCH 3/4] {delete, finit, init}_module0[1-3]: Skip on SecureBoot Petr Vorel
2023-07-20 15:26 ` Martin Doucha
2023-07-21 8:51 ` Petr Vorel [this message]
2023-07-20 15:02 ` [LTP] [PATCH 4/4] doc/c-api: Document .skip_in_* flags Petr Vorel
2023-07-20 15:27 ` Martin Doucha
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=20230721085138.GA1348273@pevik \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
--cc=mdoucha@suse.cz \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.