disable-kernel-module-loading

This commit is contained in:
monsieuremre 2023-11-02 10:28:41 +00:00 committed by GitHub
parent 3e604618a8
commit 9f063584c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,5 @@
#!/bin/bash
sysctl -w kernel.modules_disabled=1
echo "The loading of new modules to the kernel has been disabled by security-misc" >&2