Matt Weber
bc36cba139
setup.py: drop path prefix from man install
...
If the directory is a relative path, it is interpreted relative to the
installation prefix (Python’s sys.prefix for pure-Python packages,
sys.exec_prefix for packages that contain extension modules).
So the sys.prefix should not be joined because the correct one will be
added regardless. The reason why a relative path is going to work is
because the installation path is built internally joining python root
with python prefix, thus forming the correct path $(TARGET_DIR)/usr.
(https://docs.python.org/3/distutils/setupscript.html#installing-additional-files )
For this man file install scenario, joining the sys.prefix makes the
path absolute (this was previously working by accident).
Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
2018-11-28 20:49:00 -06:00
Chris PeBenito
ce15d9b218
setup.py: Add additional information.
2018-11-12 11:50:26 -05:00
Chris PeBenito
42805258a1
Update version for 4.3 dev cycle.
2018-11-10 09:34:19 -05:00
Chris PeBenito
f8e12bbfd3
Update version for 4.2.0 release.
2018-11-10 08:45:36 -05:00
Chris PeBenito
41ab7cfdb7
Bump version to 4.2.0-rc.
2018-09-29 12:00:07 -04:00
Chris PeBenito
2b4d69d42e
Revise structure to make policyrep a module instead of a subpackage.
...
The setools.policyrep.exception module merged into setools.exception.
2018-08-11 20:46:01 -04:00
Chris PeBenito
79b56f4fa8
setup.py: Add cython annotation option.
2018-07-28 11:48:07 -04:00
Chris PeBenito
5198a35031
setup.py: Drop runtime_library_dirs.
...
Closes #5
2018-07-28 08:53:37 -04:00
Chris PeBenito
e240d7f242
setup.py: Enhance clean command for cython and other generated files.
...
For #4
2018-07-18 17:03:05 -04:00
Chris PeBenito
5fb7f95b65
setup.py: Add additional compiler flags for newer GCCs.
...
Closes #2
2018-07-14 15:53:23 -04:00
Chris PeBenito
b0fa01ee40
Bump version for 4.2.0-beta release.
2018-07-10 20:20:40 -04:00
Chris PeBenito
57e4f464bf
setup.py: Update build for local SELinux userspace code.
...
Now USERSPACE_SRC points to the top level directory that has the
libsepol, libselinux, and checkpolicy source trees.
2018-06-18 20:21:30 -04:00
Chris PeBenito
3d1c259aa4
Update documentation for repository move.
2018-06-16 08:29:31 -04:00
Chris PeBenito
4a98b8315b
Update code coverage configuration to include cython code.
2018-06-15 20:28:05 -04:00
Chris PeBenito
e6ea477889
SELinuxPolicy: Convert to direct sepol structure access.
2018-06-15 20:28:05 -04:00
Chris PeBenito
f012d55b11
policyrep: Convert TE rules to direct sepol structure access.
2018-06-15 20:26:49 -04:00
Chris PeBenito
aeecacc896
Conditional: Convert to direct sepol structure access. Add iterators.
2018-06-15 20:26:49 -04:00
Chris PeBenito
71cfccce06
RoleAllow/Transition: Convert to direct sepol structure access.
2018-06-15 20:26:49 -04:00
Chris PeBenito
f3f174df9e
Constraint: Convert to direct sepol structure use.
2018-06-15 20:26:49 -04:00
Chris PeBenito
f39347d81f
Bounds: Convert to direct sepol structure use. Add iterator.
2018-06-15 20:26:49 -04:00
Chris PeBenito
270a094a1e
SELinuxPolicy: Initial switch over to exported sepol library functions.
...
Also switch over to libselinux C use.
2018-06-15 20:26:49 -04:00
Chris PeBenito
5cba00bcdf
FileNameTERule: Convert to direct sepol data structure access. Add iterator.
2018-06-15 20:26:49 -04:00
Chris PeBenito
23d42f162f
MLSRule: Convert to direct sepol structure access. Add iterator.
2018-06-15 20:26:49 -04:00
Chris PeBenito
3d4b03691d
Context: Convert to direct sepol structure access.
2018-06-15 20:26:49 -04:00
Chris PeBenito
32d67a4c9a
Default: Convert to direct sepol structure access.
2018-06-15 20:26:49 -04:00
Chris PeBenito
42ec9f751a
User: Convert to direct sepol structure access. Add iterator
2018-06-15 20:26:49 -04:00
Chris PeBenito
d2896d6a53
Role: Convert to direct sepol structure access. Add iterators.
2018-06-15 20:26:49 -04:00
Chris PeBenito
c45205c5b0
policyrep: Convert type and typeattrs to direct sepol structure access.
...
Add iterators.
2018-06-15 20:26:49 -04:00
Chris PeBenito
d476f22055
policyrep: Convert MLS symbols and levels/ranges to direct sepol structure access.
...
Add iterators.
2018-06-15 20:26:49 -04:00
Chris PeBenito
8260b9b166
Boolean: Convert to direct sepol structure access. Add iterator.
2018-06-15 20:26:49 -04:00
Chris PeBenito
680664ba66
PolicyCapability: Convert to direct sepol structure access. Add iterator.
2018-06-15 20:26:49 -04:00
Chris PeBenito
a06d4a9476
Genfscon: Revise to directly use sepol data structures.
2018-06-15 20:26:49 -04:00
Chris PeBenito
80a95bd414
FSUse: Revise to directly use sepol data structures.
2018-06-15 20:26:49 -04:00
Chris PeBenito
bb5004df2d
policyrep: Revise initial SIDs to directly use sepol data structures.
2018-06-15 20:26:49 -04:00
Chris PeBenito
2dd1e9366a
policyrep: Revise network contexts to directly use sepol data structures.
2018-06-15 20:26:49 -04:00
Chris PeBenito
9c053cc5fe
policyrep: Revise Xen contexts to directly use sepol data structures.
2018-06-15 20:26:49 -04:00
Chris PeBenito
c5b0348357
policyrep: Create a libsepol cython definition.
2018-06-15 20:26:49 -04:00
Chris PeBenito
8b0e93c0d6
Remove source policy loading support and module loading support.
2018-06-15 20:26:49 -04:00
Chris PeBenito
8c9c06e678
.travis.yml: Update for Cython use.
2018-06-15 20:26:49 -04:00
Chris PeBenito
51b53eb4a5
setup.py: Update for cython extension.
2018-06-15 20:26:49 -04:00
Chris PeBenito
cc313f9791
__future__ print functions no longer need importing.
2017-09-24 20:40:29 -04:00
Chris PeBenito
576268eeca
Use the suppress context manager where possible to improve readability.
2017-09-17 09:43:13 -04:00
Chris PeBenito
e292a77c52
Drop support for Python < 3.4.
2017-09-17 09:43:13 -04:00
Chris PeBenito
58f62bf627
Start 4.2 development.
2017-09-17 09:43:13 -04:00
Chris PeBenito
f8eaafc53f
setup.py: Update for travis-ci.
2017-08-05 15:55:35 -04:00
Nicolas Iooss
3868613c8f
Generate Apol compressed help file with "setup.py build_qhc"
...
"setup.py build_qhc" invokes qcollectiongenerator on qhc/apol.qhcp,
which produces two files:
- apol.qhc, a Qt Help Collection file
- apol.qch, a Qt Compressed Help file
As apol.qhc is merely a set of metadata with a relative link to
apol.qch, Qt Assistant requires both files in order to display Apol
help.
Make "setup.py build_qhc" build both files in setoolsgui/apol/.
Moreover '*.qch' needs to be added to package_data in order to install
apol.qch.
Fixes: https://github.com/TresysTechnology/setools/issues/165
2017-02-15 21:37:45 +01:00
Karl MacMillan
e743d2a0ea
Ftrules hashtab ( #164 )
...
* Search for libsepol in /usr/local
* Support filename transition and range transitions rules in the new hashtable storage of libsepol
* Fix off-by-one bug in traversing hashtables and minor compile fixes under Fedora 25.
* Remove debugging.
* The policy_define.c that uses hashtables was not setting the otype for filetrans_rules. This
appears intentional (the hashtable is just being filled out to detect duplicates based on the comments),
but for qpol was causing problems.
2017-01-23 18:27:22 -05:00
Chris PeBenito
42c2bbd606
Move data in as package data.
...
Closes #136 .
2016-11-12 11:13:21 -05:00
Chris PeBenito
60e8b9d7fb
setup.py: Support locally-built libsepol.
...
Set the SEPOL_SRC env. variable to the path to the compiled libsepol
source tree.
Closes #138
2016-11-11 18:21:48 -05:00
Chris PeBenito
6eaf7a26f5
libqpol: Remove unused syntactic rule functions.
2016-05-20 10:31:18 -04:00