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 �wTa� � @ sD d dl Z e jddd�Zej Zd dlT d dlmZ G dd� de�ZdS ) � Nzsetroubleshoot-pluginsT)Zfallback)�*)�Pluginc @ sL e Zd Zed�Zed�Zed�Zed�Zed�Zed�Z dd� Z d d � ZdS )�pluginzq SELinux is preventing $SOURCE_PATH from creating a file with a context of $SOURCE_TYPE on a filesystem. a SELinux is preventing $SOURCE from creating a file with a context of $SOURCE_TYPE on a filesystem. Usually this happens when you ask the cp command to maintain the context of a file when copying between file systems, "cp -a" for example. Not all file contexts should be maintained between the file systems. For example, a read-only file type like iso9660_t should not be placed on a r/w system. "cp -p" might be a better solution, as this will adopt the default file context for the destination. zX Use a command like "cp -p" to preserve all permissions except SELinux context. zTIf you believe $SOURCE_BASE_PATH should be allowed to create $TARGET_BASE_PATH fileszsyou need to use a different command. You are not allowed to preserve the SELinux context on the target file system.zNuse a command like "cp -p" to preserve all permissions except SELinux context.c C s t j| t� | jd� d S )N�d )r �__init__�__name__Zset_priority)�self� r �9/usr/share/setroubleshoot/plugins/filesystem_associate.pyr 0 s zplugin.__init__c C s@ |j dg�r8|jdg�r8|jjtkr8|jdg�r8| j� S d S d S )Nz.*fs_tZ associateZ filesystem)Zmatches_target_typesZall_accesses_are_inZtcontext�typeZ file_typesZ has_tclass_inZreport)r Zavcr r r �analyze4 s zplugin.analyzeN)r � __module__�__qualname__�_ZsummaryZproblem_descriptionZfix_descriptionZif_textZ then_textZdo_textr r r r r r r s r )�gettextZtranslationr Zsetroubleshoot.utilZsetroubleshoot.Pluginr r r r r r �<module> s