Server IP : 15.235.198.142 / Your IP : 216.73.216.190 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Upload File : |
� i��d� � �0 � d dl mZmZmZ G d� dee� Zy)� )�Plugin�RedHatPlugin� PluginOptc �: � e Zd ZdZdZdZ eddd�� gZdZd � Z y )�SELinuxzSELinux access control�selinux)� container�system�security� openshift�fixfilesFz%collect incorrect file context labels)�default�desc)� libselinuxc �V � | j ddg� | j dd�� | j d� | j d� d }|d k7 rY| j g d �� g d�}|D ] }| j d|z � � | j d � r| j ddd�� y y y )Nz/etc/sestatus.confz/etc/selinuxz/var/lib/selinux�2 )� sizelimit�sestatus� getenforce�output�Disabled)z ps auxZwwzsestatus -vzsestatus -bzselinuxdefcon rootzselinuxconlist rootzselinuxexeccon /bin/passwdzsemanage -o)�fcontext�user�port�login�node� interface�modulezsemanage %s -lr zrestorecon -Rvn /F�d )�stderr�priority)� add_copy_spec�add_cmd_output�exec_cmd� get_option)�self�state�subcmds�subcmds �</usr/lib/python3/dist-packages/sos/report/plugins/selinux.py�setupz SELinux.setup s� � ���� �� � � ���-���<����J�'�� � �l�+�H�5���J����� !� ��G� "� ?���#�#�$4�v�$=�>� ?� ���z�*��#�#�$7��-0� $� 2� +�1 � N) �__name__� __module__�__qualname__� short_desc�plugin_name�profilesr �option_list�packagesr+ � r, r* r r s6 � �)�J��K�?�H� �*�e�>� @��K� �H�%2r, r N)�sos.report.pluginsr r r r r5 r, r* �<module>r7 s �� ?� >�22�f�l� 22r,