Skip to content

package/compliance-as-code: introduce new package

Alexis Lothoré via buildroot buildroot 3 versions – In review

Get series with b4
b4 am [email protected] change-id 20250724-openscap-7166fbe1571e

Versions newest first

  1. v3 Latest5 patches 6 repliesIn review
  2. v25 patches 0 repliesSuperseded
  3. v14 patches 11 repliesSuperseded

Changes in v3 from the cover letter

- 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/[email protected]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5package/libxmlsec1: new packageDEVELOPERS package/Config.in package/libxmlsec1/Config.in +2 more+52 -01 reply
2/5package/libcurl: Reapply "libcurl: add host variant"package/libcurl/libcurl.mk+12 -01 reply
3/5package/openscap: new packageDEVELOPERS package/Config.in package/openscap/Config.in +2 more+96 -01 reply
4/5package/compliance-as-code: new packageDEVELOPERS package/Config.in package/compliance-as-code/Config.in +2 more+80 -00 replies
5/5support/testing: add runtime testing for compliance-as-codeDEVELOPERS support/testing/tests/package/test_compliance_as_code.py+24 -00 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchTim Hammer
SeriesR-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [Buildroot] [PATCH v3 0/5] package/compliance-as-code: introduce new package

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

---
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/[email protected]

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/[email protected]

---
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,

Signature · 8 lines
Alexis Lothoré, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot