wiki/docs/packages/lkrg.md

84 lines
3.4 KiB
Markdown
Raw Normal View History

2023-11-16 18:53:40 +00:00
# Extra package: lkrg
2023-11-25 13:08:18 +00:00
## EL9
2023-11-16 18:53:40 +00:00
2024-11-23 04:11:06 +00:00
- Version `0.9.9-1.el9_5.security`
2024-10-23 03:04:08 +00:00
- Based on upstream version `0.9.9`
2023-11-25 13:08:18 +00:00
## EL8
2024-10-23 03:04:08 +00:00
- Version `0.9.9-1.el8_10.security`
- Based on upstream version `0.9.9`
2023-11-16 18:53:40 +00:00
### Package summary
LKRG, or Linux Kernel Runtime Guard, is a kernel module that performs runtime integrity checking of the Linux kernel and detection of security vulnerability exploits against the kernel.
More information is available on the [LKRG homepage](https://lkrg.org) and in the documentation files included in the package.
### Usage in Rocky Linux
2024-11-23 04:11:06 +00:00
Due to EL's kABI stability and the `weak-modules` mechanism, which this package uses, the same binary package of LKRG usually works across different kernel revisions/builds within the same EL minor release (e.g., 9.5). Once there's a new minor release (e.g., 9.5 is upgraded to 9.6), we'll provide a new build of LKRG accordingly.
2023-11-16 18:53:40 +00:00
Installing the package does not automatically start LKRG nor enable it to start on system bootup. To start LKRG please use:
```
systemctl start lkrg
```
To enable LKRG on bootup please use:
```
systemctl enable lkrg
```
### Testing and recovery
2024-11-23 04:11:06 +00:00
Although the current package passed our own testing (on 9.5 and 8.10), we recommend that you only enable LKRG to start on system bootup after you've tested it for a while to ensure its compatibility with your system. If you nevertheless run into a boot time issue with LKRG later, you can disable it with the `nolkrg` kernel command-line option.
2023-11-16 18:53:40 +00:00
2024-02-28 02:10:34 +00:00
### Remote logging
LKRG includes a remote kernel message logging capability.
The corresponding userspace tools are found in the `lkrg-logger` sub-package.
Documentation is also included in there, in `/usr/share/doc/lkrg-logger/LOGGING`.
2023-11-16 18:53:40 +00:00
2024-02-28 02:10:34 +00:00
### Change log
2023-11-25 13:08:18 +00:00
2023-11-16 18:53:40 +00:00
```
2024-10-23 03:04:08 +00:00
* Wed Oct 23 2024 Solar Designer <solar@openwall.com> 0.9.9-1
- Update to 0.9.9
2024-05-22 17:06:18 +00:00
* Wed May 22 2024 Solar Designer <solar@openwall.com> 0.9.8-2
- Pass direct kernel-devel's build path into make
- Drop "BuildRequires: kernel" as we no longer need /lib/modules/*/build
- Add "BuildRequires: systemd" for the _unitdir RPM macro (apparently this was
previously an indirect dependency via the kernel package)
2024-02-28 02:10:34 +00:00
* Tue Feb 27 2024 Solar Designer <solar@openwall.com> 0.9.8-1
- Update to 0.9.8
- Add logger sub-package
- Mark the sysctl configuration file config(noreplace)
- Use "sort -V" to build against the latest installed version of kernel-devel
* Wed Nov 8 2023 Solar Designer <solar@openwall.com> 0.9.7-4
2023-11-16 18:53:40 +00:00
- Add a couple of upstream patches, most notably to fix kINT false positives on
EL 8.8.
* Tue Oct 24 2023 Solar Designer <solar@openwall.com> 0.9.7-3
- Use weak-modules if available so that on RHEL and its rebuilds the same LKRG
package build works across different kABI-compatible kernel revisions/builds
- Drop 32-bit x86 from ExclusiveArch since recent RHEL lacks such kernel-devel
* Thu Sep 14 2023 Solar Designer <solar@openwall.com> 0.9.7-2
- Use kernel build directory corresponding to the kernel-devel package, not to
the currently running kernel
- "BuildRequires: kernel" for the /lib/modules/* directory
- "BuildRequires: elfutils-libelf-devel" to support CONFIG_UNWINDER_ORC=y
* Thu Sep 14 2023 Solar Designer <solar@openwall.com> 0.9.7-1
- Wrote this rough RPM spec file for Red Hat'ish distros, seems to work fine on
RHEL 7, 8, 9 rebuilds, but is only reliable when there's exactly one
kernel-devel package installed at build time and it exactly matches the target
kernel version.
```