Package Details: lkrg-dkms 0.9.8-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: GPL2
Submitter: rgacogne
Maintainer: rgacogne
Last Packager: rgacogne
Votes: 11
Popularity: 1.19
First Submitted: 2020-03-16 16:39 (UTC)
Last Updated: 2024-03-01 09:45 (UTC)

Latest Comments

1 2 3 Next › Last »

rgacogne commented on 2023-12-06 19:17 (UTC)

@dubster: You are completely right, it should be fixed now! Many thanks!

dubster commented on 2023-12-06 16:59 (UTC)

Awesome, thanks for getting this updated @rgacogne!

The one thing I'll note is that the systemd service (when installed by a package) might need to be installed in /usr/lib/systemd/system. I believe that /etc/systemd/system is for admin user management, but packages install files into /usr/lib/systemd/system.

You can see an example of this in the mullvad-vpn package: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=mullvad-vpn-cli#n116

MartinX3 commented on 2023-12-06 14:37 (UTC) (edited on 2023-12-06 14:37 (UTC) by MartinX3)

Seems to be related to the zen kernel.
https://github.com/lkrg-org/lkrg/issues/225

rgacogne commented on 2023-12-06 14:36 (UTC)

It works as expected for me on 6.6.4-arch1-1:

● lkrg.service - Linux Kernel Runtime Guard
     Loaded: loaded (/etc/systemd/system/lkrg.service; enabled; preset: disabled)
     Active: active (exited) since Wed 2023-12-06 14:40:24 CET; 55min ago
       Docs: https://lkrg.org
   Main PID: 33300 (code=exited, status=0/SUCCESS)
        CPU: 409ms

systemd[1]: Starting Linux Kernel Runtime Guard...
modprobe[33300]: insmod /lib/modules/6.6.4-arch1-1/updates/dkms/lkrg.ko.zst
systemd[1]: Finished Linux Kernel Runtime Guard.

MartinX3 commented on 2023-12-06 14:33 (UTC)

Service errors out:

Starting Linux Kernel Runtime Guard...
modprobe: ERROR: could not insert 'lkrg': No buffer space available
modprobe[5095]: insmod /lib/modules/6.6.4-zen1-1-zen/updates/dkms/lkrg.ko.zst
lkrg.service: Main process exited, code=exited, status=1/FAILURE
lkrg.service: Failed with result 'exit-code'.
Failed to start Linux Kernel Runtime Guard.

rgacogne commented on 2023-12-06 13:59 (UTC)

@dubster: I just added the systemd service and the default configuration file to the package. I'm not going to enable the LKRG service automatically, though, as per Arch policy. Thanks for the hint!

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.