Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
site-packages
/
sepolgen
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/site-packages/sepolgen/objectmodel.pyo
m "Qc @ s d Z d d d d d d d d d g Z d Z d Z d Z e e BZ h d e <d e <d e <d e <Z h e d <e d <e d <e d <Z d f d YZ d f d YZ d S( 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. t sockett fdt processt filet lnk_filet fifo_filet dbust capabilityt unix_stream_socketi i i t nt rt wt bt PermMapc B s t Z d Z d Z d Z RS( s A 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). c C s | | _ | | _ | | _ d S( N( t permt selft dirt weight( R R R R ( ( t8 /usr/lib/python2.4/site-packages/sepolgen/objectmodel.pyt __init__T s c C s d | i t | i | i f S( Ns' <sepolgen.objectmodel.PermMap %s %s %d>( R R t dir_to_strR R ( R ( ( R t __repr__Y s ( t __name__t __module__t __doc__R R ( ( ( R R M s t PermMappingsc B sD t Z d Z d Z d Z d Z d Z d Z d Z RS( s The 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. c C s h | _ d | _ t | _ d S( Ni ( R t classest default_weightt FLOW_BOTHt default_dir( R ( ( R R d s c C s6 d } x)| D]!} | i } t | d j p$ t | d j p | d d j o q n | d d j oK | d } | i i | o t d n h | i | <| i | } q t | d j o t d n | d j o t d n t | d t | d t | d } | | | i <q Wd S( ss Read the permission mappings from a file. This reads the format used by Apol in the setools suite. i i t #t classs duplicate class in perm mapi s"