ref-manual: add a note about hard-coded passwords

It seems prudent to point out that hard-coding passwords in the manner
detailed in the example is not a good idea in production. This type of
mistake has unfortunately been made by many device vendors (outside of
the Yocto Project context) leading to security vulnerabilities.

(From yocto-docs rev: 1d07dba9423ae0a841eccb58c297e31b63c3965d)

Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Eggleton
2022-04-21 18:40:35 -07:00
committed by Richard Purdie
parent 11025bed13
commit 30b4b153d6

View File

@@ -576,6 +576,14 @@ Finally, here is an example that sets the root password::
usermod -p '${PASSWD}' root; \
"
.. note::
From a security perspective, hardcoding a default password is not
generally a good idea or even legal in some jurisdictions. It is
recommended that you do not do this if you are building a production
image.
.. _ref-classes-features_check:
``features_check.bbclass``