HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/sos/report/plugins/__pycache__/selinux.cpython-38.pyc
U

i��d��@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