a Z`@s\ddlZejdddZejZddlTddlmZddlZddlTddlZGdddeZ dS) Nzsetroubleshoot-pluginsT)Zfallback)*)Pluginc@sHeZdZedZddZedZddZedZdZ d d Z d d Z d S)pluginzN SELinux is preventing $SOURCE_PATH "$ACCESS" access to $TARGET_PATH. cCstd|dS)Nz You tried to place a type on a %s that is not a file type. This is not allowed, you must assigne a file type. You can list all file types using the seinfo command. seinfo -afile_type -x )_selfavcargsr ./usr/share/setroubleshoot/plugins/associate.pyget_problem_description$szplugin.get_problem_descriptionzpIf you want to change the label of $TARGET_PATH to %s, you are not allowed to since it is not a valid file type.cCs|j|dS)Nr)if_textrr r r get_if_text.szplugin.get_if_textz!you must pick a valid file label.zXselect a valid file type. List valid file labels by executing: # seinfo -afile_type -xcCst|t|ddS)Nd)r__init____name__Z set_priority)rr r r r4s zplugin.__init__cCsL|jjtvrH|dgr*|d|jjfS|dgrH|d|jjfSdS)NZ relabeltorZ associate)ZtcontexttypeZ file_typesZall_accesses_are_inZreportZscontext)rr r r r analyze8s    zplugin.analyzeN) r __module__ __qualname__rZsummaryr rrZ then_textZdo_textrrr r r r rsr) gettextZ translationrZsetroubleshoot.utilZsetroubleshoot.PluginrosstatZselinuxrr r r r s