summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2024-04-17 13:12:39 +0800
committerArmin Kuster <akuster808@gmail.com>2024-04-22 07:51:05 -0400
commit93239b90acf93765aa5b4a7dee06d77db44b6476 (patch)
treecd7922fff47b709e0752429824a3c0392925ab7c
parentfb28801eeeef53cb6cc0096d1938a93bea323597 (diff)
downloadmeta-security-93239b90acf93765aa5b4a7dee06d77db44b6476.tar.gz
lynis: upgrade 3.0.9 -> 3.1.1
0001-osdetection-add-OpenEmbedded-and-Poky.patch removed since it's included in 3.1.1. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--recipes-compliance/lynis/files/0001-osdetection-add-OpenEmbedded-and-Poky.patch51
-rw-r--r--recipes-compliance/lynis/lynis_3.1.1.bb (renamed from recipes-compliance/lynis/lynis_3.0.9.bb)6
2 files changed, 2 insertions, 55 deletions
diff --git a/recipes-compliance/lynis/files/0001-osdetection-add-OpenEmbedded-and-Poky.patch b/recipes-compliance/lynis/files/0001-osdetection-add-OpenEmbedded-and-Poky.patch
deleted file mode 100644
index d365ec1..0000000
--- a/recipes-compliance/lynis/files/0001-osdetection-add-OpenEmbedded-and-Poky.patch
+++ /dev/null
@@ -1,51 +0,0 @@
1From 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
diff --git a/recipes-compliance/lynis/lynis_3.0.9.bb b/recipes-compliance/lynis/lynis_3.1.1.bb
index b8b97a5..b69f4df 100644
--- a/recipes-compliance/lynis/lynis_3.0.9.bb
+++ b/recipes-compliance/lynis/lynis_3.1.1.bb
@@ -6,11 +6,9 @@ HOMEDIR = "https://cisofy.com/"
6LICENSE = "GPL-3.0-only" 6LICENSE = "GPL-3.0-only"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=3edd6782854304fd11da4975ab9799c1" 7LIC_FILES_CHKSUM = "file://LICENSE;md5=3edd6782854304fd11da4975ab9799c1"
8 8
9SRC_URI = "https://downloads.cisofy.com/lynis/${BPN}-${PV}.tar.gz \ 9SRC_URI = "https://downloads.cisofy.com/lynis/${BPN}-${PV}.tar.gz"
10 file://0001-osdetection-add-OpenEmbedded-and-Poky.patch \
11 "
12 10
13SRC_URI[sha256sum] = "f394df7d20391fb76e975ae88f3eba1da05ac9c4945e2c7f709326e185e17025" 11SRC_URI[sha256sum] = "d72f4ee7325816bb8dbfcf31eb104207b9fe58a2493c2a875373746a71284cc3"
14 12
15#UPSTREAM_CHECK = "https://downloads.cisofy.com/lynis" 13#UPSTREAM_CHECK = "https://downloads.cisofy.com/lynis"
16 14