blob: 4d035534f32bb405f063b45876c5f0373f713108 [file] [log] [blame]
"""The SETools SELinux policy analysis library."""
# Copyright 2014-2015, Tresys Technology, LLC
#
# This file is part of SETools.
#
# SETools is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 2.1 of
# the License, or (at your option) any later version.
#
# SETools is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with SETools. If not, see
# <http://www.gnu.org/licenses/>.
#
#try:
# import pkg_resources
# # pylint: disable=no-member
# __version__ = pkg_resources.get_distribution("setools").version
#except ImportError: # pragma: no cover
# __version__ = "unknown"
__version__ = "3.3.8"
# Python classes for policy representation
from . import policyrep
from .policyrep import SELinuxPolicy
# Exceptions
from . import exception
# Component Queries
from .boolquery import BoolQuery
from .categoryquery import CategoryQuery
from .commonquery import CommonQuery
from .objclassquery import ObjClassQuery
from .polcapquery import PolCapQuery
from .rolequery import RoleQuery
from .sensitivityquery import SensitivityQuery
from .typequery import TypeQuery
from .typeattrquery import TypeAttributeQuery
from .userquery import UserQuery
# Rule Queries
from .mlsrulequery import MLSRuleQuery
from .rbacrulequery import RBACRuleQuery
from .terulequery import TERuleQuery
# Constraint queries
from .constraintquery import ConstraintQuery
# In-policy Context Queries
from .fsusequery import FSUseQuery
from .genfsconquery import GenfsconQuery
from .initsidquery import InitialSIDQuery
from .netifconquery import NetifconQuery
from .nodeconquery import NodeconQuery
from .portconquery import PortconQuery
# Information Flow Analysis
from .infoflow import InfoFlowAnalysis
from .permmap import PermissionMap
# Domain Transition Analysis
from .dta import DomainTransitionAnalysis