MINI MINI MANI MO
ó
vP\c           @   s@   d  d l  Z  d  d l Z e  j Z e  j Z d   Z d   Z d S(   i˙˙˙˙Nc         C   s8   y t  t j |   d d SWn t k
 r3 |  g SXd  S(   Ni    t   types(   t   infot   sepolicyt	   ATTRIBUTEt   RuntimeError(   t	   attribute(    (    s7   /usr/lib64/python2.7/site-packages/sepolicy/booleans.pyt   expand_attribute   s    
c         C   sĎ   t  t j g i |  t j 6| t j 6| t j 6 } | s[ t d |  d j |  f   n  g  } xg g  g  | D]( } t |  j	 | t j  rn | ^ qn D] } | t j
 ^ q D] } | t |  } qą W| S(   Ns*   The %s type is not allowed to %s any typest   ,(   t   searchR   t   ALLOWt   SOURCEt   CLASSt   PERMSt	   TypeErrort   joint   sett   issubsett   TARGETR   (   t   srct   tclasst   permt   allowst   tlistt   xt   yt   l(    (    s7   /usr/lib64/python2.7/site-packages/sepolicy/booleans.pyt	   get_types$   s    3"V(   R   t   sysR   R   R   R   (    (    (    s7   /usr/lib64/python2.7/site-packages/sepolicy/booleans.pyt   <module>   s
   			
 OHA YOOOO