Home | History | Annotate | Download | only in setools
      1 """The SETools SELinux policy analysis library."""
      2 # Copyright 2014-2015, Tresys Technology, LLC
      3 #
      4 # This file is part of SETools.
      5 #
      6 # SETools is free software: you can redistribute it and/or modify
      7 # it under the terms of the GNU Lesser General Public License as
      8 # published by the Free Software Foundation, either version 2.1 of
      9 # the License, or (at your option) any later version.
     10 #
     11 # SETools is distributed in the hope that it will be useful,
     12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
     13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     14 # GNU Lesser General Public License for more details.
     15 #
     16 # You should have received a copy of the GNU Lesser General Public
     17 # License along with SETools.  If not, see
     18 # <http://www.gnu.org/licenses/>.
     19 #
     20 __version__ = "4.0.1"
     21 
     22 import logging
     23 
     24 # Python classes for policy representation
     25 from . import policyrep
     26 from .policyrep import SELinuxPolicy
     27 
     28 # Exceptions
     29 from . import exception
     30 
     31 # Component Queries
     32 from .boolquery import BoolQuery
     33 from .categoryquery import CategoryQuery
     34 from .commonquery import CommonQuery
     35 from .objclassquery import ObjClassQuery
     36 from .polcapquery import PolCapQuery
     37 from .rolequery import RoleQuery
     38 from .sensitivityquery import SensitivityQuery
     39 from .typequery import TypeQuery
     40 from .typeattrquery import TypeAttributeQuery
     41 from .userquery import UserQuery
     42 
     43 # Rule Queries
     44 from .mlsrulequery import MLSRuleQuery
     45 from .rbacrulequery import RBACRuleQuery
     46 from .terulequery import TERuleQuery
     47 
     48 # Constraint queries
     49 from .constraintquery import ConstraintQuery
     50 
     51 # Other queries
     52 from .boundsquery import BoundsQuery
     53 from .defaultquery import DefaultQuery
     54 
     55 # In-policy Context Queries
     56 from .fsusequery import FSUseQuery
     57 from .genfsconquery import GenfsconQuery
     58 from .initsidquery import InitialSIDQuery
     59 from .netifconquery import NetifconQuery
     60 from .nodeconquery import NodeconQuery
     61 from .portconquery import PortconQuery
     62 from .ioportconquery import IoportconQuery
     63 from .iomemconquery import IomemconQuery
     64 from .pirqconquery import PirqconQuery
     65 from .pcideviceconquery import PcideviceconQuery
     66 from .devicetreeconquery import DevicetreeconQuery
     67 
     68 # Information Flow Analysis
     69 from .infoflow import InfoFlowAnalysis
     70 from .permmap import PermissionMap
     71 
     72 # Domain Transition Analysis
     73 from .dta import DomainTransitionAnalysis
     74 
     75 # Policy difference
     76 from .diff import PolicyDifference
     77 
     78 logging.getLogger(__name__).addHandler(logging.NullHandler())
     79