dbfdg 3 nma@sDddlZejdddZejZddlTddlmZGdddeZdS) Nzsetroubleshoot-pluginsT)Zfallback)*)Pluginc@s4eZdZedZedZddZddZddZd S) plugina SELinux has denied the $SOURCE access to potentially mislabeled files $TARGET_PATH. This means that SELinux will not allow httpd to use these files. If httpd should be allowed this access to these files you should change the file context to one of the following types, %s. Many third party apps install html files in directories that SELinux policy cannot predict. These directories have to be labeled with a file context which httpd can access. z0You need to change the label on $FIX_TARGET_PATHcCstddj|S)Nz# semanage fcontext -a -t FILE_TYPE '$FIX_TARGET_PATH' where FILE_TYPE is one of the following: %s. Then execute: restorecon -v '$FIX_TARGET_PATH' z, )_join)selfavcargsr 4/usr/share/setroubleshoot/plugins/catchall_labels.py get_do_text'szplugin.get_do_textcCstj|t|jddS)N)r__init____name__Z set_priority)rr r r r.s zplugin.__init__cCsN|jdkrJ|jdddddddgrJ|jd d d d grJ|j}|rJ|j|SdS) NexecveZ unlabeled_tZusr_tZetc_tZmnt_tZvar_tZ var_lib_tZ default_tdirfileZlnk_fileZ sock_file)ZsyscallZmatches_target_typesZ has_tclass_inZallowed_target_typesZreport)rrZ allowed_typesr r r analyze2s " zplugin.analyzeN) r __module__ __qualname__rZproblem_descriptionZ then_textr rrr r r r rs r)gettextZ translationrZsetroubleshoot.utilZsetroubleshoot.Pluginrrr r r r s