403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/sepolgen/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/sepolgen/objectmodel.pyo
Jc	@sdZddddddddd	g	Zd
ZdZdZeeBZhed
6ed6ed6ed6Zhd
e6de6de6de6ZdddYZdddYZ	dS(s
This module provides knowledge object classes and permissions. It should
be used to keep this knowledge from leaking into the more generic parts of
the policy generation.
tsockettfdtprocesstfiletlnk_filet	fifo_filetdbust
capabilitytunix_stream_socketiiitntrtwtbtPermMapcBs eZdZdZdZRS(sA mapping between a permission and its information flow properties.

    PermMap represents the information flow properties of a single permission
    including the direction (read, write, etc.) and an abstract representation
    of the bandwidth of the flow (weight).
    cCs||_||_||_dS(N(tpermtdirtweight(tselfRRR((s8/usr/lib/python2.6/site-packages/sepolgen/objectmodel.pyt__init__Ts		cCsd|it|i|ifS(Ns'<sepolgen.objectmodel.PermMap %s %s %d>(Rt
dir_to_strRR(R((s8/usr/lib/python2.6/site-packages/sepolgen/objectmodel.pyt__repr__Ys	
(t__name__t
__module__t__doc__RR(((s8/usr/lib/python2.6/site-packages/sepolgen/objectmodel.pyR
Ms	tPermMappingscBsDeZdZdZdZdZdZdZdZRS(sThe information flow properties of a set of object classes and permissions.

    PermMappings maps one or more classes and permissions to their PermMap objects
    describing their information flow charecteristics.
    cCsh|_d|_t|_dS(Ni(tclassestdefault_weightt	FLOW_BOTHtdefault_dir(R((s8/usr/lib/python2.6/site-packages/sepolgen/objectmodel.pyRds		cCs6d
}x)|D]!}|i}t|djp$t|djp|ddjoq
n|ddjoK|d}|ii|otdnh|i|<|i|}q
t|djotdn|d
jotdnt|dt|dt|d	}|||i	<q
Wd
S(ssRead the permission mappings from a file. This reads the format used
        by Apol in the setools suite.
        iit#tclasssduplicate class in perm mapis"error in object classs permissionsspermission outside of classiN(
tNonetsplittlenRthas_keyt
ValueErrorR
t
str_to_dirtintR(RRtcurtlinetfieldstctpm((s8/usr/lib/python2.6/site-packages/sepolgen/objectmodel.pyt	from_fileis$	7


(cCs|i||S(sGet the permission map for the object permission.

        Returns:
          PermMap representing the permission
        Raises:
          KeyError if the object or permission is not defined
        (R(RtobjR((s8/usr/lib/python2.6/site-packages/sepolgen/objectmodel.pytgetscCsBy|i||}Wn&tj
ot||i|iSX|S(sGet the permission map for the object permission or a default.

        getdefault is the same as get except that a default PermMap is
        returned if the object class or permission is not defined. The
        default is FLOW_BOTH with a weight of 5.
        (RtKeyErrorR
RR(RR,RR*((s8/usr/lib/python2.6/site-packages/sepolgen/objectmodel.pyt
getdefaults
cCs:t}x-|D]%}|i||}||iB}q
W|S(N(t	FLOW_NONER/R(RR,tpermsRRR*((s8/usr/lib/python2.6/site-packages/sepolgen/objectmodel.pytgetdefault_directionscCs:d}x-|D]%}|i||}||i7}q
W|S(Ni(R/R(RR,R1ttotalRR*((s8/usr/lib/python2.6/site-packages/sepolgen/objectmodel.pytgetdefault_distances(	RRRRR+R-R/R2R4(((s8/usr/lib/python2.6/site-packages/sepolgen/objectmodel.pyR^s			
	
	N(((
Rtimplicitly_typed_objectsR0t	FLOW_READt
FLOW_WRITERR$RR
R(((s8/usr/lib/python2.6/site-packages/sepolgen/objectmodel.pyt<module>s
""

Youez - 2016 - github.com/yon3zu
LinuXploit