- Points
- 178
KernelCare offers live kernel patching and additional security features, including symlink protection. Here’s how to reinstall KernelCare and enable the Free Symlink Protection.
1. Uninstall KernelCare
First, you need to remove any existing KernelCare installation:
Code:
yum remove kernelcare
2. Reinstall KernelCare
- Download and Install KernelCare
Use the following command to reinstall KernelCare:
Code:curl -s https://repo.cloudlinux.com/kernelcare/kernelcare_install.sh | bash
- Set Patch Type and Update
After installation, configure KernelCare to use the Free patch type and update:
Code:kcarectl --set-patch-type free --update
Note: In some cases, you might see the following message:
Code:'free' patch type is unavailable for your kernel
This message indicates that KernelCare does not yet support your current kernel version, which might be due to recent kernel updates. In such cases, you might need to wait for KernelCare to provide support for the latest kernel versions.
3. Enable Free Symlink Protection
- Edit KernelCare Configuration
Modify KernelCare's configuration file to enable Symlink Protection:
Code:nano /etc/sysconfig/kcare/kcare.conf
Add the following line to the configuration file:
Code:KCARE_SYMLINK_PROTECTION=1
Save the file and exit the editor. - Restart KernelCare Service
Apply the changes by restarting the KernelCare service:
Code:systemctl restart kcare
If your system doesn’t use systemd, restart the service using:
Code:service kcare restart
4. Verify Symlink Protection
- Check the Status
Verify that KernelCare and Symlink Protection are active:
Code:kcarectl --info
Look for indications that Symlink Protection is enabled. - Test Protection
To ensure that Symlink Protection is functioning, follow KernelCare’s guidelines for testing symlink protection or consult their support for specific instructions.
Additional Information
- KernelCare Support: If the 'free' patch type is not available for your kernel, check the KernelCare patches page for updates or contact KernelCare support for more information.
- Documentation: Refer to the KernelCare Documentation for the latest features and troubleshooting tips.
Last edited: