Server IP : 172.24.0.40 / Your IP : 216.73.216.10 Web Server : Apache System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64 User : apache ( 48) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/setroubleshoot/plugins/__pycache__/ |
Upload File : |
3 �wTaq � @ sD d dl Z e jddd�Zej Zd dlT d dlmZ G dd� de�ZdS ) � Nzsetroubleshoot-pluginsT)Zfallback)�*)�Pluginc @ s4 e Zd Zed�ZdZed�ZdZdd� Zdd� Z d S ) �plugina� SELinux prevented httpd $ACCESS access to $TARGET_PATH. httpd scripts are not allowed to write to content without explicit labeling of all files. If $TARGET_PATH is writable content. it needs to be labeled httpd_sys_rw_content_t or if all you need is append you can label it httpd_sys_ra_content_t. Please refer to 'man httpd_selinux' for more information on setting up httpd and selinux. z1chcon -R -t httpd_sys_rw_content_t '$TARGET_PATH'z2You need to change the label on '$FIX_TARGET_PATH'zf# semanage fcontext -a -t httpd_sys_rw_content_t '$FIX_TARGET_PATH' # restorecon -v '$FIX_TARGET_PATH'c C s t j| t� | jd� d S )N�d )r �__init__�__name__Zset_priority)�self� r �8/usr/share/setroubleshoot/plugins/httpd_write_content.pyr , s zplugin.__init__c C sF |j ddg�rB|jdg�rB|jddg�rB|j|j|j �rB| j� S d S )NZhttpd_tZhttpd_sys_script_tZhttpd_sys_content_t�file�dir)Zmatches_source_typesZmatches_target_typesZ has_tclass_inZall_accesses_are_inZcreate_file_permsZrw_dir_permsZreport)r Zavcr r r �analyze0 s zplugin.analyzeN) r � __module__�__qualname__�_Zproblem_descriptionZfix_cmdZ then_textZdo_textr r r r r r r s r )�gettextZtranslationr Zsetroubleshoot.utilZsetroubleshoot.Pluginr r r r r r �<module> s