Fix "-e" for sysctl config.
parent
1e3b1a523c
commit
bf695e1588
|
@ -49,7 +49,7 @@ Kernel
|
||||||
https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project/Recommended_Settings
|
https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project/Recommended_Settings
|
||||||
|
|
||||||
- Sysctl hardening options
|
- Sysctl hardening options
|
||||||
echo '''kernel.dmesg_restrict=1\nkernel.kptr_restrict=1\nkernel.kexec_load_disabled=1\nkernel.yama.ptrace_scope=1\nuser.max_user_namespaces=0''' >> /etc/sysctl.conf
|
echo -e '''kernel.dmesg_restrict=1\nkernel.kptr_restrict=1\nkernel.kexec_load_disabled=1\nkernel.yama.ptrace_scope=1\nuser.max_user_namespaces=0''' >> /etc/sysctl.conf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue