security-misc/usr/libexec/security-misc/disable-kernel-module-loading#security-misc-shared
2025-09-21 16:06:11 -05:00

11 lines
287 B
Bash
Executable file

#!/bin/bash
## Copyright (C) 2023 - 2025 ENCRYPTED SUPPORT LLC <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 package security-misc-shared."