Файловый менеджер - Редактировать - /opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/plugins/__pycache__/cleanup.cpython-311.opt-1.pyc
Назад
� �l�htv � � � d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl mZ ddlm Z ddlmZmZmZmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlm Z ddl!m"Z" ddl#m$Z$m%Z%m&Z& ddl'm(Z( ddl)m*Z* ddl+m,Z,m-Z-m.Z.m/Z/ ddl0m1Z1 ddl2m3Z3m4Z4m5Z5 ddl6m7Z7 ddl8m9Z9m:Z:m;Z; ddl<m=Z= ddl>m?Z?m@Z@mAZA ddlBmCZCmDZD ddlEmFZF ddlGmHZH ddlImJZJmKZK ddlLmMZM ddlNmOZOmPZP dd lQmRZR dd!lSmTZTmUZU eeV� � ZWd"ZX e*d#e,jY � � ZZ e eDj[ d$�%� � Z\ e eDj[ d&�%� � Z] e5e3eWj^ �'� � eWj_ � � Z`d(eeD d)efd*�Za G d+� d,e$e%� � Zb G d-� d.e$e%� � Zc G d/� d0e$� � Zdd1� Ze G d2� d3ec� � Zf G d4� d5e$� � Zg G d6� d7e$� � ZhdS )8u This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. Copyright © 2019 Cloud Linux Software Inc. This software is also available under ImunifyAV commercial license, see <https://www.imunify360.com/legal/eula> � N)�suppress)�partial)� getLogger)�Path)�Dict�Iterable�List�Tuple)�utils)� inactivity)�Malware)�MyImunifyConfig)� HookEvent)� LicenseCLN)�MessageType)�myimunify_protection_enabled)�MessageSink� MessageSource�expect)�g)�register_lock_file)�Scope� nice_iterator�recurring_check�split_for_chunk)� check_lock)�DAY�MINUTE� rate_limit)�MalwareDatabaseRestoreTask)� CleanupResult�MalwareCleaner�MalwareCleanupProxy)�CleanupStorage)�MalwareHitStatus�MalwareScanResourceType�MalwareScanType)�MalwareHistory� MalwareHit)�ScanAlreadyCompleteError)�MalwareDatabaseCleaner)�MDSDetachedCleanup�MDSDetachedRestore)�MalwareDatabaseRestore)�HackerTrapHitsSaver� MalwareAction)�malware_response)�get_username_by_uid�is_uid� �cleanup�status)� attribute�owner)�period�on_drop�hits�returnc � � d� | D � � S )Nc 3 �D K � | ]}|j t j k �|V � �d S �N)r6 r% �FOUND��.0�hits �T/opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/plugins/cleanup.py� <genexpr>z#filter_cleanable.<locals>.<genexpr>e s2 � � � �H�H�C�3�:�1A�1G�#G�#G�C�#G�#G�#G�#G�H�H� � �r; s rD �filter_cleanablerI d s � �H�H�4�H�H�H�HrF c �V � e Zd Zd� Zd� Zd� Zd� Z eej � � de fd�� � Zede dee d ee e f fd �� � Zede deded e fd �� � Zde d e fd�Zde d e fd�Zd� Zd� Zed� � � Zd� Zd� Z dd�Zd� Z ed� � d� � � ZdS )�Cleanupc �h � d | _ d | _ d| _ d | _ d | _ d | _ d | _ d S )NF)� _cleanup_task�_store_original_task�_running�_loop�_sink�_proxy�_cleaner��selfs rD �__init__zCleanup.__init__i s9 � �!���$(��!��� ��� ��� ������ � � rF c � �� K � || _ || _ t � � | _ t ||�� � | _ |� | � � � � � | _ d S )N)�loop�sink) rP rQ r# rR r"