Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Upload File : |
o ���b� � @ s6 d dl mZmZ d dlZd dlZG dd� dee�ZdS )� )�Plugin�IndependentPluginNc @ s( e Zd ZdZ dZdZefZdd� ZdS )� SosExtrasz/Collect extra data defined in /etc/sos/extras.d� sos_extrasz/etc/sos/extras.d/c C s� z$t �| j�}|jdks|jtj@ s|jtj@ r#| �d| j � W d S W n ty6 | �d| j � Y d S w t � | j�D ]�\}}}|D ]{}| � ||�}| �d| � z\t|��� � � D ]Q}t|�� �dksk|�d�rlq\|�d�r�|�� }d } t|�dkr�zt|d �} W n ty� | �d||f � Y nw | j|d dd � | d � q\| j||d � q\W qD ty� | �d| � Y qDw q=d S )Nr z@Skipping sos extras as %s has too wide permissions or ownership.z"can't stat %s, skipping sos extrasz#Collecting data from extras file %s�#�:� zFCan't decode integer sizelimit on line '%s' in file %s, using default.)� sizelimit)�subdirzunable to read extras file %s)�os�stat� extras_dir�st_uid�st_mode�S_IWGRP�S_IWOTH� _log_warn�OSError�walk� path_join�open�read� splitlines�len�split� startswith�int� ValueError� add_copy_spec�add_cmd_output�IOError) �self�st�path�dirlist�filelist�f�_file�line�words�limit� r+ �?/usr/lib/python3/dist-packages/sos/report/plugins/sos_extras.py�setup. sV ����� ������zSosExtras.setupN)�__name__� __module__�__qualname__� short_desc�plugin_namer �filesr- r+ r+ r+ r, r s r )�sos.report.pluginsr r r r r r+ r+ r+ r, �<module> s