HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //lib/python3.6/site-packages/sos/report/plugins/__pycache__/sos_extras.cpython-36.pyc
3

\��h��@s6ddlZddlZddlmZmZGdd�dee�ZdS)�N)�Plugin�IndependentPluginc@s&eZdZdZdZdZefZdd�ZdS)�	SosExtrasz/Collect extra data defined in /etc/sos/extras.dZ
sos_extrasz/etc/sos/extras.d/c$Cs�yJtj|j�}|jdks0|jtj@s0|jtj@rH|jd|j�d��dSWn(tk
rr|jd|j�d��dSX�xRtj	|j�D�]@\}}}�x2|D�](}|j
||�}|jd|���y�t|ddd	���}x�|j�j
�D]�}t|j��dks�|jd
�r�q�|jd��r||j�}	d}
t|	�dk�r`yt|	d�}
Wn.tk
�r^|jd
|�d|�d��YnX|j|	ddd�|
d�q�|j||d�q�WWdQRXWq�tk
�r�|jd|���Yq�Xq�Wq�WdS)NrzSkipping sos extras as z' has too wide permissions or ownership.zcan't stat z, skipping sos extrasz!Collecting data from extras file �rzUTF-8)�encoding�#�:�zCan't decode size limit on linez in z, using default)Z	sizelimit)Zsubdirzunable to read extras file )�os�stat�
extras_dir�st_uid�st_mode�S_IWGRP�S_IWOTHZ	_log_warn�OSError�walkZ	path_join�open�read�
splitlines�len�split�
startswith�int�
ValueErrorZ
add_copy_specZadd_cmd_output�IOError)�selfZst_res�path�_Zfilelist�fileZ_fileZsfile�lineZwords�limit�r"� /usr/lib/python3.6/sos_extras.py�setup.s@
 zSosExtras.setupN)�__name__�
__module__�__qualname__Z
short_descZplugin_namer�filesr$r"r"r"r#rs
r)r
rZsos.report.pluginsrrrr"r"r"r#�<module>	s