
    -_g
                     >    d dl Z d dlmZmZmZmZ  G d deee      Zy)    N)PluginRedHatPluginUbuntuPlugin	PluginOptc                   <    e Zd ZdZdZdZdZ edded      gZ	d	 Z
y
)ContainersCommonz;Common container configs under {/etc,/usr/share}/containerscontainers_common)	container)zcontainers-commonrootlessusers z,colon-delimited list of users to collect for)defaultval_typedescc           
         | j                  g d       | j                  ddi       | j                  d      }g }|r!|j                  d      D cg c]  }|s|	 }}g d}|D ]s  }t        j
                  j                  d|       }| j                  | d       | j                  d	|        | j                  |D cg c]
  }d
| d|  c}d       u y c c}w c c}w )N)z/etc/containers/*z/usr/share/containers/*z/etc/subuidz/etc/subgidz/etc/containers/policy.jsoncontainers_policyr   :)zpodman infoz%podman unshare cat /proc/self/uid_mapz%podman unshare cat /proc/self/gid_mapzpodman imageszpodman images --digestszpodman pod pszpodman port --allz	podman pszpodman ps -azpodman stats --no-stream --allzpodman versionzpodman volume lszbuildah infoz&buildah unshare cat /proc/self/uid_mapz&buildah unshare cat /proc/self/gid_mapzbuildah containerszbuildah containers --allzbuildah imageszbuildah images --allzbuildah version~z/.config/containers/zloginctl user-status zmachinectl -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setupzContainersCommon.setup   s    
 	 	)+>
 	 OOO4	
%.__S%9?Q!?J?
,  	 DGG..4&z:M /!568 "7v >?'! 'tfKu=!     	 1 @@!s   CC?C
N)__name__
__module____qualname__
short_descplugin_nameprofilespackagesr   stroption_listr&        r%   r   r      s4    NJ%KH&H/2E	GK
2 r1   r   )r   sos.report.pluginsr   r   r   r   r   r0   r1   r%   <module>r3      s     
 L L= v|\ = r1   