blob: d365ec11b8aa7c29b20714a1d6de3cff3dc07d53 [file] [log] [blame]
Andrew Geisslerdc9d6142023-05-19 09:38:37 -05001From 4b1de197ee0dd259cc05d5faf7fd38b580d841d2 Mon Sep 17 00:00:00 2001
2From: Armin Kuster <akuster808@gmail.com>
3Date: Tue, 2 May 2023 16:22:13 -0400
4Subject: [PATCH] osdetection: add OpenEmbedded and Poky
5
6Signed-off-by: Armin Kuster <akuster@mvista.com>
7
8Upstream-Status: Pending
9https://github.com/CISOfy/lynis/pull/1390
10
11Signed-off-by: Armin Kuster <akuster808@gmail.com>
12
13---
14 include/osdetection | 14 ++++++++++++++
15 1 file changed, 14 insertions(+)
16
17diff --git a/include/osdetection b/include/osdetection
18index 989b1b3..e5974e5 100644
19--- a/include/osdetection
20+++ b/include/osdetection
21@@ -308,6 +308,12 @@
22 OS_REDHAT_OR_CLONE=1
23 OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
24 ;;
25+ "nodistro")
26+ LINUX_VERSION="openembedded"
27+ OS_NAME="OpenEmbedded"
28+ OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
29+ OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
30+ ;;
31 "opensuse-tumbleweed")
32 LINUX_VERSION="openSUSE Tumbleweed"
33 # It's rolling release but has a snapshot version (the date of the snapshot)
34@@ -330,6 +336,14 @@
35 OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
36 OS_VERSION_FULL=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
37 ;;
38+ "poky")
39+ LINUX_VERSION="Poky"
40+ OS_NAME="openembedded"
41+ LINUX_VERSION_LIKE="openembedded"
42+ OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
43+ OS_VERSION_FULL=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
44+
45+ ;;
46 "pop")
47 LINUX_VERSION="Pop!_OS"
48 LINUX_VERSION_LIKE="Ubuntu"
49--
502.25.1
51