All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] spdx3: Export kernel configuration as build parameters in SPDX output
@ 2025-07-16  9:05 Kamel Bouhara
  2025-07-16  9:05 ` [PATCH 1/1] spdx3: Add optional kernel configuration export to build_parameter for virtual/kernel Kamel Bouhara
  0 siblings, 1 reply; 11+ messages in thread
From: Kamel Bouhara @ 2025-07-16  9:05 UTC (permalink / raw)
  To: openembedded-core
  Cc: JPEWhacker, thomas.petazzoni, mathieu.dubois-briand,
	antonin.godard, Kamel Bouhara

Enhances the SPDX 3.0 support in OpenEmbedded by ensuring that the kernel's build-time
configuration is captured and embedded in the generated SPDX metadata.

Recipes that provide "virtual/kernel" now have their '${B}/.config' file parsed, and each 'CONFIG_*'
entry is added to the SPDX document as a 'build_parameter'.

Including the kernel configuration in SPDX output is particularly relevant for compliance, security
auditing, and long-term maintenance, as it provides a machine-readable view of the exact kernel
features enabled or disabled at build time.

Potential future enhancements:

- Support parsing `CONFIG_FOO is not set` entries to document explicitly
  disabled kernel options for greater completeness.
- Optionally allow filtering or scoping of exported options (e.g., via
  'SPDX_KERNEL_CONFIG_FILTER') to limit output size or focus on security-relevant flags e.g.:

	# Only include a specific list of kernel config options in SPDX output
	SPDX_KERNEL_CONFIG_FILTER = "CONFIG_HARDENED_USERCOPY CONFIG_STACKPROTECTOR_STRONG CONFIG_SECURITY_SELINUX CONFIG_MODULE_SIG"

Feedback is welcome.

Greetings,
Kamel

Kamel Bouhara (1):
  spdx3: Add optional kernel configuration export to build_parameter for
    virtual/kernel

 meta/classes/create-spdx-3.0.bbclass |  6 ++++++
 meta/lib/oe/spdx30_tasks.py          | 32 ++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+)

--
2.43.0



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

end of thread, other threads:[~2025-07-21 16:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-16  9:05 [PATCH 0/1] spdx3: Export kernel configuration as build parameters in SPDX output Kamel Bouhara
2025-07-16  9:05 ` [PATCH 1/1] spdx3: Add optional kernel configuration export to build_parameter for virtual/kernel Kamel Bouhara
2025-07-16  9:28   ` [OE-core] " Mikko Rapeli
2025-07-16 11:34     ` Kamel Bouhara
2025-07-16 13:30       ` Bruce Ashfield
2025-07-16 14:30         ` Kamel Bouhara
2025-07-16 14:51           ` Bruce Ashfield
2025-07-17  7:07             ` Kamel Bouhara
2025-07-18 22:10   ` Joshua Watt
2025-07-21 14:53     ` Kamel Bouhara
2025-07-21 16:45       ` Joshua Watt

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.