dbfdg 3 nmaT@s\ddlZejdddZejZddlTddlmZddlZddlTddlZGdddeZ dS) Nzsetroubleshoot-pluginsT)Zfallback)*)Pluginc@s@eZdZedZedZedZedZdZddZ 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|td|_d|_td|_dS)NZyellowTzRestore Context)r__init____name__levelZfixable_Z button_text)selfr ./usr/share/setroubleshoot/plugins/sshd_root.pyr3s zplugin.__init__cCsH|jdgrD|jdgrD|jdkrD|j|jrD|jddgrD|jSdS)NZsshd_tZ admin_home_tz /root/.sshfiledir)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 r rsr) gettextZ translationrZsetroubleshoot.utilZsetroubleshoot.PluginrosstatZselinuxrr r r r s