- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 18.226.251.163
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 8.2.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/setroubleshoot/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/setroubleshoot/plugins/__pycache__/restorecon_source.cpython-36.pyc
3

nm�a�@sdddlZejddd�ZejZddlTddlmZddlZddlTddlZddlZGdd�de�Z	dS)	�Nzsetroubleshoot-pluginsT)Zfallback)�*)�Pluginc@sTeZdZed�ZdZed�Zdd�Zed�Zdd�Z	ed	�Z
d
Zdd�Zd
d�Z
dS)�pluginzN
    SELinux is preventing $SOURCE_PATH "$ACCESS" access to $TARGET_PATH.
    z/sbin/restorecon $SOURCE_PATHz�
    You can restore the default system context to this file by executing the
    restorecon command.  restorecon '$SOURCE_PATH'.
    cCstd�|dS)Nam
    SELinux denied access requested by $SOURCE. $SOURCE_PATH may
    be mislabeled.  $SOURCE_PATH default SELinux type is
    <B>%s</B>, but its current type is <B>$SOURCE_TYPE</B>. Changing
    this file back to the default type may fix your problem.
    <p>
    This file could have been mislabeled either by user error, or if an normally confined application
    was run under the wrong domain.
    <p>
    However, this might also indicate a bug in SELinux because the file should not have been labeled
    with this type.
    <p>
    If you believe this is a bug, please file a bug report against this package.
    �)�_)�self�avc�args�r
�6/usr/share/setroubleshoot/plugins/restorecon_source.py�get_problem_description,s
zplugin.get_problem_descriptionzGIf you want to fix the label. 
$SOURCE_PATH default label should be %s.cCs|j|dS)Nr)�if_text)rrr	r
r
r�get_if_text>szplugin.get_if_textzyou can run restorecon.z"# /sbin/restorecon -v $SOURCE_PATHcCs0tj|t�|jd�d|_d|_td�|_dS)N�dZgreenTzRestore
Context)r�__init__�__name__Zset_priority�levelZfixablerZbutton_text)rr
r
rrDs

zplugin.__init__cCs�|js
dS|jdkrdS|jddkr*dSydtj|jjd�t�d}|jd�d}tj|jjd��d}|jd�d}||kr�|jd|f�SWnt	k
r�YnXdS)Nr�/�"r�:�)
Zquery_environmentZspath�selinuxZmatchpathcon�strip�S_IFREG�splitZ
getfileconZreport�OSError)rrZmconZ	mcon_typeZgconZ	gcon_typer
r
r�analyzeKs 
zplugin.analyzeN)r�
__module__�__qualname__rZsummaryZfix_cmdZfix_descriptionrr
rZ	then_textZdo_textrrr
r
r
rr sr)
�gettextZtranslationrZsetroubleshoot.utilZsetroubleshoot.Pluginr�os�statrrr
r
r
r�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit