File: //lib/python3/dist-packages/sos/cleaner/archives/__pycache__/sos.cpython-310.pyc
o
���b�
� @ s` d dl mZ d dlZd dlZG dd� de�ZG dd� de�ZG dd� de�ZG d d
� d
e�ZdS )� )�SoSObfuscationArchiveNc @ s: e Zd ZdZdZdZddgddg d�d �Zed
d� �ZdS )
�SoSReportArchivez�This is the class representing an sos report, or in other words the
type the archive the SoS project natively generates
�reportzsos report archivezsos_commands/host/hostnamez etc/hostsz"sos_commands/networking/ip_-o_addrz%sos_commands/networking/ip_-d_address)z(sos_commands/login/lastlog_-u_1000-60000z)sos_commands/login/lastlog_-u_60001-65536z.sos_commands/login/lastlog_-u_65537-4294967295zsos_commands/login/lastzetc/cron.allowz
etc/cron.deny)�hostname�ip�mac�usernamec C �* z
t �|�o d|v W S ty Y dS w )N�
sosreport-F��tarfile�
is_tarfile� Exception��cls�arc_path� r �:/usr/lib/python3/dist-packages/sos/cleaner/archives/sos.py�
check_is_type, �
�zSoSReportArchive.check_is_typeN) �__name__�
__module__�__qualname__�__doc__� type_name�description�
prep_files�classmethodr r r r r r s ��r c @ �$ e Zd ZdZdZdZedd� �ZdS )�SoSReportDirectoryz�This is the archive class representing a build directory, or in other
words what `sos report --clean` will end up using for in-line obfuscation
�
report_dirzsos report directoryc C s t j�|�r
dt �|�v S dS )N�sos_logsF��os�path�isdir�listdirr r r r r <