Chris PeBenito
562a181110
tests.yml: Enable Python 3.9 testing.
...
This requires NetworkX 2.6.
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2021-07-28 14:48:54 -04:00
Chris PeBenito
a7fd01467a
setup.py: Update for 4.5 dev.
...
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2021-03-05 11:20:11 -05:00
Chris PeBenito
f1b4a5d375
setup.py: Reduce aggressiveness of compiler flags.
...
The C code is generated by Cython, so SETools is dependent on Cython's
function.. If there is some misalignment between Cython and the Python
headers, for example, the code uses functions in Python 3.8 that are
deprecated in Python 3.9, that is temporary and not SETools' bug.
The unit tests are the standard for finding issues in SETools.
This addresses the current issue with Python 3.9 compiles:
setools/policyrep.c: In function ‘__pyx_pf_7setools_9policyrep_6AVRule_9statement’:
setools/policyrep.c:92274:3: error: ‘_PyUnicode_get_wstr_length’ is deprecated [-Werror=deprecated-declarations]
92274 | __pyx_t_1 = (__pyx_v_self->__pyx_base.rule_string != Py_None)&&(__Pyx_PyUnicode_IS_TRUE(__pyx_v_self->__pyx_base.rule_string) != 0);
| ^~~~~~~~~
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:97,
from setools/policyrep.c:52:
Closes #54
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2020-12-11 08:59:14 -05:00
Chris PeBenito
51429df385
Changelog/setup.py: Add sechecker.
...
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2020-06-25 09:10:15 -04:00
Chris PeBenito
ae9b784e6a
Update setup.py for 4.4 dev.
...
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2020-04-01 10:59:45 -04:00
Aleksei Nikiforov
59e183caac
Allow installing translated man pages
2019-01-09 12:44:02 +03:00
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