From 7df64c5c2e2d71c412493b84eaeee0e976cf900f Mon Sep 17 00:00:00 2001 From: Armin Kuster Date: Sun, 30 Jan 2022 12:09:53 -0800 Subject: lkrg-module: update to 0.9.2 see https://github.com/lkrg-org/lkrg Support new stable and mainline kernels 5.14 to at least 5.16-rc* Support new longterm kernels 5.4.118+, 4.19.191+, 4.14.233+ update SRC_URI as location changed. refresh patch. Signed-off-by: Armin Kuster --- recipes-kernel/lkrg/files/makefile_cleanup.patch | 8 +++--- recipes-kernel/lkrg/lkrg-module_0.9.1.bb | 33 ------------------------ recipes-kernel/lkrg/lkrg-module_0.9.2.bb | 33 ++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 37 deletions(-) delete mode 100644 recipes-kernel/lkrg/lkrg-module_0.9.1.bb create mode 100644 recipes-kernel/lkrg/lkrg-module_0.9.2.bb diff --git a/recipes-kernel/lkrg/files/makefile_cleanup.patch b/recipes-kernel/lkrg/files/makefile_cleanup.patch index 106dc3f..a4db2d9 100644 --- a/recipes-kernel/lkrg/files/makefile_cleanup.patch +++ b/recipes-kernel/lkrg/files/makefile_cleanup.patch @@ -4,10 +4,10 @@ This needs more work. Its my starting point. Signed-off-by: Armin Kuster -Index: lkrg-0.9.0/Makefile +Index: lkrg-0.9.2/Makefile =================================================================== ---- lkrg-0.9.0.orig/Makefile -+++ lkrg-0.9.0/Makefile +--- lkrg-0.9.2.orig/Makefile ++++ lkrg-0.9.2/Makefile @@ -4,28 +4,10 @@ # Author: # - Adam 'pi3' Zabrocki (http://pi3.com.pl) @@ -39,7 +39,7 @@ Index: lkrg-0.9.0/Makefile src/modules/hashing/p_lkrg_fast_hash.o \ src/modules/comm_channel/p_comm_channel.o \ src/modules/integrity_timer/p_integrity_timer.o \ -@@ -91,23 +73,14 @@ $(TARGET)-objs += src/modules/ksyms/p_re +@@ -92,23 +74,14 @@ $(TARGET)-objs += src/modules/ksyms/p_re src/p_lkrg_main.o diff --git a/recipes-kernel/lkrg/lkrg-module_0.9.1.bb b/recipes-kernel/lkrg/lkrg-module_0.9.1.bb deleted file mode 100644 index 782c6e3..0000000 --- a/recipes-kernel/lkrg/lkrg-module_0.9.1.bb +++ /dev/null @@ -1,33 +0,0 @@ -SUMMARY = "Linux Kernel Runtime Guard" -DESCRIPTION="LKRG performs runtime integrity checking of the Linux \ -kernel and detection of security vulnerability exploits against the kernel." -SECTION = "security" -HOMEPAGE = "https://www.openwall.com/lkrg/" -LICENSE = "GPLv2" - -LIC_FILES_CHKSUM = "file://LICENSE;md5=5105ead24b08a32954f34cbaa7112432" - -DEPENDS = "virtual/kernel elfutils" - -SRC_URI = "https://www.openwall.com/lkrg/lkrg-${PV}.tar.gz \ - file://makefile_cleanup.patch " - -SRC_URI[sha256sum] = "cabbee1addbf3ae23a584203831e4bd1b730d22bfd1b3e44883214f220b3babd" - -S = "${WORKDIR}/lkrg-${PV}" - -inherit module kernel-module-split - -MAKE_TARGETS = "modules" - -MODULE_NAME = "p_lkrg" - -module_do_install() { - install -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME} - install -m 0644 ${MODULE_NAME}.ko \ - ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME}/${MODULE_NAME}.ko -} - -RPROVIDES:${PN} += "kernel-module-lkrg" - -COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux" diff --git a/recipes-kernel/lkrg/lkrg-module_0.9.2.bb b/recipes-kernel/lkrg/lkrg-module_0.9.2.bb new file mode 100644 index 0000000..e055fbe --- /dev/null +++ b/recipes-kernel/lkrg/lkrg-module_0.9.2.bb @@ -0,0 +1,33 @@ +SUMMARY = "Linux Kernel Runtime Guard" +DESCRIPTION="LKRG performs runtime integrity checking of the Linux \ +kernel and detection of security vulnerability exploits against the kernel." +SECTION = "security" +HOMEPAGE = "https://www.openwall.com/lkrg/" +LICENSE = "GPLv2" + +LIC_FILES_CHKSUM = "file://LICENSE;md5=5105ead24b08a32954f34cbaa7112432" + +DEPENDS = "virtual/kernel elfutils" + +SRC_URI = "https://download.openwall.net/pub/projects/lkrg/lkrg-${PV}.tar.gz \ + file://makefile_cleanup.patch " + +SRC_URI[sha256sum] = "c2b501c47089cce3ec3114cef6520b73aa3a098836183186b9bb5e097c99ac27" + +S = "${WORKDIR}/lkrg-${PV}" + +inherit module kernel-module-split + +MAKE_TARGETS = "modules" + +MODULE_NAME = "p_lkrg" + +module_do_install() { + install -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME} + install -m 0644 ${MODULE_NAME}.ko \ + ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME}/${MODULE_NAME}.ko +} + +RPROVIDES:${PN} += "kernel-module-lkrg" + +COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux" -- cgit v1.2.3-54-g00ecf