/usr/lib/python3.6/site-packages/sepolgen/__pycache__
Edit: /usr/lib/python3.6/site-packages/sepolgen/__pycache__/objectmodel.cpython-36.pyc (3923B)
3
Klfv @ sp d Z ddddddddd g Zd
ZdZdZeeB Zeeeed
ZedededediZG dd dZG dd dZ dS )z
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.
ZsocketfdZprocessfileZlnk_fileZ fifo_fileZdbusZ
capabilityZunix_stream_socket )nrwbr r r r c @ s e Zd ZdZdd Zdd ZdS )PermMapa 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)permdirweight)selfr r r
r !/usr/lib/python3.6/objectmodel.py__init__T s zPermMap.__init__c C s d| j t| j | jf S )Nz'
)r
dir_to_strr r
)r r r r __repr__Y s zPermMap.__repr__N)__name__
__module____qualname____doc__r r r r r r r
M s r
c @ s@ e Zd ZdZdd Zdd Zdd Zdd Zd
d Zdd
Z dS )PermMappingszThe 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 i | _ d| _t| _d S )N )classesdefault_weight FLOW_BOTHdefault_dir)r r r r r d s zPermMappings.__init__c C s d}x|D ]}|j }t|dks
t|dks
|d dkr