Package Details: lkrg-dkms 0.9.9-1

Git Clone URL: https://aur.archlinux.org/lkrg-dkms.git (read-only, click to copy)
Package Base: lkrg-dkms
Description: Linux Kernel Runtime Guard (DKMS)
Upstream URL: https://lkrg.org/
Licenses: GPL-2.0-only
Submitter: rgacogne
Maintainer: rgacogne
Last Packager: rgacogne
Votes: 13
Popularity: 1.00
First Submitted: 2020-03-16 16:39 (UTC)
Last Updated: 2024-11-03 09:23 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

dubster commented on 2023-12-05 22:07 (UTC)

Until the package is fixed, anyone wanting to use the kernel module + systemd service should execute something like the following after installing this package.

# Add execution permissions to the bundled installation scripts
sudo chmod +x /usr/src/lkrg-0.9.7/scripts/bootup/lkrg-bootup.sh
sudo chmod +x /usr/src/lkrg-0.9.7/scripts/bootup/systemd/lkrg-systemd.sh

# Invoke said installation script, which installs the systemd service and sysctl file
sudo /usr/src/lkrg-0.9.7/scripts/bootup/bootup/lkrg-bootup.sh

You should see something like the following in terms of output:

 [*] Executing LKRG's bootup installation script
  [+] Systemd detected
       Installing lkrg.service file under /etc/systemd/system directory
       To start lkrg.service please use: systemctl start lkrg
       To enable lkrg.service on bootup please use: systemctl enable lkrg.service
       Installing 01-lkrg.conf file under /etc/sysctl.d directory
  [+] Done!

Then, to start the service and enable it on boot, run:

sudo systemctl enable --now lkrg.service

dubster commented on 2023-12-03 19:11 (UTC) (edited on 2023-12-03 19:12 (UTC) by dubster)

This package doesn't actually do much right now - it only installs the lkrg module, but the PKGBUILD doesn't install the systemd service, nor the sysctl conf file.

See:

Service: https://github.com/lkrg-org/lkrg/blob/main/scripts/bootup/systemd/lkrg.service

sysctl conf: https://github.com/lkrg-org/lkrg/blob/main/scripts/bootup/lkrg.conf

At the very least, we need the systemd service to be enabled so that the lkrg module actually loads properly on boot.

The way things are now, we just build and install the module. It never actually loads on reboot though.

MartinX3 commented on 2023-07-12 08:25 (UTC) (edited on 2023-07-12 08:25 (UTC) by MartinX3)

Thank you very much.
Sad that they don't care much about new releases. Maybe we get a new release next year with commit https://github.com/lkrg-org/lkrg/commit/3d8e52e90b7fce48e2e06dadd4a253defef7ff8a.

I dislike -git packages because they need to get rebuild on every commit.
So I prefer releases. :)

rgacogne commented on 2023-07-12 07:56 (UTC)

Hi MartinX3! The latest release of lkrg indeed does not support kernels > 6.3, and there has not been a new release yet. I suggest switching to lkrg-dkms-git in the meantime, which does work properly with newer kernels.

MartinX3 commented on 2023-07-12 07:34 (UTC)

Error with kernel 6.4

$ cat /var/lib/dkms/lkrg/0.9.6/build/make.log
DKMS make.log for lkrg-0.9.6 for kernel 6.4.3-zen1-1-zen (x86_64)
Mi 12. Jul 09:29:33 CEST 2023
make -C /lib/modules/6.4.3-zen1-1-zen/build M=/var/lib/dkms/lkrg/0.9.6/build modules
  CC [M]  /var/lib/dkms/lkrg/0.9.6/build/src/modules/ksyms/p_resolve_ksym.o
  CC [M]  /var/lib/dkms/lkrg/0.9.6/build/src/modules/hashing/p_lkrg_fast_hash.o
  CC [M]  /var/lib/dkms/lkrg/0.9.6/build/src/modules/comm_channel/p_comm_channel.o
  CC [M]  /var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/p_integrity_timer.o
  CC [M]  /var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/verify_kprobes/p_verify_kprobes.o
  CC [M]  /var/lib/dkms/lkrg/0.9.6/build/src/modules/kmod/p_kmod.o
  CC [M]  /var/lib/dkms/lkrg/0.9.6/build/src/modules/database/CPU.o
  CC [M]  /var/lib/dkms/lkrg/0.9.6/build/src/modules/database/arch/x86/p_x86_metadata.o
