File: //usr/share/setroubleshoot/plugins/associate.pyo
�
c�L]c @ s� d d l Z e j d d e �Z e j Z d d l Td d l m Z d d l Z d d l Td d l Z d e f d � � YZ
d S( i����Ns setroubleshoot-pluginst fallback( t *( t Plugint pluginc B sV e Z e d � Z d � Z e d � Z d � Z e d � Z d Z d � Z d � Z
RS( sN
SELinux is preventing $SOURCE_PATH "$ACCESS" access to $TARGET_PATH.
c C s t d � | d S( Ns�
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
i ( t _( t selft avct args( ( s. /usr/share/setroubleshoot/plugins/associate.pyt get_problem_description$ s sp If you want to change the label of $TARGET_PATH to %s, you are not allowed to since it is not a valid file type.c C s | j | d S( Ni ( t if_text( R R R ( ( s. /usr/share/setroubleshoot/plugins/associate.pyt get_if_text. s s! you must pick a valid file label.sX select a valid file type. List valid file labels by executing:
# seinfo -afile_type -xc C s! t j | t � | j d � d S( Nid ( R t __init__t __name__t set_priority( R ( ( s. /usr/share/setroubleshoot/plugins/associate.pyR 4 s c C so | j j t k rk | j d g � r= | j d | j j f � S| j d g � rk | j d | j j f � Sn d S( Nt relabeltoi t associate( t tcontextt typet
file_typest all_accesses_are_int reportt scontextt None( R R ( ( s. /usr/share/setroubleshoot/plugins/associate.pyt analyze8 s ( R t
__module__R t summaryR R R
t then_textt do_textR R ( ( ( s. /usr/share/setroubleshoot/plugins/associate.pyR s ( t gettextt translationt TrueR t setroubleshoot.utilt setroubleshoot.PluginR t ost statt selinuxR ( ( ( s. /usr/share/setroubleshoot/plugins/associate.pyt <module> s