From: Petr Vorel <pvorel@suse.cz>
To: Li Wang <liwang@redhat.com>
Cc: Po-Hsu Lin <po-hsu.lin@canonical.com>,
"Ricardo B . Marliere" <rbm@suse.com>,
ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v2 1/2] lib: Add helpers for module signature enforcement
Date: Thu, 2 Jan 2025 11:14:28 +0100 [thread overview]
Message-ID: <20250102101428.GA72628@pevik> (raw)
In-Reply-To: <CAEemH2dUU4JNNxL3Gxrdgf-=_DPWW=Cbb-2AysWi0_BLc3yDFw@mail.gmail.com>
Hi Li,
> > +/**
> > + * tst_check_module_signature_enforced() - Check if test needs to be
> > skipped due
> > + * enforced module signature.
> > + *
> > + * Skip test with tst_brk(TCONF) due module signature enforcement if
> > + * module.sig_enforce=1 kernel parameter or CONFIG_MODULE_SIG_FORCE=y.
> > + */
> > +
> > +static inline void tst_check_module_signature_enforced(void)
> This function is used to skip tests while detecting the signature
> enforcement ON, but the name might be ambiguous somewhere.
+1, I was not sure myself about naming.
> I would suggest to name it:
> tst_check_module_signature_not_enforced(void) or,
> tst_skip_if_module_signature_enforced(void) or,
> tst_requires_module_signature_disabled(void)
Thanks for the suggestions. tst_requires_module_signature_disabled(void) looks
best to me, we use "require" and "needs" for tst_brk().
I'll wait little longer before merging in case there is some feedback.
Kind regards,
Petr
> Otherwise, the whole patch set looks good.
> Reviewed-by: Li Wang <liwang@redhat.com>
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2025-01-02 10:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-31 11:56 [LTP] [PATCH v2 0/2] module signature enforcement helpers Petr Vorel
2024-12-31 11:56 ` [LTP] [PATCH v2 1/2] lib: Add helpers for module signature enforcement Petr Vorel
2025-01-02 6:42 ` Li Wang
2025-01-02 10:14 ` Petr Vorel [this message]
2025-01-03 9:07 ` Petr Vorel
2024-12-31 11:56 ` [LTP] [PATCH v2 2/2] device-drivers: *module: Use " Petr Vorel
2025-01-02 2:59 ` [LTP] [PATCH v2 0/2] module signature enforcement helpers Po-Hsu Lin
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=20250102101428.GA72628@pevik \
--to=pvorel@suse.cz \
--cc=liwang@redhat.com \
--cc=ltp@lists.linux.it \
--cc=po-hsu.lin@canonical.com \
--cc=rbm@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