Files
security-misc/usr/libexec/security-misc/disable-kernel-module-loading
Patrick Schleizer 29ae5f5980 fix optional opt-in harden-module-loading.service
by making `/usr/libexec/security-misc/disable-kernel-module-loading` executable

Thanks to @ArrayBolt3 for the bug report!
2024-11-11 05:28:31 -05:00

12 lines
271 B
Bash
Executable File

#!/bin/bash
## Copyright (C) 2023 - 2024 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
## See the file COPYING for copying conditions.
set -x
set -e
sysctl -w kernel.modules_disabled=1
true "The loading of new modules to the kernel has been disabled by security-misc."