|
Server : LiteSpeed System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : idnco5810 ( 1093) PHP Version : 8.2.29 Disable Function : NONE Directory : /usr/lib/python3/dist-packages/sos/cleaner/parsers/__pycache__/ |
Upload File : |
o
([Qh% � @ s, d dl mZ d dlmZ G dd� de�ZdS )� )�SoSCleanerParser)�SoSUsernameMapc s8 e Zd ZdZdZdZg Zg f� fdd� Zdd� Z� Z S )�SoSUsernameParsera� Parser for obfuscating usernames within an sos report archive.
Note that this parser does not rely on regex matching directly, like most
other parsers do. Instead, usernames are discovered via scraping the
collected output of lastlog. As such, we do not discover new usernames
later on, and only usernames present in lastlog output will be obfuscated,
and those passed via the --usernames option if one is provided.
zUsername Parser�username_mapc s t � | _t� �||� d S )N)r �mapping�super�__init__)�self�config�skip_cleaning_files�� __class__� �E/usr/lib/python3/dist-packages/sos/cleaner/parsers/username_parser.pyr s zSoSUsernameParser.__init__c C s |dfS )Nr r )r �liner r r �_parse_line! s zSoSUsernameParser._parse_line)
�__name__�
__module__�__qualname__�__doc__�name�map_file_key�regex_patternsr r �
__classcell__r r r r r s r N)�sos.cleaner.parsersr �!sos.cleaner.mappings.username_mapr r r r r r �<module> s