/usr/lib64/python2.6/site-packages/sepolgen
Edit: /usr/lib64/python2.6/site-packages/sepolgen/output.pyc (4524B)
Ñò
Ô<*Xc @ sk d Z d d k Z d d k Z d d d „ ƒ YZ d „ Z d „ Z d „ Z d „ Z d „ Z d
„ Z d S( si
Classes and functions for the output of reference policy modules.
This module takes a refpolicy.Module object and formats it for
output using the ModuleWriter object. By separating the output
in this way the other parts of Madison can focus solely on
generating policy. This keeps the semantic / syntactic issues
cleanly separated from the formatting issues.
iÿÿÿÿNt ModuleWriterc B s e Z d „ Z d „ Z RS( c C s( d | _ d | _ t | _ t | _ d S( N( t Nonet fdt modulet Truet sortt requires( t self( ( s5 /usr/lib64/python2.6/site-packages/sepolgen/output.pyt __init__" s c C sh | | _ | i o t | i ƒ n x= t i | i d t ƒD]# \ } } | i d t | ƒ ƒ q= Wd S( Nt showdepths %s
( R R t sort_filtert refpolicyt walktreeR t writet str( R R R t nodet depth( ( s5 /usr/lib64/python2.6/site-packages/sepolgen/output.pyR
( s
( t __name__t
__module__R R
( ( ( s5 /usr/lib64/python2.6/site-packages/sepolgen/output.pyR ! s c C sª t i | ƒ } | i ƒ t i | ƒ } | i ƒ t | ƒ t | ƒ j o t | d | d ƒ SxB t | | ƒ D]1 } | d | d j o t | d | d ƒ Sqq Wd S( Ni i ( t utilt set_to_listR t lent cmpt zip( t xt yt xlt ylt v( ( s5 /usr/lib64/python2.6/site-packages/sepolgen/output.pyt
id_set_cmp9 s
c C s” t | i | i ƒ } | d j o | St | i | i ƒ } | d j o | St | i | i ƒ } | d j o | St t | i ƒ t | i ƒ ƒ S( Ni ( R t src_typest tgt_typest obj_classesR R t perms( t at bt ret( ( s5 /usr/lib64/python2.6/site-packages/sepolgen/output.pyt
avrule_cmpG s
c C sJ | i d | i d j o t | i d | i d ƒ St | i | i ƒ S( Ni ( t argsR t ifname( R" R# ( ( s5 /usr/lib64/python2.6/site-packages/sepolgen/output.pyt
ifcall_cmpV s c C s‘ t | t i ƒ o? t | t i ƒ o t | | ƒ St | i d g | i ƒ Sn<