Issue
Check mount with hidepid=2 option:
FAILED: Details: hidepid protection disabled.
Please, mount system with hidepid=2 for better security.
Read more about hidepid option here: https://docs.cloudlinux.com/cloudlinux_os_kernel/#remounting-procfs-with-hidepid-option
Command for disabling this cron checker: "cldiag --disable-cron-checkers check-hidepid"
Environment
- CloudLinux
Solution
1. To disable hidepid, add the following to the /etc/fstab:
proc /proc proc defaults,hidepid=0,gid=0 0 0
2. Or you can specify the desired hidepid and gid values explicitly:
proc /proc proc defaults,hidepid=2,gid=clsupergid 0 0
3. You should execute the following:
mount -o remount /proc
4. In some cases it is necessary to remount fully manually:
mount -o remount,defaults,hidepid=2,gid=clsupergid /proc
Useful links
Comments
0 comments
Please sign in to leave a comment.