NineSec Team Shell
Server IP : 184.107.3.203  /  Your IP : 216.73.216.51
Web Server : Apache
System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64
User : adminteladeoro ( 1015)
PHP Version : 8.2.28
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/selinux.cpython-36.pyc
3

~�g�@s0ddlmZmZmZmZGdd�deee�ZdS)�)�Plugin�RedHatPlugin�UbuntuPlugin�	PluginOptc@s4eZdZdZdZdZeddd	d
�gZdZd
d�Z	dS)�SELinuxzSELinux access controlZselinux�	container�system�security�	openshift�fixfilesFz%collect incorrect file context labels)�defaultZdesc�
libselinux�
selinux-utilscCs�|jddg�|jddd�|jd�|jd�d}|d	kr�|jd
ddd
dddg�ddddddddg}x|D]}|jd|�d��qnW|jd�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	interfaceZboolean�modulez	semanage z -lrzrestorecon -Rvn /F�d)�stderrZpriority)Z
add_copy_specZadd_cmd_outputZexec_cmdZ
get_option)�self�stateZsubcmdsZsubcmd�r�/usr/lib/python3.6/selinux.py�setups8


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

NineSec Team - 2022