Skip to main content

kernelcare symlink patch - centos 7 - cpanel 68.0.12

Comments

15 comments

  • quizknows
    Did you apply the appropriate sysctl settings after enabling the patch?
    0
  • weblinks
    Yes, I applied as mentioned in details. Edit the file /etc/sysconfig/kcare/sysctl.conf add the lines: fs.enforce_symlinksifowner = 1 fs.symlinkown_gid = 99 Execute: sysctl -w fs.enforce_symlinksifowner=1 sysctl -w fs.symlinkown_gid=99
    0
  • quizknows
    Ok, Good :) In that case you may need to wait for cpanel staff or open a ticket. With that said, If you don't get errors committing those sysctl parameters your server is probably OK.
    0
  • weblinks
    Ok, Good :) In that case you may need to wait for cpanel staff or open a ticket. With that said, If you don't get errors committing those sysctl parameters your server is probably OK.

    ok i will wait for cpanel staff reply else i will open ticket. Yes, No error was came while committing those sysctl parameters.
    0
  • cPanelMichael
    Hello, Internal case CPANEL-16877 is open to address an issue where Security Advisor reports "No symlink protection detected" despite the server using the KernelCare "Extra" Patchset. In the meantime, you can safely ignore that warning if you've followed the instructions on setting it up (see here). I'll update this thread with more information on the status of this case as it becomes available. Thank you.
    0
  • weblinks
    Hello, Internal case CPANEL-16877 is open to address an issue where Security Advisor reports "No symlink protection detected" despite the server using the KernelCare "Extra" Patchset. In the meantime, you can safely ignore that warning if you've followed the instructions on setting it up (see here). I'll update this thread with more information on the status of this case as it becomes available. Thank you.

    Thanks, cPanelMichael and Yes I followed the instructions mention into blog link. I will wait for update from you when available.
    0
  • dvk01uk
    After some Cpanel updates and after any server reboot I have to reapply this every time to get rid of the Security advisor warning Execute: sysctl -w fs.enforce_symlinksifowner=1 sysctl -w fs.symlinkown_gid=99
    0
  • weblinks
    Yes, After vps reboot, I reapplied Execute: sysctl -w fs.enforce_symlinksifowner=1 sysctl -w fs.symlinkown_gid=99 But Security advisor warning still there. Thanks.
    0
  • cPanelMichael
    Hi @weblinks and @dvk01uk, There's no workaround to have Security Advisor output the correct result. It's a false positive, which is what internal case CPANEL-16877 will solve. I'll update this thread with more information on the status of this case as soon as it's available. Thanks!
    0
  • quizknows
    If the settings are in your systcl config files themselves, "sysctl -p $file" should commit them. if that is failing or is not persistent across reboots, try moving the settings to /etc/sysctl.conf itself and running just "sysctl -p" to commit them. You can also run "sysctl --system" to have it apply your settings which will then be echoed to your terminal. This is a good way to make sure your changes are in files that are actually being parsed by the system.
    [root@new ~]# sysctl --system * Applying /etc/sysctl.conf ... (snip) fs.enforce_symlinksifowner = 1 fs.symlinkown_gid = 99
    0
  • cPanelMichael
    Hello, To update, the resolution is planned for cPanel version 70 as part of internal case CPANEL-17016. Thank you.
    0
  • durangod
    how do i even get this patch?
    0
  • cPanelMichael
    how do i even get this patch?

    Hi, Information on how to install it is available at: The KernelCare "Extra" Patchset for CentOS 6 & 7 with symlink protection is here Thank you.
    0
  • Nirjonadda
    Hello, To update, the resolution is planned for cPanel version 70 as part of internal case CPANEL-17016. Thank you.

    So in v70 will be install symlink protection automatically?
    0
  • cPanelMichael
    So in v70 will be install symlink protection automatically?

    No, it's not installed automatically. The change in cPanel 70 allows for Security Advisor to detect the KernelCare free tier patch, as it does not do so in cPanel 68 and earlier. Thank you.
    0

Please sign in to leave a comment.