Are you seeing this security message in CSF? CloudLinux Disable ptrace is not configured. You should configure it in /etc/sysctl.conf to prevent users accessing server resources that they do not need on web servers
Here's how to secure CloudLinux correctly.
Environment
CloudLinux OS
What CloudLinux Does by Default
By default, CloudLinux does not block ptrace. The kernel settings are:
-
kernel.user_ptracedetermines if PTRACE_ATTACH is allowed. -
kernel.user_ptrace_selfcontrols PTRACE_TRACEME.
How to Disable All Ptrace Functionality
To disable ptrace completely, add the following lines to /etc/sysctl.conf:
Then apply the changes by running:
Important Note
Some software may require ptrace functionality. If that’s the case, consider disabling only one of the options — this gives you partial ptrace protection while allowing needed functionality to continue working.