gdZddlmZddlmZddlmZddlmZddl m Z m Z ddl m Z eeZGdd eZd S) u  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 . Copyright © 2019 Cloud Linux Software Inc. This software is also available under ImunifyAV commercial license, see ) getLogger) ConfigFile)Malware) MessageSource)recurring_checkScope)cxsc`eZdZejZdZdZdZe e j dZ dS) InotifyScancd|_dSN) _enable_taskselfs I/opt/imunify360/venv/lib/python3.11/site-packages/imav/plugins/inotify.py__init__zInotifyScan.__init__$s cK||_||_|j||_dSr )_loop_sink create_task _check_enabler)rloopsinks r create_sourcezInotifyScan.create_source's>   J2243E3E3G3GHHrchK|j(|j|jd{VdSdSr )rcancelrs rshutdownzInotifyScan.shutdown-sM   (   $ $ & & &# # # # # # # # # # ) (rcKtjr1tjr't ddddSdSdS)NMALWARE_SCANNINGenable_scan_inotifyF)r cxswatch_runningConfigINOTIFY_ENABLEDrsetrs rrzInotifyScan._check_enable2s_   ! ! Of&< O LL  /1F N N N N N O O O OrN) __name__ __module__ __qualname__rIM360SCOPErrrrr#CONFIG_CHECK_PERIODrrrr r !sy KE!!!III $$$ _V/00OO10OOOrr N)__doc__loggingr defence360agent.contracts.configrrr#!defence360agent.contracts.pluginsrdefence360agent.utilsrrimav.malwarelib.subsysr r&loggerr r,rrr4s*777777>>>>>>;;;;;;88888888&&&&&& 8  OOOOO-OOOOOr