From ad010ef5b4c90e4abbd1c88724f99450740fb2eb Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Sun, 5 Nov 2023 17:52:44 -0500 Subject: [PATCH] debugging --- usr/libexec/security-misc/disable-kernel-module-loading | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/libexec/security-misc/disable-kernel-module-loading b/usr/libexec/security-misc/disable-kernel-module-loading index 891d5fc..e2174ac 100644 --- a/usr/libexec/security-misc/disable-kernel-module-loading +++ b/usr/libexec/security-misc/disable-kernel-module-loading @@ -1,7 +1,8 @@ #!/bin/bash +set -x set -e sysctl -w kernel.modules_disabled=1 -echo "The loading of new modules to the kernel has been disabled by security-misc" +true "The loading of new modules to the kernel has been disabled by security-misc."