Commit Graph

73 Commits

Author SHA1 Message Date
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
Jake Valletta
1655fb7e56 Add error check for missing libsepol.so
The setup.py script attempts to locate the 'libsepol.so' library
if the SEPOL environment variable is not set, but does not fail
safely if the find fails. This commit adds error checking if the
'libsepol.so' is not located.
2016-05-10 14:16:53 -04:00
Chris PeBenito
a87015d4b5 Merge pull request #143 from jbrindle/master
bison generates unreachable code
2016-05-09 12:42:04 -04:00
Joshua Brindle
f6ed116a81 bison generates unreachable code 2016-05-09 11:02:21 -04:00
Chris PeBenito
d6f94d53c7 apol: Replace icons with icons from the current theme.
Koloria license may be problematic for some distributions.
2016-05-05 09:47:51 -04:00
Chris PeBenito
fa13413eec Move linux_types.h to libqpol directory. 2016-04-25 11:09:51 -04:00
Chris PeBenito
d5589ecd43 setup.py: change version to 4.1-dev. 2016-04-22 14:32:43 -04:00
Chris PeBenito
a7fe3639ec Remove bzip2 dependency.
This was needed for bzipped .pp files, but loading modules is no longer
supported.
2016-04-22 13:48:39 -04:00
Joshua Brindle
495a7973d8 Darwin define, remove libselinux and libsepol shared lib, remove libqpol map, and add local include dir 2016-04-22 09:33:14 -04:00