From 3130a39d8c280d913fb632a40562438b82a499bb Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Sun, 5 Nov 2023 17:43:07 -0500 Subject: [PATCH] set -e --- usr/libexec/security-misc/disable-kernel-module-loading | 2 ++ 1 file changed, 2 insertions(+) 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"