ANN: SETools 4.0.0-alpha2
Tresys has released SETools 4.0.0-alpha2:
https://github.com/TresysTechnology/setools/releases/tag/4.0.0-alpha2
In this release, SETools has been updated to support Python 3 (tested with 3.3 and 3.4) and includes travis-ci testing[1]. Many features are complete or nearly complete (full list at the end of the email) and available for use via the CLI tools. The GUI tools have not yet been started.
Warning: If you replace the SETools 3.x on your system, it will break the couple of tools from sepolgen/policycoreutils that depend on SETools (e.g. sepolicy) since libqpol/libapol C libraries and their corresponding SWIG wrappers are no longer provided.
If you are interested in contributing, GitHub's pull request feature is preferred for submitting patches. Please include unit tests.
SETools requires the following development packages for building:
Python 2.7 or 3.3+
setuptools
gcc
bison
flex
libselinux
libsepol 2.4+
libbz2
SWIG 2.0.12+ or 3.0+
To run SETools, the following packages are required:
Python 2.7 or 3.3+
NetworkX 1.8+
setuptools
libselinux
libsepol 2.4+
libbz2
Completed (and nearly completed) features:
* TE rule query
* RBAC rule query
* MLS rule query (range_transition; except for range criteria)
* Type query
* Role query
* User query (except level/range criteria)
* Object class query
* Common query
* Boolean query
* Policy capability query
* All context queries (portcon, genfscon, etc, except range criteria)
* Information flow analysis
* Domain transition analysis
[1] https://travis-ci.org/TresysTechnology/setools
Signature · 3 lines
Chris PeBenito Tresys Technology, LLC www.tresys.com | oss.tresys.com
Quoted 10 lines · Christopher J. PeBenito
Tresys has released SETools 4.0.0-alpha2:
https://github.com/TresysTechnology/setools/releases/tag/4.0.0-alpha2
In this release, SETools has been updated to support Python 3 (tested with 3.3 and 3.4) and includes travis-ci testing[1]. Many features are complete or nearly complete (full list at the end of the email) and available for use via the CLI tools. The GUI tools have not yet been started.
Quoted 4 lines
Warning: If you replace the SETools 3.x on your system, it will break the couple of tools from sepolgen/policycoreutils that depend on SETools (e.g. sepolicy) since libqpol/libapol C libraries and their corresponding SWIG wrappers are no longer provided.
Should we then import libqpol and libapol into the upstream selinux? We never should have added dependencies on setools to the core selinux userspace in the first place, as it creates a cyclic dependency. Doesn't look like libapol and libqpol have other dependencies themselves beyond what we already require for selinux userspace unless I am missing something.
Quoted 40 lines
If you are interested in contributing, GitHub's pull request feature is preferred for submitting patches. Please include unit tests.
SETools requires the following development packages for building:
Python 2.7 or 3.3+
setuptools
gcc
bison
flex
libselinux
libsepol 2.4+
libbz2
SWIG 2.0.12+ or 3.0+To run SETools, the following packages are required:
Python 2.7 or 3.3+
NetworkX 1.8+
setuptools
libselinux
libsepol 2.4+
libbz2Completed (and nearly completed) features:
* TE rule query
* RBAC rule query
* MLS rule query (range_transition; except for range criteria)
* Type query
* Role query
* User query (except level/range criteria)
* Object class query
* Common query
* Boolean query
* Policy capability query
* All context queries (portcon, genfscon, etc, except range criteria)
* Information flow analysis
* Domain transition analysis
Quoted 11 lines · Stephen Smalley
Quoted 10 lines · Christopher J. PeBenito
Tresys has released SETools 4.0.0-alpha2:
https://github.com/TresysTechnology/setools/releases/tag/4.0.0-alpha2
In this release, SETools has been updated to support Python 3 (tested with 3.3 and 3.4) and includes travis-ci testing[1]. Many features are complete or nearly complete (full list at the end of the email) and available for use via the CLI tools. The GUI tools have not yet been started.
Quoted 6 lines
Quoted 4 lines
Warning: If you replace the SETools 3.x on your system, it will break the couple of tools from sepolgen/policycoreutils that depend on SETools (e.g. sepolicy) since libqpol/libapol C libraries and their corresponding SWIG wrappers are no longer provided.
Should we then import libqpol and libapol into the upstream selinux?
You could, but I think it would be an overkill (particularly libapol), based on what I can understand of sepolicy's needs, which is iterating over policy objects plus a little basic avtab searching. It's also CIL-ignorant (not that SETools 4 is CIL-aware). You'll also need to iron out the autotools usage.
A library that replaced only the needed functions might be pretty easily doable by leveraging existing dispol code. A longer term, more comprehensive solution would be having a CIL-aware query library upstream (something that provides iteration over the policy contents, symbol lookups, etc.), which would be broadly useful for sepolicy, SETools, admin tools, etc. since libsepol isn't really designed with policy query in mind (which is why we created libqpol).
Quoted 2 lines
We never should have added dependencies on setools to the core selinux userspace in the first place, as it creates a cyclic dependency.
Hopefully it would easy to port sepolicy to SETools 4 since both are Python, which would be a solution until the dependency cycle can be broken. I haven't fully looked to see what that would take, since I haven't dissected sepolicy's C Python extension.
Quoted 3 lines
Doesn't look like libapol and libqpol have other dependencies themselves beyond what we already require for selinux userspace unless I am missing something.
I don't think it has any additional dependencies on top of what SELinux userspace already has (unless you don't rip out autotools).
Signature · 3 lines
Chris PeBenito Tresys Technology, LLC www.tresys.com | oss.tresys.com