HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/tigervnc.cpython-310.pyc
o

i��d��@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�RedHatPluginc@s$eZdZdZdZdZdZdd�ZdS)�TigerVNCa�
    This plugin gathers information for VNC servers provided by the tigervnc
    package. This is explicitly for server-side collections, not clients.

    By default, this plugin will capture the contents of /etc/tigervnc, which
    may include usernames. If usernames are sensitive information for end
    users of sos, consider using the `--clean` option to obfuscate these
    names.
    zTigerVNC server configuration�tigervnc)ztigervnc-servercCsj|�d�|�d�}|ddkr.|d��D]}|��}|sq|�|d�|�|d�q|�d�dS)Nz/etc/tigervnc/z:systemctl list-units --type=service --no-legend vncserver*�statusr�outputzvncserver -list)�
add_copy_spec�exec_cmd�
splitlines�split�add_service_status�add_journal�add_cmd_output)�self�vncs�serv�vnc�r�=/usr/lib/python3/dist-packages/sos/report/plugins/tigervnc.py�setups
�zTigerVNC.setupN)�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�packagesrrrrrrs
rN)�sos.report.pluginsrrrrrrr�<module>s