diff --git a/usr/libexec/security-misc/disable-kernel-module-loading b/usr/libexec/security-misc/disable-kernel-module-loading index 6d4d25d..891d5fc 100644 --- a/usr/libexec/security-misc/disable-kernel-module-loading +++ b/usr/libexec/security-misc/disable-kernel-module-loading @@ -1,5 +1,7 @@ #!/bin/bash +set -e + sysctl -w kernel.modules_disabled=1 echo "The loading of new modules to the kernel has been disabled by security-misc"