Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 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/" |
Patrick Williams | de0582f | 2022-04-08 10:23:27 -0500 | [diff] [blame] | 6 | LICENSE = "GPL-2.0-only" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 7 | |
| 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=5105ead24b08a32954f34cbaa7112432" |
| 9 | |
| 10 | DEPENDS = "virtual/kernel elfutils" |
| 11 | |
Patrick Williams | de0582f | 2022-04-08 10:23:27 -0500 | [diff] [blame] | 12 | SRC_URI = "git://github.com/lkrg-org/lkrg.git;protocol=https;branch=main \ |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 13 | file://makefile_cleanup.patch \ |
| 14 | " |
| 15 | |
| 16 | SRCREV = "c578e9f786299b67ffd62057b4534b0bf4fb7ece" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 17 | |
Patrick Williams | de0582f | 2022-04-08 10:23:27 -0500 | [diff] [blame] | 18 | S = "${WORKDIR}/git" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 19 | |
| 20 | inherit module kernel-module-split |
| 21 | |
| 22 | MAKE_TARGETS = "modules" |
| 23 | |
| 24 | MODULE_NAME = "p_lkrg" |
| 25 | |
| 26 | module_do_install() { |
| 27 | install -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME} |
| 28 | install -m 0644 ${MODULE_NAME}.ko \ |
| 29 | ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME}/${MODULE_NAME}.ko |
| 30 | } |
| 31 | |
| 32 | RPROVIDES:${PN} += "kernel-module-lkrg" |
| 33 | |
| 34 | COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux" |