In Datei, eingebunden von /var/lib/dkms/lkrg/0.9.6/build/src/modules/hashing/../../p_lkrg_main.h:405,
                 von /var/lib/dkms/lkrg/0.9.6/build/src/modules/hashing/p_lkrg_fast_hash.c:22:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/hashing/../../modules/wrap/p_struct_wrap.h: In Funktion »p_module_core«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/hashing/../../modules/wrap/p_struct_wrap.h:106:16: Fehler: »struct module« hat kein Element namens »core_layout«
  106 |    return p_mod->core_layout.base;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/hashing/../../modules/wrap/p_struct_wrap.h: In Funktion »p_core_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/hashing/../../modules/wrap/p_struct_wrap.h:110:16: Fehler: »struct module« hat kein Element namens »core_layout«
  110 |    return p_mod->core_layout.size;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/hashing/../../modules/wrap/p_struct_wrap.h: In Funktion »p_core_text_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/hashing/../../modules/wrap/p_struct_wrap.h:114:16: Fehler: »struct module« hat kein Element namens »core_layout«
  114 |    return p_mod->core_layout.text_size;
      |                ^~
In Datei, eingebunden von /var/lib/dkms/lkrg/0.9.6/build/src/modules/ksyms/../../p_lkrg_main.h:405,
                 von /var/lib/dkms/lkrg/0.9.6/build/src/modules/ksyms/p_resolve_ksym.c:19:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/ksyms/../../modules/wrap/p_struct_wrap.h: In Funktion »p_module_core«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/hashing/../../modules/wrap/p_struct_wrap.h: In Funktion »p_init_text_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/ksyms/../../modules/wrap/p_struct_wrap.h:106:16: Fehler: »struct module« hat kein Element namens »core_layout«
  106 |    return p_mod->core_layout.base;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/hashing/../../modules/wrap/p_struct_wrap.h:118:16: Fehler: »struct module« hat kein Element namens »init_layout«
  118 |    return p_mod->init_layout.text_size;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/ksyms/../../modules/wrap/p_struct_wrap.h: In Funktion »p_core_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/ksyms/../../modules/wrap/p_struct_wrap.h:110:16: Fehler: »struct module« hat kein Element namens »core_layout«
  110 |    return p_mod->core_layout.size;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/ksyms/../../modules/wrap/p_struct_wrap.h: In Funktion »p_core_text_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/ksyms/../../modules/wrap/p_struct_wrap.h:114:16: Fehler: »struct module« hat kein Element namens »core_layout«
  114 |    return p_mod->core_layout.text_size;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/ksyms/../../modules/wrap/p_struct_wrap.h: In Funktion »p_init_text_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/ksyms/../../modules/wrap/p_struct_wrap.h:118:16: Fehler: »struct module« hat kein Element namens »init_layout«
  118 |    return p_mod->init_layout.text_size;
      |                ^~
In Datei, eingebunden von /var/lib/dkms/lkrg/0.9.6/build/src/modules/comm_channel/../../p_lkrg_main.h:405,
                 von /var/lib/dkms/lkrg/0.9.6/build/src/modules/comm_channel/p_comm_channel.c:18:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/comm_channel/../../modules/wrap/p_struct_wrap.h: In Funktion »p_module_core«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/comm_channel/../../modules/wrap/p_struct_wrap.h:106:16: Fehler: »struct module« hat kein Element namens »core_layout«
  106 |    return p_mod->core_layout.base;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/comm_channel/../../modules/wrap/p_struct_wrap.h: In Funktion »p_core_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/comm_channel/../../modules/wrap/p_struct_wrap.h:110:16: Fehler: »struct module« hat kein Element namens »core_layout«
  110 |    return p_mod->core_layout.size;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/comm_channel/../../modules/wrap/p_struct_wrap.h: In Funktion »p_core_text_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/comm_channel/../../modules/wrap/p_struct_wrap.h:114:16: Fehler: »struct module« hat kein Element namens »core_layout«
  114 |    return p_mod->core_layout.text_size;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/comm_channel/../../modules/wrap/p_struct_wrap.h: In Funktion »p_init_text_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/comm_channel/../../modules/wrap/p_struct_wrap.h:118:16: Fehler: »struct module« hat kein Element namens »init_layout«
  118 |    return p_mod->init_layout.text_size;
      |                ^~
In Datei, eingebunden von /var/lib/dkms/lkrg/0.9.6/build/src/modules/kmod/../../p_lkrg_main.h:405,
                 von /var/lib/dkms/lkrg/0.9.6/build/src/modules/kmod/p_kmod.c:22:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/kmod/../../modules/wrap/p_struct_wrap.h: In Funktion »p_module_core«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/kmod/../../modules/wrap/p_struct_wrap.h:106:16: Fehler: »struct module« hat kein Element namens »core_layout«
  106 |    return p_mod->core_layout.base;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/kmod/../../modules/wrap/p_struct_wrap.h: In Funktion »p_core_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/kmod/../../modules/wrap/p_struct_wrap.h:110:16: Fehler: »struct module« hat kein Element namens »core_layout«
  110 |    return p_mod->core_layout.size;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/kmod/../../modules/wrap/p_struct_wrap.h: In Funktion »p_core_text_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/kmod/../../modules/wrap/p_struct_wrap.h:114:16: Fehler: »struct module« hat kein Element namens »core_layout«
  114 |    return p_mod->core_layout.text_size;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/kmod/../../modules/wrap/p_struct_wrap.h: In Funktion »p_init_text_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/kmod/../../modules/wrap/p_struct_wrap.h:118:16: Fehler: »struct module« hat kein Element namens »init_layout«
  118 |    return p_mod->init_layout.text_size;
      |                ^~
