| Server IP : 188.151.22.197 / Your IP : 216.73.217.74 Web Server : Apache/2.4.62 (Rocky Linux) OpenSSL/3.5.5 System : Linux wsten.se 5.14.0-687.30.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 13:09:21 UTC 2026 x86_64 User : apache ( 48) PHP Version : 8.1.32 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 : |
a
�Z`� � @ sD d dl Z e jddd�Zej Zd dlT d dlmZ G dd� de�ZdS ) � Nzsetroubleshoot-pluginsT)Zfallback)�*)�Pluginc @ sD e Zd Zed�Zed�Zed�ZdZed�ZdZ dd� Z
d d
� ZdS )�pluginzG
SELinux is preventing $SOURCE_PATH "$ACCESS" to $TARGET_PATH.
a
SELinux denied $SOURCE access to $TARGET_PATH.
If this is a swapfile, it has to have a file context label of
swapfile_t. If you did not intend to use
$TARGET_PATH as a swapfile, this message could indicate either a bug or an intrusion attempt.
a
You can alter the file context by executing chcon -t swapfile_t '$TARGET_PATH'
You must also change the default file context files on the system in order to preserve them even on a full relabel. "semanage fcontext -a -t swapfile_t '$FIX_TARGET_PATH'"
z"chcon -t swapfile_t '$TARGET_PATH'z2You need to change the label on '$FIX_TARGET_PATH'zZ# semanage fcontext -a -t swapfile_t '$FIX_TARGET_PATH'
# restorecon -v '$FIX_TARGET_PATH'c C s t �| t� d| _d S )NZgreen)r �__init__�__name__�level)�self� r �-/usr/share/setroubleshoot/plugins/swapfile.pyr 0 s zplugin.__init__c C s6 |� dg�r.|�g d��r.|�dg�r.| �� S d S d S )NZfsadm_t)�read�write�getattrZswapon�file)Zmatches_source_typesZall_accesses_are_inZ
has_tclass_inZreport)r Zavcr r r
�analyze4 s �
�zplugin.analyzeN)r �
__module__�__qualname__�_ZsummaryZproblem_descriptionZfix_descriptionZfix_cmdZ then_textZdo_textr r r r r r
r s r )�gettextZtranslationr Zsetroubleshoot.utilZsetroubleshoot.Pluginr r r r r r
�<module> s