HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/share/setroubleshoot/plugins/__pycache__/sshd_root.cpython-36.pyc
3

m��aT�@s\ddlZejddd�ZejZddlTddlmZddlZddlTddlZGdd�de�Z	dS)	�Nzsetroubleshoot-pluginsT)Zfallback)�*)�Pluginc@s@eZdZed�Zed�Zed�Zed�ZdZdd�Z	dd	�Z
d
S)�pluginzN
    SELinux is preventing $SOURCE_PATH "$ACCESS" access to $TARGET_PATH.
    z�
    SELinux denied access requested by $SOURCE. $TARGET_PATH may
    be mislabeled. sshd is allowed to read content in /root/.ssh directory if it
    is labeled correctly.
    z�
    You can restore the default system context to this file by executing the
    restorecon command.
    # restorecon -R /root/.ssh
    zyou must fix the labels.z/sbin/restorecon -Rv /root/.sshcCs&tj|t�d|_d|_td�|_dS)NZyellowTzRestore Context)r�__init__�__name__�levelZfixable�_Zbutton_text)�self�r
�./usr/share/setroubleshoot/plugins/sshd_root.pyr3szplugin.__init__cCsH|jdg�rD|jdg�rD|jdkrD|j|j�rD|jddg�rD|j�SdS)NZsshd_tZadmin_home_tz
/root/.ssh�file�dir)Zmatches_source_typesZmatches_target_typesZtpathZall_accesses_are_inZread_file_permsZ
has_tclass_inZreport)r	Zavcr
r
r�analyze9s
zplugin.analyzeN)r�
__module__�__qualname__rZsummaryZproblem_descriptionZfix_descriptionZ	then_textZdo_textrrr
r
r
rrsr)
�gettextZtranslationrZsetroubleshoot.utilZsetroubleshoot.Pluginr�os�statZselinuxrr
r
r
r�<module>s