HEX
Server: Apache
System: Linux insrv.serversdaddy.com 5.14.0-362.24.2.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Mar 30 14:11:54 EDT 2024 x86_64
User: jsaha (1066)
PHP: 8.3.6
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/containers_common.cpython-39.pyc
a

^��cw
�@s8ddlmZmZmZmZddlZGdd�deee�ZdS)�)�Plugin�RedHatPlugin�UbuntuPlugin�	PluginOptNc@s6eZdZdZdZdZdZeddedd�gZ	d	d
�Z
dS)�ContainersCommonz;Common container configs under {/etc,/usr/share}/containersZcontainers_common)�	container)zcontainers-common�
rootlessusers�z,colon-delimited list of users to collect for)�defaultZval_typeZdesccs�|�gd��|�ddi�|�d�}g}|rBdd�|�d�D�}gd�}|D]H�|�d	tj�d
���|�d��|j�fdd�|D�d
d�qNdS)N)z/etc/containers/*z/usr/share/containers/*z/etc/subuidz/etc/subgidz/etc/containers/policy.jsonZcontainers_policyrcSsg|]}|r|�qS�r)�.0�xrr�H/usr/lib/python3.9/site-packages/sos/report/plugins/containers_common.py�
<listcomp>)�z*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)Z
foreground)Z
add_copy_specZ
add_file_tagsZ
get_option�split�os�path�
expanduserZadd_cmd_output)�selfZ	users_optZ
users_listZuser_subcmdsrrr�setups&�
���zContainersCommon.setupN)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesr�strZoption_listrrrrrrs��r)Zsos.report.pluginsrrrrrrrrrr�<module>s