Your IP : 216.73.217.13


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

U

���b��@s*ddlmZmZmZGdd�dee�ZdS)�)�Plugin�RedHatPlugin�	PluginOptc@s4eZdZdZdZdZedddd�gZdZd	d
�Z	dS)�SELinuxzSELinux access controlZselinux)Z	container�systemZsecurityZ	openshift�fixfilesFz%collect incorrect file context labels)�defaultZdesc)Z
libselinuxc	Cs�|�ddg�|jddd�|�d�|�d�d}|d	kr�|�d
ddd
dddg�dddddddg}|D]}|�d|�qj|�d�r�|jdddd�dS)Nz/etc/sestatus.confz/etc/selinuxz/var/lib/selinux�2)Z	sizelimitZsestatusZ
getenforce�outputZDisabledz	ps auxZwwzsestatus -vzsestatus -bzselinuxdefcon rootzselinuxconlist rootzselinuxexeccon /bin/passwdzsemanage -oZfcontext�userZportZloginZnodeZ	interface�modulezsemanage %s -lrzrestorecon -Rvn /F�d)�stderrZpriority)Z
add_copy_specZadd_cmd_outputZexec_cmdZ
get_option)�self�stateZsubcmdsZsubcmd�r�</usr/lib/python3/dist-packages/sos/report/plugins/selinux.py�setups>�
��

�z
SELinux.setupN)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesrZoption_listZpackagesrrrrrrs��rN)Zsos.report.pluginsrrrrrrrr�<module>	s