Merge pull request #148 from monsieuremre/module-loading-hardening

Harden the loading of new modules to the kernel after install
This commit is contained in:
Patrick Schleizer 2023-11-05 17:41:56 -05:00 committed by GitHub
commit 36f3c30440
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

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"