mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-02 21:14:53 -04:00
disable-kernel-module-loading
This commit is contained in:
parent
3e604618a8
commit
9f063584c1
1 changed files with 5 additions and 0 deletions
5
usr/libexec/security-misc/disable-kernel-module-loading
Normal file
5
usr/libexec/security-misc/disable-kernel-module-loading
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue