diff options
Diffstat (limited to 'recipes-kernel/lkrg/lkrg-module_0.9.4.bb')
-rw-r--r-- | recipes-kernel/lkrg/lkrg-module_0.9.4.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/recipes-kernel/lkrg/lkrg-module_0.9.4.bb b/recipes-kernel/lkrg/lkrg-module_0.9.4.bb new file mode 100644 index 0000000..fa46cb6 --- /dev/null +++ b/recipes-kernel/lkrg/lkrg-module_0.9.4.bb | |||
@@ -0,0 +1,38 @@ | |||
1 | SUMMARY = "Linux Kernel Runtime Guard" | ||
2 | DESCRIPTION="LKRG performs runtime integrity checking of the Linux \ | ||
3 | kernel and detection of security vulnerability exploits against the kernel." | ||
4 | SECTION = "security" | ||
5 | HOMEPAGE = "https://www.openwall.com/lkrg/" | ||
6 | LICENSE = "GPL-2.0-only" | ||
7 | |||
8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3f3e5dd56319d33a1944d635c1c86c6f" | ||
9 | |||
10 | DEPENDS = "virtual/kernel elfutils" | ||
11 | |||
12 | SRC_URI = "git://github.com/lkrg-org/lkrg.git;protocol=https;branch=main" | ||
13 | |||
14 | SRCREV = "c58cb52145b8e8ccc6bd19079f5c835933281cdc" | ||
15 | |||
16 | S = "${WORKDIR}/git" | ||
17 | |||
18 | inherit module kernel-module-split | ||
19 | |||
20 | MAKE_TARGETS = "modules" | ||
21 | |||
22 | MODULE_NAME = "lkrg" | ||
23 | |||
24 | do_configure:append () { | ||
25 | sed -i -e 's/^all/modules/' ${S}/Makefile | ||
26 | sed -i -e 's/^install/modules_install/' ${S}/Makefile | ||
27 | sed -i -e 's/KERNEL/KERNEL_SRC/g' ${S}/Makefile | ||
28 | } | ||
29 | |||
30 | module_do_install() { | ||
31 | install -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME} | ||
32 | install -m 0644 ${MODULE_NAME}.ko \ | ||
33 | ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME}/${MODULE_NAME}.ko | ||
34 | } | ||
35 | |||
36 | RPROVIDES:${PN} += "kernel-module-lkrg" | ||
37 | |||
38 | COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux" | ||