Add a security manual
cover Add a security manual
As stated in the first patch, this section of the documentation can be used to collect best practices with regards to security and the Yocto Project.
Having a dedicated section also helps putting security to the front page of the documentation.
For now, this series only moves three documents that I could find in the documentation that could be considered as security hardening or vulnerability management.
---
Antonin Godard (3):
Add a security manual
Move security related manuals to the security manual security-manual/securing-images.rst: remove old links
documentation/contributor-guide/submit-changes.rst | 2 +- documentation/dev-manual/index.rst | 3 --- documentation/dev-manual/sbom.rst | 2 +- documentation/index.rst | 1 + .../migration-guides/release-notes-4.2.rst | 2 +- documentation/overview-manual/concepts.rst | 2 +- documentation/ref-manual/classes.rst | 2 +- documentation/ref-manual/faq.rst | 2 +- documentation/ref-manual/features.rst | 2 +- documentation/ref-manual/variables.rst | 4 ++-- documentation/security-manual/index.rst | 19 +++++++++++++++ documentation/security-manual/intro.rst | 28 ++++++++++++++++++++++ .../read-only-rootfs.rst | 0 .../securing-images.rst | 20 ++-------------- .../vulnerabilities.rst | 0 15 files changed, 59 insertions(+), 30 deletions(-)
---
base-commit: f9042e1da554017fe46460c1fd2bdf8c74b3fa18
change-id: 20260106-security-manual-2dca7f999441
PATCH 1/3 Add a security manual
A new manual in the documentation, to separate out security-oriented tasks from other ones. The end-goal of this manual is to be a place where users can add security tutorials/tips to harden images, or document ways to deal with vulnerabilities, as long as it's supported by the Yocto Project.
Add an intro document stating what this manual is for and what it's not for.
[YOCTO #14509]
--- documentation/index.rst | 1 + documentation/security-manual/index.rst | 16 ++++++++++++++++ documentation/security-manual/intro.rst | 28 ++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+)
documentation/index.rst +1 -0
@@ -30,6 +30,7 @@ Welcome to the Yocto Project Documentation Board Support Package (BSP) Developer's guide <bsp-guide/index> Development Tasks Manual <dev-manual/index> Linux Kernel Development Manual <kernel-dev/index> + Security Manual <security-manual/index> Profile and Tracing Manual <profile-manual/index> Application Development and the Extensible SDK (eSDK) <sdk-manual/index> Toaster Manual <toaster-manual/index>
documentation/security-manual/index.rst new file +16 -0
@@ -0,0 +1,16 @@ +.. SPDX-License-Identifier: CC-BY-SA-2.0-UK + +============================= +Yocto Project Security Manual +============================= + +| + +.. toctree:: + :caption: Table of Contents + :numbered: + + intro + +.. include:: /boilerplate.rst +
documentation/security-manual/intro.rst new file +28 -0
@@ -0,0 +1,28 @@ +.. SPDX-License-Identifier: CC-BY-SA-2.0-UK + +************ +Introduction +************ + +Welcome to the Yocto Project Security Manual. This manual provides relevant +procedures necessary for dealing with security-related tasks supported in the +Yocto Project environment. This manual groups related procedures into +higher-level sections. Procedures can consist of high-level steps or low-level +steps depending on the topic. + +This manual provides the following: + +- Procedures that help you securing an image with features supported by the + Yocto Project; for example making a root filesystem read-only. + +- Procedures related to processes outside of the target images; for example how + to deal with vulnerabilities. + +This manual does not provide the following: + +- Procedures on security features implemented outside of + :term:`OpenEmbedded-Core (OE-Core)`. + +- Documentation on the security mechanisms themselves, which can often be found + in the documentation of the feature itself. This manual focuses on how to + integrate the security mechanism within the Yocto Project.
Signature · 1 line
2.52.0
PATCH 2/3 Move security related manuals to the security manual
In reply to Antonin GodardMove the vulnerabilities, read-only-rootfs, and securing-images sections to the security manual. Update references to these documents to fix Sphinx reference errors.
---
documentation/contributor-guide/submit-changes.rst | 2 +-
documentation/dev-manual/index.rst | 3 ---
documentation/dev-manual/sbom.rst | 2 +-
documentation/migration-guides/release-notes-4.2.rst | 2 +-
documentation/overview-manual/concepts.rst | 2 +-
documentation/ref-manual/classes.rst | 2 +-
documentation/ref-manual/faq.rst | 2 +-
documentation/ref-manual/features.rst | 2 +-
documentation/ref-manual/variables.rst | 4 ++--
documentation/security-manual/index.rst | 3 +++
documentation/{dev-manual => security-manual}/read-only-rootfs.rst | 0
documentation/{dev-manual => security-manual}/securing-images.rst | 4 ++--
documentation/{dev-manual => security-manual}/vulnerabilities.rst | 0
13 files changed, 14 insertions(+), 14 deletions(-)documentation/contributor-guide/submit-changes.rst +1 -1
@@ -711,7 +711,7 @@ follows: #. *Identify the bug or CVE to be fixed:* This information should be collected so that it can be included in your submission. - See :ref:`dev-manual/vulnerabilities:checking for vulnerabilities` + See :ref:`security-manual/vulnerabilities:checking for vulnerabilities` for details about CVE tracking. #. *Check if the fix is already present in the master branch:* This will
documentation/dev-manual/index.rst +0 -3
@@ -33,7 +33,6 @@ Yocto Project Development Tasks Manual external-toolchain wic bmaptool - securing-images custom-distribution custom-template-configuration-directory disk-space
@@ -42,11 +41,9 @@ Yocto Project Development Tasks Manual init-manager device-manager external-scm - read-only-rootfs build-quality debugging licenses - vulnerabilities sbom error-reporting-tool wayland
documentation/dev-manual/sbom.rst +1 -1
@@ -6,7 +6,7 @@ Creating a Software Bill of Materials Once you are able to build an image for your project, once the licenses for each software component are all identified (see ":ref:`dev-manual/licenses:working with licenses`") and once vulnerability -fixes are applied (see ":ref:`dev-manual/vulnerabilities:checking +fixes are applied (see ":ref:`security-manual/vulnerabilities:checking for vulnerabilities`"), the OpenEmbedded build system can generate a description of all the components you used, their licenses, their dependencies, their sources, the changes that were applied to them and the known
documentation/migration-guides/release-notes-4.2.rst +1 -1
@@ -273,7 +273,7 @@ New Features / Enhancements in 4.2 - Prominent documentation updates: - - Substantially expanded the ":doc:`/dev-manual/vulnerabilities`" section. + - Substantially expanded the ":doc:`/security-manual/vulnerabilities`" section. - Added a new ":doc:`/dev-manual/sbom`" section about SPDX SBoM generation. - Expanded ":ref:`init-manager`" documentation. - New section about :ref:`ref-long-term-support-releases`.
documentation/overview-manual/concepts.rst +1 -1
@@ -1041,7 +1041,7 @@ stage of package installation, post installation scripts that are part of the packages are run. Any scripts that fail to run on the build host are run on the target when the target system is first booted. If you are using a -:ref:`read-only root filesystem <dev-manual/read-only-rootfs:creating a read-only root filesystem>`, +:ref:`read-only root filesystem <security-manual/read-only-rootfs:creating a read-only root filesystem>`, all the post installation scripts must succeed on the build host during the package installation phase since the root filesystem on the target is read-only.
documentation/ref-manual/classes.rst +1 -1
@@ -659,7 +659,7 @@ These can only be detected by reviewing the details of the issues and iterating and following what happens in other Linux distributions and in the greater open source community. You will find some more details in the -":ref:`dev-manual/vulnerabilities:checking for vulnerabilities`" +":ref:`security-manual/vulnerabilities:checking for vulnerabilities`" section in the Development Tasks Manual. .. _ref-classes-cython:
documentation/ref-manual/faq.rst +1 -1
@@ -320,7 +320,7 @@ the vulnerabilities using the SPDX document as input. These third-party tools have the responsibility of providing support for integrating with the Yocto Project SBOMs. -Also see the :doc:`/dev-manual/vulnerabilities` section of the Yocto Project +Also see the :doc:`/security-manual/vulnerabilities` section of the Yocto Project Development Tasks Manual for more information on dealing with vulnerabilities. Customizing generated images
documentation/ref-manual/features.rst +1 -1
@@ -333,7 +333,7 @@ The image features available for all images are: - *read-only-rootfs:* Creates an image whose root filesystem is read-only. See the - ":ref:`dev-manual/read-only-rootfs:creating a read-only root filesystem`" + ":ref:`security-manual/read-only-rootfs:creating a read-only root filesystem`" section in the Yocto Project Development Tasks Manual for more information.
documentation/ref-manual/variables.rst +2 -2
@@ -2070,7 +2070,7 @@ system and gives an overview of their function and contents. It has the format "reason: description" and the description is optional. The Reason is mapped to the final CVE state by mapping via - :term:`CVE_CHECK_STATUSMAP`. See :ref:`dev-manual/vulnerabilities:fixing vulnerabilities in recipes` + :term:`CVE_CHECK_STATUSMAP`. See :ref:`security-manual/vulnerabilities:fixing vulnerabilities in recipes` for details. :term:`CVE_STATUS_GROUPS`
@@ -2919,7 +2919,7 @@ system and gives an overview of their function and contents. useful if you want to develop against the libraries in the image. - "read-only-rootfs" --- creates an image whose root filesystem is read-only. See the - ":ref:`dev-manual/read-only-rootfs:creating a read-only root filesystem`" + ":ref:`security-manual/read-only-rootfs:creating a read-only root filesystem`" section in the Yocto Project Development Tasks Manual for more information - "tools-debug" --- adds debugging tools such as gdb and strace.
documentation/security-manual/index.rst +3 -0
@@ -11,6 +11,9 @@ Yocto Project Security Manual :numbered: intro + securing-images + vulnerabilities + read-only-rootfs .. include:: /boilerplate.rst
documentation/security-manual/read-only-rootfs.rst renamed from documentation/dev-manual/read-only-rootfs.rst +0 -0
documentation/security-manual/securing-images.rst renamed from documentation/dev-manual/securing-images.rst +2 -2
@@ -64,7 +64,7 @@ more secure: especially applies when your device is network-enabled. - Regularly scan and apply fixes for CVE security issues affecting - all software components in the product, see ":ref:`dev-manual/vulnerabilities:checking for vulnerabilities`". + all software components in the product, see ":ref:`security-manual/vulnerabilities:checking for vulnerabilities`". - Regularly update your version of Poky and OE-Core from their upstream developers, e.g. to apply updates and security fixes from stable
@@ -72,7 +72,7 @@ more secure: - Ensure you remove or disable debugging functionality before producing the final image. For information on how to do this, see the - ":ref:`dev-manual/securing-images:considerations specific to the openembedded build system`" + ":ref:`security-manual/securing-images:considerations specific to the openembedded build system`" section. - Ensure you have no network services listening that are not needed.
documentation/security-manual/vulnerabilities.rst renamed from documentation/dev-manual/vulnerabilities.rst +0 -0
Signature · 1 line
2.52.0
PATCH 3/3 security-manual/securing-images.rst: remove old links
In reply to Antonin GodardRemove links to the start of the securing-images section, as these are old now and not really related to the Yocto Project.
--- documentation/security-manual/securing-images.rst | 16 ---------------- 1 file changed, 16 deletions(-)
documentation/security-manual/securing-images.rst +0 -16
@@ -3,22 +3,6 @@ Making Images More Secure ************************* -Security is of increasing concern for embedded devices. Consider the -issues and problems discussed in just this sampling of work found across -the Internet: - -- *"*\ `Security Risks of Embedded - Systems <https://www.schneier.com/blog/archives/2014/01/security_risks_9.html>`__\ *"* - by Bruce Schneier - -- *"*\ `Internet Census - 2012 <http://census2012.sourceforge.net/paper.html>`__\ *"* by Carna - Botnet - -- *"*\ `Security Issues for Embedded - Devices <https://elinux.org/images/6/6f/Security-issues.pdf>`__\ *"* - by Jake Edge - When securing your image is of concern, there are steps, tools, and variables that you can consider to help you reach the security goals you need for your particular device. Not all situations are identical when
Signature · 1 line
2.52.0
Antonin Godard
AppliedQuoted 8 lines · Antonin Godard
As stated in the first patch, this section of the documentation can be used to collect best practices with regards to security and the Yocto Project.
Having a dedicated section also helps putting security to the front page of the documentation.
[...]
Applied, thanks!
[1/3] Add a security manual
commit: 3dc9307e429a0eca40b5e49dacffd04bff99222d
[2/3] Move security related manuals to the security manual
commit: 38a324d2d3e171c26eeb2120383e3a04d70a9c99
[3/3] security-manual/securing-images.rst: remove old links
commit: 68851e0256fade849feece3a359a5d4892ab4828Best regards,