In Datei, eingebunden von /var/lib/dkms/lkrg/0.9.6/build/src/modules/database/arch/x86/../../../../p_lkrg_main.h:405,
                 von /var/lib/dkms/lkrg/0.9.6/build/src/modules/database/arch/x86/p_x86_metadata.c:29:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/database/arch/x86/../../../../modules/wrap/p_struct_wrap.h: In Funktion »p_module_core«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/database/arch/x86/../../../../modules/wrap/p_struct_wrap.h:106:16: Fehler: »struct module« hat kein Element namens »core_layout«
  106 |    return p_mod->core_layout.base;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/database/arch/x86/../../../../modules/wrap/p_struct_wrap.h: In Funktion »p_core_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/database/arch/x86/../../../../modules/wrap/p_struct_wrap.h:110:16: Fehler: »struct module« hat kein Element namens »core_layout«
  110 |    return p_mod->core_layout.size;
      |                ^~
In Datei, eingebunden von /var/lib/dkms/lkrg/0.9.6/build/src/modules/database/../../p_lkrg_main.h:405,
                 von /var/lib/dkms/lkrg/0.9.6/build/src/modules/database/CPU.c:44:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/database/../../modules/wrap/p_struct_wrap.h: In Funktion »p_module_core«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/database/../../modules/wrap/p_struct_wrap.h:106:16: Fehler: »struct module« hat kein Element namens »core_layout«
  106 |    return p_mod->core_layout.base;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/database/../../modules/wrap/p_struct_wrap.h: In Funktion »p_core_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/database/arch/x86/../../../../modules/wrap/p_struct_wrap.h: In Funktion »p_core_text_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/database/../../modules/wrap/p_struct_wrap.h:110:16: Fehler: »struct module« hat kein Element namens »core_layout«
  110 |    return p_mod->core_layout.size;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/database/arch/x86/../../../../modules/wrap/p_struct_wrap.h:114:16: Fehler: »struct module« hat kein Element namens »core_layout«
  114 |    return p_mod->core_layout.text_size;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/database/../../modules/wrap/p_struct_wrap.h: In Funktion »p_core_text_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/database/../../modules/wrap/p_struct_wrap.h:114:16: Fehler: »struct module« hat kein Element namens »core_layout«
  114 |    return p_mod->core_layout.text_size;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/database/arch/x86/../../../../modules/wrap/p_struct_wrap.h: In Funktion »p_init_text_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/database/arch/x86/../../../../modules/wrap/p_struct_wrap.h:118:16: Fehler: »struct module« hat kein Element namens »init_layout«
  118 |    return p_mod->init_layout.text_size;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/database/../../modules/wrap/p_struct_wrap.h: In Funktion »p_init_text_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/database/../../modules/wrap/p_struct_wrap.h:118:16: Fehler: »struct module« hat kein Element namens »init_layout«
  118 |    return p_mod->init_layout.text_size;
      |                ^~
