Your IP : 216.73.216.172


Current Path : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/containers_common.cpython-38.pyc

U

-�_g�
�@s8ddlZddlmZmZmZmZGdd�deee�ZdS)�N)�Plugin�RedHatPlugin�UbuntuPlugin�	PluginOptc@s6eZdZdZdZdZdZeddedd�gZ	d	d
�Z
dS)�ContainersCommonz;Common container configs under {/etc,/usr/share}/containersZcontainers_common)Z	container)zcontainers-common�
rootlessusers�z,colon-delimited list of users to collect for)�defaultZval_typeZdesccs�|�ddddg�|�ddi�|�d�}g}|rFdd	�|�d
�D�}ddd
dddddddddddddddddg}|D]R�tj�d����}|�|�d ��|�d!����|j�fd"d	�|D�d#d$�qvdS)%Nz/etc/containers/*z/usr/share/containers/*z/etc/subuidz/etc/subgidz/etc/containers/policy.jsonZcontainers_policyrcSsg|]}|r|�qS�r
)�.0�xr
r
�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 version�~z/.config/containers/zloginctl user-status csg|]}d��d|���qS)zmachinectl -q shell z@ /usr/bin/r
)r�cmd��userr
r
rIs�T)Z
foreground)Z
add_copy_specZ
add_file_tagsZ
get_option�split�os�path�
expanduserZadd_cmd_output)�selfZ	users_optZ
users_listZuser_subcmdsZ
expanded_userr
rr
�setups\��
����zContainersCommon.setupN)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesr�strZoption_listrr
r
r
r
rs��r)rZsos.report.pluginsrrrrrr
r
r
r
�<module>s