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 #try: 21 # import pkg_resources 22 # # pylint: disable=no-member 23 # __version__ = pkg_resources.get_distribution("setools").version 24 #except ImportError: # pragma: no cover 25 # __version__ = "unknown" 26 __version__ = "3.3.8" 27 28 # Python classes for policy representation 29 from . import policyrep 30 from .policyrep import SELinuxPolicy 31 32 # Exceptions 33 from . import exception 34 35 # Component Queries 36 from .boolquery import BoolQuery 37 from .categoryquery import CategoryQuery 38 from .commonquery import CommonQuery 39 from .objclassquery import ObjClassQuery 40 from .polcapquery import PolCapQuery 41 from .rolequery import RoleQuery 42 from .sensitivityquery import SensitivityQuery 43 from .typequery import TypeQuery 44 from .typeattrquery import TypeAttributeQuery 45 from .userquery import UserQuery 46 47 # Rule Queries 48 from .mlsrulequery import MLSRuleQuery 49 from .rbacrulequery import RBACRuleQuery 50 from .terulequery import TERuleQuery 51 52 # Constraint queries 53 from .constraintquery import ConstraintQuery 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 63 # Information Flow Analysis 64 from .infoflow import InfoFlowAnalysis 65 from .permmap import PermissionMap 66 67 # Domain Transition Analysis 68 from .dta import DomainTransitionAnalysis 69