public inbox for linux-security-module@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] modules: Move 'struct module_signature' to UAPI
@ 2026-03-02 12:42 Thomas Weißschuh
  2026-03-02 12:42 ` [PATCH 1/8] extract-cert: drop unused definition of PKEY_ID_PKCS7 Thomas Weißschuh
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Thomas Weißschuh @ 2026-03-02 12:42 UTC (permalink / raw)
  To: David Howells, David Woodhouse, Luis Chamberlain, Petr Pavlu,
	Daniel Gomez, Sami Tolvanen, Aaron Tomlin, Heiko Carstens,
	Vasily Gorbik, Alexander Gordeev, Christian Borntraeger,
	Sven Schnelle, Mimi Zohar, Roberto Sassu, Dmitry Kasatkin,
	Eric Snowberg, Paul Moore, James Morris, Serge E. Hallyn,
	Nathan Chancellor, Nicolas Schier, Alexei Starovoitov,
	Daniel Borkmann, Andrii Nakryiko, Martin KaFai Lau,
	Eduard Zingerman, Song Liu, Yonghong Song, John Fastabend,
	KP Singh, Stanislav Fomichev, Hao Luo, Jiri Olsa, Shuah Khan
  Cc: keyrings, linux-kernel, linux-modules, linux-s390,
	linux-integrity, linux-security-module, linux-kbuild, bpf,
	linux-kselftest, Thomas Weißschuh

This structure definition is used outside the kernel proper.
For example in kmod and the kernel build environment.

To allow reuse, move it to a new UAPI header.

While it is not a true UAPI, it is a common practice to have
non-UAPI interface definitions in the kernel's UAPI headers.

This came up as part of my CONFIG_MODULE_HASHES series [0].
But it is useful on its own and so we get it out of the way.

[0] https://lore.kernel.org/lkml/aZ3OfJJSJgfOb0rJ@levanger/

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
Thomas Weißschuh (8):
      extract-cert: drop unused definition of PKEY_ID_PKCS7
      module: Drop unused signature types
      module: Give 'enum pkey_id_type' a more specific name
      module: Give MODULE_SIG_STRING a more descriptive name
      modules: Move 'struct module_signature' to UAPI
      tools uapi headers: add linux/module_signature.h
      sign-file: use 'struct module_signature' from the UAPI headers
      selftests/bpf: verify_pkcs7_sig: Use 'struct module_signature' from the UAPI headers

 arch/s390/kernel/machine_kexec_file.c              |  6 ++--
 certs/extract-cert.c                               |  2 --
 include/linux/module_signature.h                   | 30 +---------------
 include/uapi/linux/module_signature.h              | 41 +++++++++++++++++++++
 kernel/module/signing.c                            |  4 +--
 kernel/module_signature.c                          |  2 +-
 scripts/Makefile                                   |  1 +
 scripts/sign-file.c                                | 19 +++-------
 security/integrity/ima/ima_modsig.c                |  6 ++--
 tools/include/uapi/linux/module_signature.h        | 42 ++++++++++++++++++++++
 .../selftests/bpf/prog_tests/verify_pkcs7_sig.c    | 28 ++-------------
 11 files changed, 101 insertions(+), 80 deletions(-)
---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260302-module-signature-uapi-61fa80b1e2bb

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh@linutronix.de>


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-03-04  7:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-02 12:42 [PATCH 0/8] modules: Move 'struct module_signature' to UAPI Thomas Weißschuh
2026-03-02 12:42 ` [PATCH 1/8] extract-cert: drop unused definition of PKEY_ID_PKCS7 Thomas Weißschuh
2026-03-02 12:42 ` [PATCH 2/8] module: Drop unused signature types Thomas Weißschuh
2026-03-02 12:42 ` [PATCH 3/8] module: Give 'enum pkey_id_type' a more specific name Thomas Weißschuh
2026-03-02 12:42 ` [PATCH 4/8] module: Give MODULE_SIG_STRING a more descriptive name Thomas Weißschuh
2026-03-02 12:42 ` [PATCH 5/8] modules: Move 'struct module_signature' to UAPI Thomas Weißschuh
2026-03-02 12:42 ` [PATCH 6/8] tools uapi headers: add linux/module_signature.h Thomas Weißschuh
2026-03-02 13:32   ` bot+bpf-ci
2026-03-02 14:04     ` Thomas Weißschuh
2026-03-02 12:42 ` [PATCH 7/8] sign-file: use 'struct module_signature' from the UAPI headers Thomas Weißschuh
2026-03-02 12:42 ` [PATCH 8/8] selftests/bpf: verify_pkcs7_sig: Use " Thomas Weißschuh
2026-03-04  7:52 ` [PATCH 0/8] modules: Move 'struct module_signature' to UAPI Petr Pavlu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox