Skip to contentSkip to conversation

base-files: add usage warning to motd

PATCH Superseded [email protected] 1 participant 2 messages Feb 7, 2024

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 base-files: add usage warning to motd

From: Ross Burton <[email protected]>

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.

---
 meta-poky/recipes-core/base-files/base-files_%.bbappend | 1 +
 meta-poky/recipes-core/base-files/files/poky/motd       | 5 +++++
 2 files changed, 6 insertions(+)
 create mode 100644 meta-poky/recipes-core/base-files/base-files_%.bbappend
 create mode 100644 meta-poky/recipes-core/base-files/files/poky/motd
meta-poky/recipes-core/base-files/base-files_%.bbappend new file +1 -0
new file mode 100644
index 00000000000..8802adbb46b
@@ -0,0 +1 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
meta-poky/recipes-core/base-files/files/poky/motd new file +5 -0
new file mode 100644
index 00000000000..bffb7fadf1d
@@ -0,0 +1,5 @@
+
+WARNING: Poky is a reference Yocto Project distribution that should be used for
+testing and development purposes only. It is recommended that you create your
+own distribution.
+
Signature · 1 line
2.34.1
#1 lore raw

Turns out I forgot to save the motd in my editor, so v2 incoming.

Ross

Quoted 52 lines · Ross Burton via lists.yoctoproject.org

From: Ross Burton <[email protected]>

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.

---
meta-poky/recipes-core/base-files/base-files_%.bbappend | 1 +
meta-poky/recipes-core/base-files/files/poky/motd | 5 +++++

2 files changed, 6 insertions(+)

create mode 100644 meta-poky/recipes-core/base-files/base-files_%.bbappend create mode 100644 meta-poky/recipes-core/base-files/files/poky/motd

meta-poky/recipes-core/base-files/base-files_%.bbappend new file +1 -0
new file mode 100644
index 00000000000..8802adbb46b
@@ -0,0 +1 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
meta-poky/recipes-core/base-files/files/poky/motd new file +5 -0
new file mode 100644
index 00000000000..bffb7fadf1d
@@ -0,0 +1,5 @@
+
+WARNING: Poky is a reference Yocto Project distribution that should be used for
+testing and development purposes only. It is recommended that you create your
+own distribution.
+
Signature · 10 lines
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13250): https://lists.yoctoproject.org/g/poky/message/13250
Mute This Topic: https://lists.yoctoproject.org/mt/104219418/6875888
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-