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__/containers_common.cpython-310.pyc
o

i��dw
�@s8ddlmZmZmZmZddlZGdd�deee�ZdS)�)�Plugin�RedHatPlugin�UbuntuPlugin�	PluginOptNc@s6eZdZdZdZdZdZeddedd�gZ	d	d
�Z
dS)�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�desccs�|�gd��|�ddi�|�d�}g}|r!dd�|�d�D�}gd�}|D]$�|�d	tj�d
���|�d��|j�fdd�|D�d
d�q'dS)N)z/etc/containers/*z/usr/share/containers/*z/etc/subuidz/etc/subgidz/etc/containers/policy.json�containers_policyr	cSsg|]}|r|�qS�r)�.0�xrr�F/usr/lib/python3/dist-packages/sos/report/plugins/containers_common.py�
<listcomp>)sz*ContainersCommon.setup.<locals>.<listcomp>�:)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 versionz%s/.config/containers/z~%szloginctl user-status %scsg|]}d�|f�qS)z#machinectl -q shell %s@ /usr/bin/%sr)r�cmd��userrrrHs
��T)�
foreground)�
add_copy_spec�
add_file_tags�
get_option�split�os�path�
expanduser�add_cmd_output)�self�	users_opt�
users_list�user_subcmdsrrr�setups(�
����zContainersCommon.setupN)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�packagesr�str�option_listr%rrrrrs��r)�sos.report.pluginsrrrrrrrrrr�<module>s