관리-도구
편집 파일: kernel_care.cpython-311.opt-1.pyc
� IMgM � � � d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dlm Z m Z mZ d dlm Z mZmZ d dlmZ d dlmZ e j e� � Z G d� d e � � ZdS ) � N)�Core)� LicenseCLN)�run_cmd_and_log� OsReleaseInfo� os_version)�AbstractFeature�FeatureError� FeatureStatus)�utils)� exceptionsc �� � � e Zd ZdZdZdej z Zd ZdZ dez Z dez Zdez ZdZ d Zee egZd ddd d�Zdefd�Z� fd�Zej d� � � Zej d� � � Zd� Zd� Zd� Z� xZS )� KernelCarez4/var/imunify360/plesk-previous-kernelcare-stats.jsonz<https://repo.cloudlinux.com/kernelcare/kernelcare_install.shz/var/log/%sz/usr/bin/kcarectlz%s/install-kernelcare.log.*z%s/remove-kernelcare.log.*zcurl -s %s | bashzyum remove -y kernelcarezapt-get -y remove kernelcarez)Host is updated to the latest patch levelzThere are no applied patchesz!There are new not applied patcheszKernel is unsupported)r � � � �returnc � �N K � t j � | j � � S �N)�os�path�exists�BIN_PATH��selfs �`/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/subsys/features/kernel_care.py�_check_installed_implz KernelCare._check_installed_impl, s � � � ��w�~�~�d�m�,�,�,� c � �j �K � t � � � � � � d{V ��}|d d t j k }|s|S | � d� � � d{V ��\ }}} d|d d<