Skip to content

Add tainting support

Adam Duskett buildroot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Makefile: add tainting supportConfig.in Makefile package/pkg-generic.mk+45 -00 replies
2/3docs/manual: add information about taintingdocs/manual/adding-packages-generic.adoc docs/manual/legal-notice.adoc+33 -00 replies
3/3package/nodejs: taint the build when using external modulespackage/nodejs/Config.in package/nodejs/nodejs-src/nodejs-src.mk+4 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [PATCH 0/3] Add tainting support

Originally taken from Angelo Compagnucci's patch series:
https://patchwork.ozlabs.org/project/buildroot/list/?series=64340

When the original patch series was submitted, Buildroot was quite a bit smaller! With almost 1,000 packages added since then and more and more external package managers being available for various languages, it is not possible to package every single dependency needed for some packages.

Indeed, looking at NPM, for example, some packages rely on tens, if not hundreds, of others. While this could be better and is indeed quite bad, it is, unfortunately, the reality we must deal with.

With this patch series, we add initial tainting support to Buildroot with the added option to turn the support off by way of the BR2_DISABLE_TAINT_CHECKING option. This option gives us the best of both worlds: A sane default and an option for advanced users to turn off the check if they understand the risks and can guarantee their build is reproducible.

This patch series has two significant benefits:
- Taint checking paves the way for additional package managers to be incorporated into Buildroot while maintaining reproducible integrity for packages provided by Buildroot.

- It tells the user their build is tainted and what packages they have selected are causing the taint.

- It makes support easier. If a user has a build that is tainted and the the problem they are experiencing is with a tainted package; it is more straightforward to tell the user they are on their own.

Adam Duskett (3):
Makefile: add tainting support
docs/manual: add information about tainting package/nodejs: taint the build when using external modules

 Config.in                                |  9 +++++++++
 Makefile                                 | 17 +++++++++++++++++
 docs/manual/adding-packages-generic.adoc |  9 +++++++++
 docs/manual/legal-notice.adoc            | 24 ++++++++++++++++++++++++
 package/nodejs/Config.in                 |  3 +++
 package/nodejs/nodejs-src/nodejs-src.mk  |  1 +
 package/pkg-generic.mk                   | 19 +++++++++++++++++++
 7 files changed, 82 insertions(+)
Signature · 6 lines
2.41.0

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