## Copyright (C) 2021 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
## See the file COPYING for copying conditions.

## LKRG VirtualBox host configuration

## DO NOT EDIT THIS FILE /etc/sysctl.d/30-lkrg-dkms.conf AS EDITS WILL BE LOST!
## This is an auto generated file.

## Please use "/etc/sysctl.d/50-user.conf" for your custom
## configuration, which will override the defaults found here.

## gets copied from:
## /usr/share/security-misc/lkrg/30-lkrg-virtualbox.conf
## to:
## /etc/sysctl.d/30-lkrg-virtualbox.conf
## by package security-misc-shared, files:
## /usr/share/security-misc/lkrg/lkrg-virtualbox
## /usr/lib/systemd/system/lkrg.service.d/40-virtualbox.conf

## https://forums.whonix.org/t/linux-kernel-runtime-guard-lkrg-linux-kernel-runtime-integrity-checking-and-exploit-detection/8477/32
## https://www.openwall.com/lists/lkrg-users/2020/01/24/2
## https://www.openwall.com/lists/lkrg-users/2020/01/25/2
## https://github.com/openwall/lkrg/issues/82
## https://github.com/openwall/lkrg/blob/main/scripts/bootup/lkrg.conf
## https://github.com/openwall/lkrg/blob/main/scripts/bootup/systemd/lkrg.service
## /etc/sysctl.d/30-lkrg-dkms.conf
## /usr/lib/systemd/system/lkrg.service

## https://github.com/openwall/lkrg/issues/82#issuecomment-886188999
lkrg.pcfi_validate = 1
