security-misc/usr/libexec/security-misc/disable-kernel-module-loading
2024-07-18 00:13:30 +10:00

11 lines
271 B
Bash

#!/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."