Current File : //usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/containers_common.cpython-312.pyc
�

-�_g�
��>�ddlZddlmZmZmZmZGd�deee�Zy)�N)�Plugin�RedHatPlugin�UbuntuPlugin�	PluginOptc�<�eZdZdZdZdZdZedded��gZ	d	�Z
y
)�ContainersCommonz;Common container configs under {/etc,/usr/share}/containers�containers_common)�	container)zcontainers-common�
rootlessusers�z,colon-delimited list of users to collect for)�default�val_type�descc
���|jgd��|jddi�|jd�}g}|r!|jd�D�cgc]}|s�|��	}}gd�}|D]s}tj
j
d|���}|j|�d��|jd	|���|j|D�cgc]
}d
|�d|����c}d�
��uycc}wcc}w)N)z/etc/containers/*z/usr/share/containers/*z/etc/subuidz/etc/subgidz/etc/containers/policy.json�containers_policyr�:)zpodman infoz%podman unshare cat /proc/self/uid_mapz%podman unshare cat /proc/self/gid_mapz
podman imageszpodman images --digestsz
podman pod pszpodman port --allz	podman pszpodman ps -azpodman stats --no-stream --allzpodman versionzpodman volume lszbuildah infoz&buildah unshare cat /proc/self/uid_mapz&buildah unshare cat /proc/self/gid_mapzbuildah containerszbuildah containers --allzbuildah imageszbuildah images --allzbuildah version�~z/.config/containers/zloginctl user-status zmachinectl -q shell z@ /usr/bin/T)�
foreground)�
add_copy_spec�
add_file_tags�
get_option�split�os�path�
expanduser�add_cmd_output)�self�	users_opt�
users_list�x�user_subcmds�user�
expanded_user�cmds        �F/usr/lib/python3/dist-packages/sos/report/plugins/containers_common.py�setupzContainersCommon.setups�����
�	�	
���)�+>�
�	��O�O�O�4�	��
��%.�_�_�S�%9�?��Q�!�?�J�?�
��,�	 �D��G�G�.�.��4�&�z�:�M���� �/�!5�6�
8�
���"7��v� >�?����'�!��'�t�f�K��u�=�!��
 �
 �	 ��1@��@!s�C�C�?C
N)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�packagesr�str�option_listr&��r%rrs4��N�J�%�K��H�&�H��/�2��E�	G��K�
2 r1r)r�sos.report.pluginsrrrrrr0r1r%�<module>r3s ��
�L�L�= �v�|�\�= r1