Andrew Geissler | dc9d614 | 2023-05-19 09:38:37 -0500 | [diff] [blame] | 1 | From 4b1de197ee0dd259cc05d5faf7fd38b580d841d2 Mon Sep 17 00:00:00 2001 |
| 2 | From: Armin Kuster <akuster808@gmail.com> |
| 3 | Date: Tue, 2 May 2023 16:22:13 -0400 |
| 4 | Subject: [PATCH] osdetection: add OpenEmbedded and Poky |
| 5 | |
| 6 | Signed-off-by: Armin Kuster <akuster@mvista.com> |
| 7 | |
| 8 | Upstream-Status: Pending |
| 9 | https://github.com/CISOfy/lynis/pull/1390 |
| 10 | |
| 11 | Signed-off-by: Armin Kuster <akuster808@gmail.com> |
| 12 | |
| 13 | --- |
| 14 | include/osdetection | 14 ++++++++++++++ |
| 15 | 1 file changed, 14 insertions(+) |
| 16 | |
| 17 | diff --git a/include/osdetection b/include/osdetection |
| 18 | index 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 | -- |
| 50 | 2.25.1 |
| 51 | |