[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.147.55.32: ~ $
�
��^cI@s}ddlZddlZddlZddlZddlmZddlmZddlmZddlmZddlm	Z	d�Z
i4ddQ6ddR6ddS6d dT6d!dU6d"dV6d#dW6d$dX6d%dY6d&dZ6d'd[6d(d\6d)d]6d*d^6d+d_6d,d`6d-da6d.db6d/dc6d0dd6d1de6d2df6d3dg6d4dh6d5di6d6dj6d7dk6d8dl6d9dm6d:dn6d;do6d<dp6d=dq6d>dr6d?ds6d@dt6dAdu6dBdv6dCdw6dDdx6dEdy6dFdz6dGd{6dHd|6dId}6dJd~6dKd6dLd�6dMd�6dOd�6dNd�6dPd�6Zd�Zd�Z
d�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd��Zd��Z d��Z!d��Z"d��Z#d��Z$d��Z%d��Z&d��Z'da)da*d�a+da,e-a.dd��Z/d��Z0d��Z1d��Z2d��Z3d��Z4d��Z5d��Z6d��Z7d��Z8d��Z9d��Z:d��Z;d��Z<d��Z=d��Z>d��Z?d��Z@d��ZAd��ZBd��ZCd��ZDd��ZEd��ZFd��ZGd��ZHd��ZId��ZJd��ZKd��ZLd��ZMd��ZNd��ZOd��ZPd��ZQd��ZRd��ZSd��ZTd��ZUd��ZVd��ZWd��ZXd��ZYd��ZZd��Z[d��Z\d��Z]d��Z^d��Z_d��Z`d��Zad��Zbd��Zcd��Zdd��Zed��Zfd��Zgd��Zhd��Zid��Zjd��Zkd��Zld��Zmd��Znd��Zod��Zpd��Zqdardasd��Ztddeud��Zvd��Zwde-eud��ZxdS(�i����Ni(taccess(tdefaults(tlex(t	refpolicy(tyacctTICKtSQUOTEtOBRACEtCBRACEtSEMItCOLONtOPARENtCPARENtCOMMAtMINUStTILDEtASTERISKtAMPtBARtEXPLtEQUALtFILENAMEt
IDENTIFIERtNUMBERtPATHt	IPV6_ADDRtMODULEt
POLICY_MODULEtREQUIREtSIDtGENFSCONtFS_USE_XATTRtFS_USE_TRANStFS_USE_TASKtPORTCONtNODECONtNETIFCONtPIRQCONtIOMEMCONt	IOPORTCONtPCIDEVICECONt
DEVICETREECONtCLASSt
TYPEATTRIBUTEt
ROLEATTRIBUTEtTYPEt	ATTRIBUTEtATTRIBUTE_ROLEtALIASt	TYPEALIAStBOOLtTRUEtFALSEtIFtELSEtROLEtTYPEStALLOWt	DONTAUDITt
AUDITALLOWt
NEVERALLOWt
PERMISSIVEt
TYPEBOUNDStTYPE_TRANSITIONtTYPE_CHANGEtTYPE_MEMBERtRANGE_TRANSITIONtROLE_TRANSITIONt
OPT_POLICYt	INTERFACEtTUNABLE_POLICYtGEN_REQtTEMPLATEtGEN_CONTEXTtIFELSEtIFDEFtIFNDEFtDEFINEtmodulet
policy_moduletrequiretsidtgenfscontfs_use_xattrtfs_use_transtfs_use_tasktportcontnodecontnetifcontpirqcontiomemcont	ioportcontpcidevicecont
devicetreecontclasst
typeattributet
roleattributettypet	attributetattribute_roletaliast	typealiastboolttruetfalsetiftelsetrolettypestallowt	dontauditt
auditallowt
neverallowt
permissivet
typeboundsttype_transitionttype_changettype_membertrange_transitiontrole_transitiontoptional_policyt	interfacettunable_policytgen_requirettemplatetgen_contexttifelsetifndeftifdeftdefines\`s\'s\{s\}s\;+s\:s\(s\)s\,s\-s\~s\*s\&s\|s\!s\=s[0-9\.]+s/[a-zA-Z0-9)_\.\*/\$]*s 	cCs|S(s2[a-fA-F0-9]{0,4}:[a-fA-F0-9]{0,4}:([a-fA-F0-9]|:)*((tt((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytt_IPV6_ADDR�scCs|jjd7_dS(sdnl.*\niN(tlexertlineno(R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytt_m4comment�scCs|jd�dS(sdefine.*refpolicywarn\(.*\niN(tskip(R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytt_refpolicywarn1�scCs|jjd7_dS(srefpolicywarn\(.*\niN(R�R�(R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytt_refpolicywarn�scCstj|jd�|_|S(s#[a-zA-Z_\$][a-zA-Z0-9_\-\+\.\$\*~]*R(treservedtgettvalueRa(R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytt_IDENTIFIER�scCstj|jd�|_|S(s\"[a-zA-Z0-9_\-\+\.\$\*~ :]+\"R(R�R�R�Ra(R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt
t_FILENAMEscCs|jjd7_dS(s\#.*\niN(R�R�(R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt	t_commentscCs!d|jdGH|jd�dS(NsIllegal character '%s'ii(R�R�(R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytt_errorscCs|jjt|j�7_dS(s\n+N(R�R�tlenR�(R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt	t_newlinestcCs{|dkrdSxd|D]\}|dkr/qn||_|dk	r`|jjd||f�q|jjd|�qWdS(Ni(tNonetparenttchildrentinsert(tstmtsR�tvalts((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytcollect-s
	cCsJxC|D];}tj|�r5|jtj|��q|j|�qWdS(N(tsptthas_keytupdatetby_nametadd(tidsR�tid((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytexpand9s
cCsjt|�dkr3|dr3tjj|d�n3t|�dkrf|drftjj|d�ndS(s^statements : statement
                  | statements statement
                  | empty
    iiN(R�tmR�tappend(tp((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_statementsAscCs|d|d<dS(s�statement : interface
                 | template
                 | obj_perm_set
                 | policy
                 | policy_module_stmt
                 | module_stmt
    iiN((R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_statementKscCsdS(sempty :N((R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_emptyUscCs=tj�}|d|_|d|_t|_||d<dS(sHpolicy_module_stmt : POLICY_MODULE OPAREN IDENTIFIER COMMA NUMBER CPARENiiiN(RtModuleDeclarationtnametversiontTrue(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_policy_module_stmt`s


	cCs2tj|d�}t|d|�||d<dS(sainterface : INTERFACE OPAREN TICK IDENTIFIER SQUOTE COMMA TICK interface_stmts SQUOTE CPAREN
    iiiN(Rt	InterfaceR�(R�tx((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_interfacehscCs2tj|d�}t|d|�||d<dS(s�template : TEMPLATE OPAREN TICK IDENTIFIER SQUOTE COMMA TICK interface_stmts SQUOTE CPAREN
                | DEFINE OPAREN TICK IDENTIFIER SQUOTE COMMA TICK interface_stmts SQUOTE CPAREN
    iiiN(RtTemplateR�(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt
p_templateoscCsd|d<dS(s4define : DEFINE OPAREN TICK IDENTIFIER SQUOTE CPARENiN(R�(R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_definewscCs�t|�dkr-|dr-|d|d<nnt|�dkr�|dsg|dr�|d|d<q�q�|ds�|d|d<q�|d|d|d<ndS(slinterface_stmts : policy
                       | interface_stmts policy
                       | empty
    iiiN(R�(R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_interface_stmts~s


cCs`tj�}t|d|dt�t|�dkrOt|d|dt�n|g|d<dS(s�optional_policy : OPT_POLICY OPAREN TICK interface_stmts SQUOTE CPAREN
                       | OPT_POLICY OPAREN TICK interface_stmts SQUOTE COMMA TICK interface_stmts SQUOTE CPAREN
    iR�iiiN(RtOptionalPolicyR�R�R�tFalse(R�to((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_optional_policy�s
cCsmtj�}|d|_t|d|dt�t|�dkr\t|d|dt�n|g|d<dS(s�tunable_policy : TUNABLE_POLICY OPAREN TICK cond_expr SQUOTE COMMA TICK interface_stmts SQUOTE CPAREN
                      | TUNABLE_POLICY OPAREN TICK cond_expr SQUOTE COMMA TICK interface_stmts SQUOTE COMMA TICK interface_stmts SQUOTE CPAREN
    iiR�iiiN(Rt
TunablePolicyt	cond_exprR�R�R�R�(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_tunable_policy�s
cCsdS(s�ifelse : IFELSE OPAREN TICK IDENTIFIER SQUOTE COMMA COMMA TICK IDENTIFIER SQUOTE COMMA TICK interface_stmts SQUOTE CPAREN optional_semi
              | IFELSE OPAREN TICK IDENTIFIER SQUOTE COMMA TICK IDENTIFIER SQUOTE COMMA TICK interface_stmts SQUOTE COMMA TICK interface_stmts SQUOTE CPAREN optional_semi
              | IFELSE OPAREN TICK IDENTIFIER SQUOTE COMMA TICK SQUOTE COMMA TICK interface_stmts SQUOTE COMMA TICK interface_stmts SQUOTE CPAREN optional_semi
    N((R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_ifelse�scCs�tj|d�}|ddkr,t}nt}t|d|d|�t|�dkrut|d|dt�n|g|d<dS(	s^ifdef : IFDEF OPAREN TICK IDENTIFIER SQUOTE COMMA TICK interface_stmts SQUOTE CPAREN optional_semi
             | IFNDEF OPAREN TICK IDENTIFIER SQUOTE COMMA TICK interface_stmts SQUOTE CPAREN optional_semi
             | IFDEF OPAREN TICK IDENTIFIER SQUOTE COMMA TICK interface_stmts SQUOTE COMMA TICK interface_stmts SQUOTE CPAREN optional_semi
    iiR�iR�iiN(RtIfDefR�R�R�R�(R�R�tv((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_ifdef�s	cCsMtjd|d�}t|�dkr?|jj|d�n||d<dS(s�interface_call : IDENTIFIER OPAREN interface_call_param_list CPAREN
                      | IDENTIFIER OPAREN CPAREN
                      | IDENTIFIER OPAREN interface_call_param_list CPAREN SEMItifnameiiiiN(Rt
InterfaceCallR�targstextend(R�ti((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_interface_call�scCsCt|�dkr#|d|d<n|dd|dg|d<dS(s�interface_call_param : IDENTIFIER
                            | IDENTIFIER MINUS IDENTIFIER
                            | nested_id_set
                            | TRUE
                            | FALSE
                            | FILENAME
    iiit-iN(R�(R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_interface_call_param�s
cCsCt|�dkr&|dg|d<n|d|dg|d<dS(s�interface_call_param_list : interface_call_param
                                 | interface_call_param_list COMMA interface_call_param
    iiiiN(R�(R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_interface_call_param_list�scCs.tj|d�}|d|_||d<dS(sRobj_perm_set : DEFINE OPAREN TICK IDENTIFIER SQUOTE COMMA TICK names SQUOTE CPARENiiiN(Rt
ObjPermSettperms(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_obj_perm_set�s
cCs|d|d<dS(s�policy : policy_stmt
              | optional_policy
              | tunable_policy
              | ifdef
              | ifelse
              | conditional
    iiN((R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_policy�scCs"|dr|dg|d<ndS(s�policy_stmt : gen_require
                   | avrule_def
                   | typerule_def
                   | typebound_def
                   | typeattribute_def
                   | roleattribute_def
                   | interface_call
                   | role_def
                   | role_allow
                   | permissive
                   | type_def
                   | typealias_def
                   | attribute_def
                   | attribute_role_def
                   | range_transition_def
                   | role_transition_def
                   | bool
                   | define
                   | initial_sid
                   | genfscon
                   | fs_use
                   | portcon
                   | nodecon
                   | netifcon
                   | pirqcon
                   | iomemcon
                   | ioportcon
                   | pcidevicecon
                   | devicetreecon
    iiN((R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt
p_policy_stmt�s
cCs=tj�}|d|_|d|_t|_||d<dS(s+module_stmt : MODULE IDENTIFIER NUMBER SEMIiiiN(RR�R�R�R�(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt
p_module_stmts


	cCsdS(slgen_require : GEN_REQ OPAREN TICK requires SQUOTE CPAREN
                   | REQUIRE OBRACE requires CBRACEN((R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt
p_gen_require!scCsdS(ssrequires : require
                | requires require
                | ifdef
                | requires ifdef
    N((R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt
p_requires)scCsdS(s�require : TYPE comma_list SEMI
               | ROLE comma_list SEMI
               | ATTRIBUTE comma_list SEMI
               | ATTRIBUTE_ROLE comma_list SEMI
               | CLASS comma_list SEMI
               | BOOL comma_list SEMI
    N((R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt	p_require1scCsctj�}|d|_|d|_|d|_t|�dkrU|d|_n||d<dS(s�security_context : IDENTIFIER COLON IDENTIFIER COLON IDENTIFIER
                        | IDENTIFIER COLON IDENTIFIER COLON IDENTIFIER COLON mls_range_defiiiiiiN(RtSecurityContexttuserRkRaR�tlevel(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_security_context;s


cCs%|d}|d|_||d<dS(sQgen_context : GEN_CONTEXT OPAREN security_context COMMA mls_range_def CPAREN
    iiiN(R�(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt
p_gen_contextHs

cCs|d|d<dS(s<context : security_context
               | gen_context
    iiN((R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt	p_contextSscCs4tj�}|d|_|d|_||d<dS(s$initial_sid : SID IDENTIFIER contextiiiN(Rt
InitialSidR�tcontext(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt
p_initial_sidYs

cCsAtj�}|d|_|d|_|d|_||d<dS(s+genfscon : GENFSCON IDENTIFIER PATH contextiiiiN(RtGenfsCont
filesystemtpathR�(R�tg((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt
p_genfscon`s



cCs�tj�}|ddkr.tjj|_nD|ddkrPtjj|_n"|ddkrrtjj|_n|d|_|d|_||d<dS(	s�fs_use : FS_USE_XATTR IDENTIFIER context SEMI
              | FS_USE_TASK IDENTIFIER context SEMI
              | FS_USE_TRANS IDENTIFIER context SEMI
    iRSRURTiiiN(Rt
FilesystemUsetXATTRRatTASKtTRANSR�R�(R�tf((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_fs_usejs

cCs|tj�}|d|_t|�dkrH|d|_|d|_n&|dd|d|_|d|_||d<dS(skportcon : PORTCON IDENTIFIER NUMBER context
               | PORTCON IDENTIFIER NUMBER MINUS NUMBER contextiiiiR�iN(RtPortCont	port_typeR�tport_numberR�(R�tc((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt	p_portcon|s


cCsAtj�}|d|_|d|_|d|_||d<dS(sanodecon : NODECON NUMBER NUMBER context
               | NODECON IPV6_ADDR IPV6_ADDR context
    iiiiN(RtNodeContstarttendR�(R�tn((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt	p_nodecon�s



cCsAtj�}|d|_|d|_|d|_||d<dS(s.netifcon : NETIFCON IDENTIFIER context contextiiiiN(RtNetifConRytinterface_contexttpacket_context(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt
p_netifcon�s



cCs4tj�}|d|_|d|_||d<dS(s pirqcon : PIRQCON NUMBER contextiiiN(RtPirqContpirq_numberR�(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt	p_pirqcon�s

cCsotj�}t|�dkr;|d|_|d|_n&|dd|d|_|d|_||d<dS(sYiomemcon : IOMEMCON NUMBER context
                | IOMEMCON NUMBER MINUS NUMBER contextiiiR�iN(RtIomemConR�t
device_memR�(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt
p_iomemcon�s

cCsotj�}t|�dkr;|d|_|d|_n&|dd|d|_|d|_||d<dS(s\ioportcon : IOPORTCON NUMBER context
                | IOPORTCON NUMBER MINUS NUMBER contextiiiR�iN(Rt	IoportConR�tioportR�(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_ioportcon�s

cCs4tj�}|d|_|d|_||d<dS(s*pcidevicecon : PCIDEVICECON NUMBER contextiiiN(RtPciDeviceContdeviceR�(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_pcidevicecon�s

cCs4tj�}|d|_|d|_||d<dS(s,devicetreecon : DEVICETREECON NUMBER contextiiiN(Rt
DevicetTeeConR�R�(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_devicetreecon�s

cCsA|d|d<t|�dkr=|dd|d|d<ndS(s[mls_range_def : mls_level_def MINUS mls_level_def
                     | mls_level_def
    iiiR�iN(R�(R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_mls_range_def�scCsJ|d|d<t|�dkrF|dddj|d�|d<ndS(sRmls_level_def : IDENTIFIER COLON comma_list
                     | IDENTIFIER
    iiit:t,iN(R�tjoin(R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_mls_level_def�scCs�tj|d�}t|�dkr\|ddkrL|jj|d�q�|d|_nKt|�dkr�|d|_t|�dkr�|jj|d�q�n||d<dS(	s�type_def : TYPE IDENTIFIER COMMA comma_list SEMI
                | TYPE IDENTIFIER SEMI
                | TYPE IDENTIFIER ALIAS names SEMI
                | TYPE IDENTIFIER ALIAS names COMMA comma_list SEMI
    iiiRiiiN(RtTypeR�t
attributesR�taliases(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt
p_type_def�s
cCs!tj|d�}||d<dS(s)attribute_def : ATTRIBUTE IDENTIFIER SEMIiiN(Rt	Attribute(R�ta((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_attribute_def�scCs!tj|d�}||d<dS(s3attribute_role_def : ATTRIBUTE_ROLE IDENTIFIER SEMIiiN(RtAttribute_Role(R�R
((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_attribute_role_def�scCs4tj�}|d|_|d|_||d<dS(s5typealias_def : TYPEALIAS IDENTIFIER ALIAS names SEMIiiiN(Rt	TypeAliasRaR
(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_typealias_def�s

cCsPtj�}|d|_t|�dkrB|jj|d�n||d<dS(sWrole_def : ROLE IDENTIFIER TYPES comma_list SEMI
                | ROLE IDENTIFIER SEMIiiiN(RtRoleRkR�RlR�(R�tr((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt
p_role_defs

cCs4tj�}|d|_|d|_||d<dS(s#role_allow : ALLOW names names SEMIiiiN(Rt	RoleAllowt	src_rolest	tgt_roles(R�R((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_role_allows

cCstjd�dS(s"permissive : PERMISSIVE names SEMIiN(R�R�(R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_permissivescCs�tj�}|ddkr.tjj|_nD|ddkrPtjj|_n"|ddkrrtjj|_n|d|_|d|_|d|_|d|_	||d	<d
S(s�avrule_def : ALLOW names names COLON names names SEMI
                  | DONTAUDIT names names COLON names names SEMI
                  | AUDITALLOW names names COLON names names SEMI
                  | NEVERALLOW names names COLON names names SEMI
    iRnRoRpiiiiiN(
RtAVRuleR:t	rule_typeR;R<t	src_typest	tgt_typestobj_classesR�(R�R
((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_avrule_defs



cCs�tj�}|ddkr.tjj|_n"|ddkrPtjj|_n|d|_|d|_|d|_|d|_|d|_	||d	<d
S(s�typerule_def : TYPE_TRANSITION names names COLON names IDENTIFIER SEMI
                    | TYPE_TRANSITION names names COLON names IDENTIFIER FILENAME SEMI
                    | TYPE_TRANSITION names names COLON names IDENTIFIER IDENTIFIER SEMI
                    | TYPE_CHANGE names names COLON names IDENTIFIER SEMI
                    | TYPE_MEMBER names names COLON names IDENTIFIER SEMI
    iRtRuiiiiiiN(
RtTypeRuleR@RRARRRt	dest_typet	file_name(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_typerule_def*s




cCs;tj�}|d|_|jj|d�||d<dS(s5typebound_def : TYPEBOUNDS IDENTIFIER comma_list SEMIiiiN(Rt	TypeBoundRaRR�(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_typebound_def=s
cCsLtj�}|d|_|ddkr5t|_n	t|_||d<dS(sIbool : BOOL IDENTIFIER TRUE SEMI
            | BOOL IDENTIFIER FALSE SEMIiiRgiN(RtBoolR�R�tstateR�(R�tb((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_boolDs
	cCsmtj�}|d|_t|d|dt�t|�dkr\t|d|dt�n|g|d<dS(s� conditional : IF OPAREN cond_expr CPAREN OBRACE interface_stmts CBRACE
                    | IF OPAREN cond_expr CPAREN OBRACE interface_stmts CBRACE ELSE OBRACE interface_stmts CBRACE
    iiR�ii
iN(RtConditionalR�R�R�R�R�(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt
p_conditionalOs
cCs;tj�}|d|_|jj|d�||d<dS(s<typeattribute_def : TYPEATTRIBUTE IDENTIFIER comma_list SEMIiiiN(Rt
TypeAttributeRaR	R�(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_typeattribute_defZs
cCs;tj�}|d|_|jj|d�||d<dS(s<roleattribute_def : ROLEATTRIBUTE IDENTIFIER comma_list SEMIiiiN(Rt
RoleAttributeRktroleattributesR�(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_roleattribute_defas
cCsdS(s�range_transition_def : RANGE_TRANSITION names names COLON names mls_range_def SEMI
                            | RANGE_TRANSITION names names names SEMIN((R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_range_transition_defhscCsdS(s<role_transition_def : ROLE_TRANSITION names names names SEMIN((R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_role_transition_defmscCs�t|�}|dkr,|dg|d<nQ|dkrT|dg|d|d<n)|d|d|dg|d|d<dS(scond_expr : IDENTIFIER
                 | EXPL cond_expr
                 | cond_expr AMP AMP cond_expr
                 | cond_expr BAR BAR cond_expr
                 | cond_expr EQUAL EQUAL cond_expr
                 | cond_expr EXPL EQUAL cond_expr
    iiiiiN(R�(R�tl((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_cond_exprqscCs�tj�}t|�dkr2t|d|�nUt|�dkrat|d|�t|_n&t|dg�|jd|d�||d<dS(s�names : identifier
             | nested_id_set
             | asterisk
             | TILDE identifier
             | TILDE nested_id_set
             | IDENTIFIER MINUS IDENTIFIER
    iiiR�iN(RtIdSetR�R�R�t
complimentR�(R�R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_names�scCs|dg|d<dS(sidentifier : IDENTIFIERiiN((R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_identifier�scCs|dg|d<dS(sasterisk : ASTERISKiiN((R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt
p_asterisk�scCs|d|d<dS(s1nested_id_set : OBRACE nested_id_list CBRACE
    iiN((R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_nested_id_set�scCs=t|�dkr#|d|d<n|d|d|d<dS(s`nested_id_list : nested_id_element
                      | nested_id_list nested_id_element
    iiiN(R�(R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_nested_id_list�scCsBt|�dkr#|d|d<nd|d}|g|d<dS(sxnested_id_element : identifier
                         | MINUS IDENTIFIER
                         | nested_id_set
    iiiR�N(R�(R�tstr((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_nested_id_element�scCs=t|�dkr+|d|d|d<n|d|d<dS(sTcomma_list : nested_id_list
                  | comma_list COMMA nested_id_list
    iiiiN(R�(R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_comma_list�scCsdS(s/optional_semi : SEMI
                   | emptyN((R�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_optional_semi�scCs.dt|j|j|jfatGHtadS(Ns(%s: Syntax error on line %d %s [type=%s](t
parse_fileR�R�RaterrorR�tsuccess(ttok((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytp_error�scCs2|s
iSi}x|D]}|||j<qWdS(N(R�(R�tmapR�((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytprep_spt�s

cCssts3tj�atjddd|dd�an|dk	rH|antj�a|sitj�a	n|a	dS(NtmethodtLALRtdebugtwrite_tablesi(
tparserRR�RR�R�RtModulet
SupportMacrosR�(RNtsupportRJ((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytcreate_globals�s!	cCs�t|||�dt_taytj|d|dt�Wn=tk
r{}dadadt	|�dt
j�anXts�dadt}t
|��ntS(NiRJR�sinternal parser error: %ss
scould not parse text: "%s"(RPR�R�R�RCRLtparset	ExceptionR�R=t	tracebackt
format_excRBt
ValueErrorR�(ttextRNRORJtetmsg((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyRQ�s	"
c	Cs�g}d}x�tj|�D]�\}}}x�|D]�}tjj|�}tjj||�}|ddkr�|dkr�|}q�ttjd|d��r�|j	|d|f�q�q2|ddkr2|j	|d|f�q2q2WqW||fS(Nis.sptsobj_perm_sets.spttpatternsis.if(
R�tostwalkR�tsplitextRR�tretfindallR�(	troottmodulestsupport_macrostdirpathtdirnamest	filenamesR�tmodnametfilename((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pytlist_headers
s
	"cs�ddlm}tj�}g}d}tjj|�r�tjj|�d}|dkrot	d|��ntjj
|�}	|j|	d|f�tt
j��\}
}nt|�\}}|r�|r�t	d��n�fd��d��fd�}d}|r��d	|�tj�}|||�|jj|�tjd
�}
tjddd
dddddddg
�}|
jjtj|��|jj|
��d�n�r��r�|jtjdt|��}|jd�ng}x�|D]�}tj�}|d|_y2|rA||d||�n||d|�Wn;t	k
r�}�t|�d�|j|d�qnX|jj|��r�r|j�qqWt|�r��ddj|��n|S(Ni(tutilR�sInvalid file name %sis1could not find support macros (obj_perm_sets.spt)cs�r�j|�ndS(N(twrite(RX(toutput(s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyR�3scs��r�d|�ny?t|�}|j�}|j�|at|||��WnBtk
rl}dStk
r�}td|t|�f��nXdS(Nsparsing file %s
serror parsing file %s: %s(topentreadtcloseRARQtIOErrorRUR=(R�RNR�tfdttxtRW(RJR�(s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyRA7s
sParsing support macros (%s): tcan_execs$1s$2tfiletexecute_no_transRkRltgetattrtlocktexecutetioctlsdone.
tstepssParsing interface filess
s failed to parse some headers: %ss, (R�RhRtHeadersR�RZR�tisfiletsplitRUR\R�RgRtheadersRNR�R�RtAccessVectorRtConsoleProgressBartsyststdoutR�R�RMR�R=tstepR(R_RjR�RJRhR|R`RaR�Retall_modulesRAR�RqtavtstatustfailuresR�R�RW((RJR�Rjs8/usr/lib64/python2.7/site-packages/sepolgen/refparser.pyt
parse_headerssb






(IRRRRR	R
RRR
RRRRRRRsFILENAMEs
IDENTIFIERRsPATHRRRRRRRR R!R"R#R$R%R&R'R(R)R*R+R,R-R.R/R0R1R2R3R4R5R6R7R8R9s	DONTAUDITs
AUDITALLOWs
NEVERALLOWR=R>R?sTYPE_CHANGEsTYPE_MEMBERRBRCRDRERFRGsTEMPLATERIRJRKRLRM(yRRZR]RSR�RRRRRttokensR�tt_TICKtt_SQUOTEtt_OBRACEtt_CBRACEtt_SEMItt_COLONtt_OPARENtt_CPARENtt_COMMAtt_MINUStt_TILDEt
t_ASTERISKtt_AMPtt_BARtt_EXPLtt_EQUALtt_NUMBERtt_PATHtt_ignoreR�R�R�R�R�R�R�R�R�R�R�RBRAR�R�RCR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�RRRRRRRRRRRR R$R&R*R,R.R1R2R3R5R8R9R:R;R<R>R?R@RERGRLR�RPR�RQRgR�(((s8/usr/lib64/python2.7/site-packages/sepolgen/refparser.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