??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 178
ó
â„^c @ s d Z d d l Z d d l Z d d l j Z y d d l TWn n Xd d l m Z d d l m Z d d l m Z d d l m
Z
d d l m Z d d
l m Z d Z
d Z d Z d
d d „ ƒ YZ d e d „ Z d „ Z d d d „ ƒ YZ d „ Z d S( s>
classes and algorithms for the generation of SELinux policy.
iÿÿÿÿN( t *i ( t refpolicy( t objectmodel( t access( t
interfaces( t matching( t utili i t PolicyGeneratorc B sŒ e Z d Z d d „ Z d d d „ Z e d „ Z e d „ Z d „ Z
d „ Z d d „ Z d „ Z
d
„ Z d „ Z d „ Z d
„ Z RS( s¤ Generate a reference policy module from access vectors.
PolicyGenerator generates a new reference policy module
or updates an existing module based on requested access
in the form of access vectors.
It generates allow rules and optionally module require
statements and reference policy interfaces. By default
only allow rules are generated. The methods .set_gen_refpol
and .set_gen_requires turns on interface generation and
requires generation respectively.
PolicyGenerator can also optionally add comments explaining
why a particular access was allowed based on the audit
messages that generated the access. The access vectors
passed in must have the .audit_msgs field set correctly
and .explain set to SHORT|LONG_EXPLANATION to enable this
feature.
The module created by PolicyGenerator can be passed to
output.ModuleWriter to output a text representation.
c C s[ d | _ t | _ t | _ | r- | | _ n t j ƒ | _ t | _
d | _ d | _ d S( sø Initialize a PolicyGenerator with an optional
existing module.
If the module paramater is not None then access
will be added to the passed in module. Otherwise
a new reference policy module will be created.
N(
t Nonet ifgent NO_EXPLANATIONt explaint Falset gen_requirest moduelR t Modulet modulet dontauditt mislabledt domains( t selfR ( ( s8 /usr/lib64/python2.7/site-packages/sepolgen/policygen.pyt __init__D s c C s; | r$ t | | ƒ | _ t | _ n d | _ | j ƒ d S( s? Set whether reference policy interfaces are generated.
To turn on interface generation pass in an interface set
to use for interface generation. To turn off interface
generation pass in None.
If interface generation is enabled requires generation
will also be enabled.
N( t InterfaceGeneratorR t TrueR
R t" _PolicyGenerator__set_module_style( R t if_sett perm_maps( ( s8 /usr/lib64/python2.7/site-packages/sepolgen/policygen.pyt set_gen_refpolX s
c C s
| | _ d S( s& Set whether module requires are generated.
Passing in true will turn on requires generation and
False will disable generation. If requires generation is
disabled interface generation will also be disabled and
can only be re-enabled via .set_gen_refpol.
N( R
( R t status( ( s8 /usr/lib64/python2.7/site-packages/sepolgen/policygen.pyt set_gen_requiresj s c C s
| | _ d S( s) Set whether access is explained.
N( R ( R R ( ( s8 /usr/lib64/python2.7/site-packages/sepolgen/policygen.pyt set_gen_explaint s c C s
| | _ d S( N( R ( R R ( ( s8 /usr/lib64/python2.7/site-packages/sepolgen/policygen.pyt set_gen_dontaudity s c C s? | j r t } n t } x | j j ƒ D] } | | _ q( Wd S( N( R R R R t module_declarationsR ( R R t mod( ( s8 /usr/lib64/python2.7/site-packages/sepolgen/policygen.pyt __set_module_style| s
s 1.0c C s… d } x | j j ƒ D] } | } q W| sQ t j ƒ } | j j j d | ƒ n | | _ | | _ | j rx t
| _ n t | _ d S( s? Set the name of the module and optionally the version.
i N( R R R R t ModuleDeclarationt childrent insertt namet versionR R R ( R R&