Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v3 0/5] package/compliance-as-code: introduce new package
@ 2025-10-16 14:46 Alexis Lothoré via buildroot
  2025-10-16 14:46 ` [Buildroot] [PATCH v3 1/5] package/libxmlsec1: " Alexis Lothoré via buildroot
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Alexis Lothoré via buildroot @ 2025-10-16 14:46 UTC (permalink / raw)
  To: buildroot
  Cc: tim.hammer, nicolas.carrier, Thomas Petazzoni,
	Alexis Lothoré

Hello,
this is the v3 of the series bringing in Compliance As Code policies [1]
(CaC) on a target. v2 has not received any new review since it has been
sent, but in the mean time, I found some small issues (either at build
time or runtime, due to a lack in my testing setup) so this new revision
acts both as an update and a resend.

This project aims to provide security policy content on systems: this
content brings data files describing checks standards and automations
for system configuration.  Those files come in various formats (XCCDF,
OVAL, SCAP).  This project is tightly coupled to the OpenSCAP tool [2]:
- to build the data files to embed on the target system
- and to perform analysis on the system, by consuming the data files

CaC then depends on both openscap and host-openscap.
The series brings in the following commits:
- commit 1 brings libxmsec1, one of openscap dependencies
- commit 2 brings back host-libcurl (which has been supported and later
  removed from BR, as there was no user anymore), since host-openscap
  needs host-libcurl
- commit 3 brings openscap package
- commit 4 brings CaC package

The new CaC package brings a minimal feature set for now: it only brings
the security policy data files (ie: XML files) on the target. It can be
extended later as needed to bring in for example generated bash script,
ansible playbooks, etc.

Testing output:
$ ./utils/test-pkg -c cac.config -p compliance-as-code
   bootlin-armv5-uclibc [1/6]: OK
   bootlin-armv7-glibc [2/6]: OK
   bootlin-armv7m-uclibc [3/6]: SKIPPED
   bootlin-x86-64-musl [4/6]: OK
   br-arm-full-static [5/6]: SKIPPED
   arm-aarch64 [6/6]: OK

[1] https://github.com/ComplianceAsCode/content
[2] https://github.com/OpenSCAP/openscap

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
---
Changes in v3:
- added missing --disable-libpsl for host-libcurl to prevent build
  failure
- make openscap selects CONFIG_BR2_PACKAGE_PCRE_UTF to prevent runtime
  failure
- Link to v2: https://lore.kernel.org/r/20250731-openscap-v2-0-5d7fec0cb36d@bootlin.com

Changes in v2:
- reworded commits titles and messages
- reformated, reordered content and/or cleaned multiple files
- added Kconfig comments for toolchain deps
- added missing DEVELOPERS entry
- fixed licensing issues for openscap
- disabled python3 in openscap
- removed some non existing KConfig dependencies and hooks 
- fixed KConfig management in CaC .mk file
- updated install target in CaC to use cp
- introduced a simple runtime test for openscap/CaC
- Link to v1: https://lore.kernel.org/r/20250730-openscap-v1-0-46e4a32e26da@bootlin.com

---
Alexis Lothoré (5):
      package/libxmlsec1: new package
      package/libcurl: Reapply "libcurl: add host variant"
      package/openscap: new package
      package/compliance-as-code: new package
      support/testing: add runtime testing for compliance-as-code

 DEVELOPERS                                         |  6 ++
 package/Config.in                                  |  3 +
 package/compliance-as-code/Config.in               | 33 +++++++++++
 package/compliance-as-code/compliance-as-code.hash |  4 ++
 package/compliance-as-code/compliance-as-code.mk   | 41 +++++++++++++
 package/libcurl/libcurl.mk                         | 12 ++++
 package/libxmlsec1/Config.in                       | 13 ++++
 package/libxmlsec1/libxmlsec1.hash                 |  3 +
 package/libxmlsec1/libxmlsec1.mk                   | 32 ++++++++++
 package/openscap/Config.in                         | 22 +++++++
 package/openscap/openscap.hash                     |  3 +
 package/openscap/openscap.mk                       | 69 ++++++++++++++++++++++
 .../tests/package/test_compliance_as_code.py       | 23 ++++++++
 13 files changed, 264 insertions(+)
---
base-commit: 39ea74ffc7d6387af0a3040542008960c7cdbf2f
change-id: 20250724-openscap-7166fbe1571e

Best regards,
-- 
Alexis Lothoré, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2026-02-12 22:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-16 14:46 [Buildroot] [PATCH v3 0/5] package/compliance-as-code: introduce new package Alexis Lothoré via buildroot
2025-10-16 14:46 ` [Buildroot] [PATCH v3 1/5] package/libxmlsec1: " Alexis Lothoré via buildroot
2026-02-10 22:52   ` Thomas Petazzoni via buildroot
2025-10-16 14:46 ` [Buildroot] [PATCH v3 2/5] package/libcurl: Reapply "libcurl: add host variant" Alexis Lothoré via buildroot
2026-02-12 22:35   ` Thomas Petazzoni via buildroot
2025-10-16 14:46 ` [Buildroot] [PATCH v3 3/5] package/openscap: new package Alexis Lothoré via buildroot
2026-02-12 22:36   ` Thomas Petazzoni via buildroot
2025-10-16 14:46 ` [Buildroot] [PATCH v3 4/5] package/compliance-as-code: " Alexis Lothoré via buildroot
2025-10-16 14:46 ` [Buildroot] [PATCH v3 5/5] support/testing: add runtime testing for compliance-as-code Alexis Lothoré via buildroot
2025-10-29 16:44 ` [Buildroot] [PATCH v3 0/5] package/compliance-as-code: introduce new package Tim Hammer
2025-11-17 14:25 ` Alexis Lothoré via buildroot
2026-01-23  9:04   ` Alexis Lothoré via buildroot

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