In Datei, eingebunden von /var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/../../p_lkrg_main.h:405,
                 von /var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/p_integrity_timer.c:18:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/../../modules/wrap/p_struct_wrap.h: In Funktion »p_module_core«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/../../modules/wrap/p_struct_wrap.h:106:16: Fehler: »struct module« hat kein Element namens »core_layout«
  106 |    return p_mod->core_layout.base;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/../../modules/wrap/p_struct_wrap.h: In Funktion »p_core_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/../../modules/wrap/p_struct_wrap.h:110:16: Fehler: »struct module« hat kein Element namens »core_layout«
  110 |    return p_mod->core_layout.size;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/../../modules/wrap/p_struct_wrap.h: In Funktion »p_core_text_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/../../modules/wrap/p_struct_wrap.h:114:16: Fehler: »struct module« hat kein Element namens »core_layout«
  114 |    return p_mod->core_layout.text_size;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/../../modules/wrap/p_struct_wrap.h: In Funktion »p_init_text_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/../../modules/wrap/p_struct_wrap.h:118:16: Fehler: »struct module« hat kein Element namens »init_layout«
  118 |    return p_mod->init_layout.text_size;
      |                ^~
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/lkrg/0.9.6/build/src/modules/hashing/p_lkrg_fast_hash.o] Fehler 1
make[2]: *** Es wird auf noch nicht beendete Prozesse gewartet …
In Datei, eingebunden von /var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/verify_kprobes/../../../p_lkrg_main.h:405,
                 von /var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/verify_kprobes/p_verify_kprobes.c:18:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/verify_kprobes/../../../modules/wrap/p_struct_wrap.h: In Funktion »p_module_core«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/verify_kprobes/../../../modules/wrap/p_struct_wrap.h:106:16: Fehler: »struct module« hat kein Element namens »core_layout«
  106 |    return p_mod->core_layout.base;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/verify_kprobes/../../../modules/wrap/p_struct_wrap.h: In Funktion »p_core_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/verify_kprobes/../../../modules/wrap/p_struct_wrap.h:110:16: Fehler: »struct module« hat kein Element namens »core_layout«
  110 |    return p_mod->core_layout.size;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/verify_kprobes/../../../modules/wrap/p_struct_wrap.h: In Funktion »p_core_text_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/verify_kprobes/../../../modules/wrap/p_struct_wrap.h:114:16: Fehler: »struct module« hat kein Element namens »core_layout«
  114 |    return p_mod->core_layout.text_size;
      |                ^~
/var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/verify_kprobes/../../../modules/wrap/p_struct_wrap.h: In Funktion »p_init_text_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/verify_kprobes/../../../modules/wrap/p_struct_wrap.h:118:16: Fehler: »struct module« hat kein Element namens »init_layout«
  118 |    return p_mod->init_layout.text_size;
      |                ^~
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/lkrg/0.9.6/build/src/modules/ksyms/p_resolve_ksym.o] Fehler 1
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/lkrg/0.9.6/build/src/modules/database/CPU.o] Fehler 1
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/verify_kprobes/p_verify_kprobes.o] Fehler 1
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/lkrg/0.9.6/build/src/modules/database/arch/x86/p_x86_metadata.o] Fehler 1
/var/lib/dkms/lkrg/0.9.6/build/src/modules/kmod/../../modules/wrap/p_struct_wrap.h: In Funktion »p_module_core«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/kmod/../../modules/wrap/p_struct_wrap.h:107:1: Fehler: Kontrollfluss erreicht Ende von Nicht-void-Funktion [-Werror=return-type]
  107 | }
      | ^
/var/lib/dkms/lkrg/0.9.6/build/src/modules/kmod/../../modules/wrap/p_struct_wrap.h: In Funktion »p_core_text_size«:
/var/lib/dkms/lkrg/0.9.6/build/src/modules/kmod/../../modules/wrap/p_struct_wrap.h:115:1: Fehler: Kontrollfluss erreicht Ende von Nicht-void-Funktion [-Werror=return-type]
  115 | }
      | ^
cc1: Einige Warnungen werden als Fehler behandelt
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/lkrg/0.9.6/build/src/modules/kmod/p_kmod.o] Fehler 1
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/lkrg/0.9.6/build/src/modules/comm_channel/p_comm_channel.o] Fehler 1
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/lkrg/0.9.6/build/src/modules/integrity_timer/p_integrity_timer.o] Fehler 1
make[1]: *** [Makefile:2024: /var/lib/dkms/lkrg/0.9.6/build] Fehler 2
make: *** [Makefile:100: all] Fehler 2

afader commented on 2022-07-24 06:47 (UTC)

the p_lkrg module is now called lkrg

itoffshore commented on 2022-07-11 07:35 (UTC)

@BlitDev - see https://unix.stackexchange.com/a/364920

BlitDev commented on 2022-07-11 04:05 (UTC)

Build in clean chroot error:

==> Verifying source file signatures with gpg...
    lkrg-0.9.3.tar.gz ... FAILED (unknown public key 05C027FD4BDC136E)
==> ERROR: One or more PGP signatures could not be verified!
==> ERROR: Could not download sources.

itoffshore commented on 2021-11-06 20:19 (UTC) (edited on 2021-11-06 20:22 (UTC) by itoffshore)

using lkrg-dkms-git now builds successfully on 5.14 kernels thanks to this commit on master

which gave me:

filename:       /lib/modules/5.14.16-hardened1-1-hardened/kernel/drivers/misc/p_lkrg.ko.zst

For anyone interested in signed Out of Tree kernel modules - I made Arch Sign Modules - I use it to sign nvidia / zfs / lkrg modules.

rgacogne commented on 2021-09-10 08:27 (UTC)

I'm afraid 0.9.1 doesn't build with 5.14+, and that's the more recent version of LKRG. You can switch to lkrg-dkms-git which uses the git repository and thus will get support for 5.14 more quickly, but as far as I know it doesn't work with 5.14 yet either.