summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2024-02-07 16:48:49 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-23 14:31:30 +0000
commita226865c8683398b5f58628ba2ec5aee1ee6c19d (patch)
treec7b846aace0cad864ecdea4e9eb68ae1022d827c
parent4dba026177680fb1c2d7d6cb21dff9ff4d611af3 (diff)
downloadpoky-a226865c8683398b5f58628ba2ec5aee1ee6c19d.tar.gz
base-files: add usage warning to motd
The Poky distro is explicitly a _reference_ distribution for _testing_ and _development_ purposes. It enables most hardware and software features so that they can be tested, but this also means that from a security point of view the attack surface is very large. We encourage anyone using OpenEmbedded for production use to create their own distribution and not use Poky. To encourage this behaviour further, add a warning to /etc/motd when Poky is used so the developer will see it when they log in. (From meta-yocto rev: 2e0cec1e9d97f78ba015da8812fd1888c47debcb) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta-poky/recipes-core/base-files/base-files_%.bbappend1
-rw-r--r--meta-poky/recipes-core/base-files/files/poky/motd5
2 files changed, 6 insertions, 0 deletions
diff --git a/meta-poky/recipes-core/base-files/base-files_%.bbappend b/meta-poky/recipes-core/base-files/base-files_%.bbappend
new file mode 100644
index 0000000000..8802adbb46
--- /dev/null
+++ b/meta-poky/recipes-core/base-files/base-files_%.bbappend
@@ -0,0 +1 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
diff --git a/meta-poky/recipes-core/base-files/files/poky/motd b/meta-poky/recipes-core/base-files/files/poky/motd
new file mode 100644
index 0000000000..0fb6e633f0
--- /dev/null
+++ b/meta-poky/recipes-core/base-files/files/poky/motd
@@ -0,0 +1,5 @@
1
2WARNING: Poky is a reference Yocto Project distribution that should be used for
3testing and development purposes only. It is recommended that you create your
4own distribution for production use.
5