[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.219.248.129: ~ $
�
��^c@s�dZddlmZddlmZejrBddlmZnddd��YZd�Zd�Zd	�Z	d
�Z
d�Zd�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(t	refpolicy(tutil(tcmptModuleWritercBseZd�Zd�ZRS(cCs(d|_d|_t|_t|_dS(N(tNonetfdtmoduletTruetsorttrequires(tself((s5/usr/lib64/python2.7/site-packages/sepolgen/output.pyt__init__&s			cCsf||_|jr"t|j�nx=tj|jdt�D]#\}}|jdt|��q;WdS(Nt	showdepths%s
(RRtsort_filterRtwalktreeRtwritetstr(R
RRtnodetdepth((s5/usr/lib64/python2.7/site-packages/sepolgen/output.pyR,s
		%(t__name__t
__module__RR(((s5/usr/lib64/python2.7/site-packages/sepolgen/output.pyR%s	cCs�tj|�}|j�tj|�}|j�t|�t|�kr_t|d|d�Sx@t||�D]/}|d|dkrot|d|d�SqoWdS(Nii(Rtset_to_listRtlenRtzip(txtytxltyltv((s5/usr/lib64/python2.7/site-packages/sepolgen/output.pyt
id_set_cmp=s

cCs�t|j|j�}|dk	r%|St|j|j�}|dk	rJ|St|j|j�}|dk	ro|Stt|j�t|j��S(Ni(Rt	src_typest	tgt_typestobj_classesRRtperms(tatbtret((s5/usr/lib64/python2.7/site-packages/sepolgen/output.pyt
avrule_cmpKscCsH|jd|jdkr5t|jd|jd�St|j|j�S(Ni(targsRtifname(R"R#((s5/usr/lib64/python2.7/site-packages/sepolgen/output.pyt
ifcall_cmpZscCs�t|tj�rNt|tj�r1t||�St|jdg|j�Sn9t|tj�rmt||�St|j|jdg�SdS(Ni(	t
isinstanceRt
InterfaceCallR(RR&RtAVRuleR%(R"R#((s5/usr/lib64/python2.7/site-packages/sepolgen/output.pytrule_cmp`s

cCst|j|j�S(N(Rtrole(R"R#((s5/usr/lib64/python2.7/site-packages/sepolgen/output.pyt
role_type_cmplscCs.d�}x|j�D]}||�qWdS(s/Sort and group the output for readability.
    cSs6g}x4|j�D]&}|j|�|jtj��qWx!|j�D]}|j|�qJW|jtj��g}|j|j��|j|j��|jdt	j
t��d}g}x�|D]�}t
|tj�r�|jd}nt	j|j�}||krd|r.|jtj��n|}tj�}	|	jjd|�|j|	�n|j|�q�W|j|�g}
|
j|j��|
jdt	j
t��t|
�r�tj�}	|	jjd�|j|	�n|j|
�x-|jD]"}||kr|j|�qqW||_dS(Ntkeyis============= %s ==============s"============= ROLES ==============(tmodule_declarationstappendRtCommentR	textendtavrulestinterface_callsRRt
cmp_to_keyR,RR)R*R&tfirstRtlinest
role_typesR.Rtchildren(Rtctmodtrequiretrulestcurt	sep_rulestruleRtcommenttrastchild((s5/usr/lib64/python2.7/site-packages/sepolgen/output.pyt	sort_nodersL



N(tnodes(RRER((s5/usr/lib64/python2.7/site-packages/sepolgen/output.pyR
os	<N((
t__doc__tRRtPY3RRRR%R(R,R.R
(((s5/usr/lib64/python2.7/site-packages/sepolgen/output.pyt<module>s						

Filemanager

Name Type Size Permission Actions
.__init__.pyo.40009 File 142 B 0644
.access.pyo.40009 File 13.18 KB 0644
.audit.pyo.40009 File 22.33 KB 0644
.classperms.pyo.40009 File 3.16 KB 0644
.defaults.pyo.40009 File 2.87 KB 0644
.interfaces.pyo.40009 File 15.86 KB 0644
.lex.pyo.40009 File 19.24 KB 0644
.matching.pyo.40009 File 7.4 KB 0644
.module.pyo.40009 File 8.4 KB 0644
.objectmodel.pyo.40009 File 4.64 KB 0644
.output.pyo.40009 File 4.51 KB 0644
.refparser.pyo.40009 File 36.27 KB 0644
.refpolicy.pyo.40009 File 46.45 KB 0644
.sepolgeni18n.pyo.40009 File 410 B 0644
.util.pyo.40009 File 7.87 KB 0644
.yacc.pyo.40009 File 41.4 KB 0644
__init__.py File 0 B 0644
__init__.pyc File 142 B 0644
__init__.pyo File 142 B 0644
access.py File 12.33 KB 0644
access.pyc File 13.18 KB 0644
access.pyo File 13.18 KB 0644
audit.py File 23.64 KB 0644
audit.pyc File 22.33 KB 0644
audit.pyo File 22.33 KB 0644
classperms.py File 2.75 KB 0644
classperms.pyc File 3.16 KB 0644
classperms.pyo File 3.16 KB 0644
defaults.py File 2.69 KB 0644
defaults.pyc File 2.87 KB 0644
defaults.pyo File 2.87 KB 0644
interfaces.py File 16.21 KB 0644
interfaces.pyc File 15.86 KB 0644
interfaces.pyo File 15.86 KB 0644
lex.py File 32.86 KB 0644
lex.pyc File 19.24 KB 0644
lex.pyo File 19.24 KB 0644
matching.py File 8.45 KB 0644
matching.pyc File 7.4 KB 0644
matching.pyo File 7.4 KB 0644
module.py File 7.12 KB 0644
module.pyc File 8.4 KB 0644
module.pyo File 8.4 KB 0644
objectmodel.py File 6.37 KB 0644
objectmodel.pyc File 4.64 KB 0644
objectmodel.pyo File 4.64 KB 0644
output.py File 5.01 KB 0644
output.pyc File 4.51 KB 0644
output.pyo File 4.51 KB 0644
policygen.py File 16.31 KB 0644
policygen.pyc File 15.25 KB 0644
policygen.pyo File 15.18 KB 0644
refparser.py File 30.2 KB 0644
refparser.pyc File 36.27 KB 0644
refparser.pyo File 36.27 KB 0644
refpolicy.py File 27.31 KB 0644
refpolicy.pyc File 46.45 KB 0644
refpolicy.pyo File 46.45 KB 0644
sepolgeni18n.py File 912 B 0644
sepolgeni18n.pyc File 410 B 0644
sepolgeni18n.pyo File 410 B 0644
util.py File 5.41 KB 0644
util.pyc File 7.87 KB 0644
util.pyo File 7.87 KB 0644
yacc.py File 80.04 KB 0644
yacc.pyc File 41.4 KB 0644
yacc.pyo File 41.4 KB 0644