Chris PeBenito
8d3b4d35a0
PEP8 fix in SELinuxPolicy.
2014-11-01 15:38:31 -04:00
Chris PeBenito
20c5998b54
Fix TERule __str__ handling for type_change and type_member rules.
2014-11-01 15:38:06 -04:00
Chris PeBenito
c48efb1c5f
Create a generator function for qpol iterators.
...
Makes them an Iterable in Python.
2014-11-01 15:32:13 -04:00
Chris PeBenito
0420764749
Whitespace change in qpol.i.
2014-11-01 13:48:44 -04:00
Chris PeBenito
f8cce2898b
Fix other missing parentheses in policy_define.c.
2014-10-31 20:38:28 -04:00
Chris PeBenito
6ff47214b1
Fix missing parentheses in policy_define.c.
2014-10-31 20:36:06 -04:00
Chris PeBenito
177c185a77
Correct SWIG wrapper to return IP address text representations for nodecons
...
Otherwise the Python would have to use unsafe cdata.i SWIG functions to
access the memory areas to do the same thing.
Also eliminate the QPOL_IPV4/QPOL_IPV6 from the protocol funtion, to
abstract away the binary policy representation details.
2014-10-30 15:44:37 -04:00
Chris PeBenito
d16207c114
Python 3: fix more dict .keys() usage.
...
Uncovered by 2to3. Unit tests now pass in Python 3.
2014-10-30 10:02:04 -04:00
Chris PeBenito
51d8e3e421
Fix more missed qpol refactoring.
2014-10-30 10:00:47 -04:00
Chris PeBenito
be32a92f79
Python 3: fix manual generator consuming
2014-10-29 21:51:19 -04:00
Chris PeBenito
1ece6b0c11
Python 3: fix dict .keys() usage.
2014-10-29 21:50:43 -04:00
Chris PeBenito
d6dcb66c68
Whitespace fixes in comments.
2014-10-29 21:15:44 -04:00
Chris PeBenito
5909bde15e
Fix missed swig wrapper rebasing.
2014-10-29 21:07:59 -04:00
Chris PeBenito
55519fa83b
Fix string .join() for Python 3.
2014-10-29 21:03:59 -04:00
Chris PeBenito
4bd1fe118d
Add copyright files to source distribution.
2014-10-29 14:28:26 -04:00
Chris PeBenito
c183796688
Add MANIFEST.in for setup sdist target.
2014-10-29 14:12:49 -04:00
Chris PeBenito
84b3e8b9f4
Update dependencies list.
2014-10-29 12:51:06 -04:00
Chris PeBenito
27be28ecf6
PEP8 whitespace fixes in setup.py.
2014-10-29 12:04:53 -04:00
Chris PeBenito
8a37ea0ed9
Remove generated files (lex/yacc)
...
Add setuptools/distutils commands to run bison and flex when building.
2014-10-29 12:03:44 -04:00
Chris PeBenito
4f681e42ea
Fix symbol comparison function.
...
For SWIG, need the .this to do correct pointer comparison.
2014-10-28 10:39:39 -04:00
Chris PeBenito
f28682b88e
Fix SWIG exception raising in qpol_policy constructor.
2014-10-28 10:37:47 -04:00
Chris PeBenito
09eef20a5c
Basic permission map implementation.
...
Drops sepolgen dependence.
2014-10-25 09:57:38 -04:00
Chris PeBenito
43e9019193
Use relative imports for submodules.
...
Needed for Python 3.x.
2014-10-25 08:07:11 -04:00
Chris PeBenito
bf02670cb6
Derive SETools version from setuptools pkg_resources.
2014-10-24 21:40:06 -04:00
Chris PeBenito
109ba68a92
Rename libapol package to setools.
2014-10-24 21:23:13 -04:00
Chris PeBenito
580ccf880e
Rebase policyrep to new qpol interface.
2014-10-24 21:08:22 -04:00
Chris PeBenito
8363f8edf7
Import libqpol from setools3.
...
Break setools3 dependence. Also fix SWIG wrapper to work with SWIG 2.x.
2014-10-24 21:00:24 -04:00
Chris PeBenito
8649a761fa
Add additional dta and infoflow test policy.
...
Get full test coverage on graph building functions.
2014-10-13 10:53:13 -04:00
Chris PeBenito
30c277745f
Remove unnecessary condition out of dta build graph.
2014-10-13 10:48:32 -04:00
Chris PeBenito
f63c637349
Update SETools 3 dependency
2014-10-10 13:29:37 -04:00
Chris PeBenito
cf0c64a757
Add initial SID query unit tests.
2014-10-10 10:28:09 -04:00
Chris PeBenito
e11b31de63
Fix regex compilation in ContextQuery
...
A copy-paste error.
2014-10-10 10:25:44 -04:00
Chris PeBenito
d1050e4d9c
Add initial SID query.
...
Range portion of context match still needs to be defined.
2014-10-08 11:31:05 -04:00
Chris PeBenito
61e0a852e5
Add permissive type query.
2014-10-02 14:29:07 -04:00
Chris PeBenito
0d5f9cff12
Tweak TERule conditional rendering.
...
No need for the cond intermediate object.
2014-10-02 11:42:17 -04:00
Chris PeBenito
04c18218b2
Add RBAC rule query unit tests.
2014-10-02 11:37:28 -04:00
Chris PeBenito
10e07c472a
Leverage new libqpol function for getting object class from role trans.
2014-10-01 10:53:04 -04:00
Chris PeBenito
3f90e48677
Add MLS level comparison.
2014-09-25 08:57:29 -04:00
Chris PeBenito
8de369a517
Add permissive type generator function.
2014-09-22 13:19:27 -04:00
Chris PeBenito
69a7b577b4
Add compact category notation implementation.
2014-09-17 15:38:53 -04:00
Chris PeBenito
32b1380626
Add __contains__ to ConditionalExpr.
...
For checking if a Boolean is in a conditional expression.
2014-08-26 09:25:20 -04:00
Chris PeBenito
c4325adf9c
Handle MLS-disabled policies in Context class.
...
Add an exception for when MLS is disabled.
2014-08-26 09:22:34 -04:00
Chris PeBenito
86b67ca96a
Initial constraints implementation.
2014-08-22 08:44:58 -04:00
Chris PeBenito
4e995cc13f
Convert unit tests over to assertListEqual where possible.
...
It makes determining what's wrong easier since it has a diff-style
output. Also put the expected list first, so the diff style makes sense.
2014-08-01 10:52:17 -04:00
Chris PeBenito
09554705c1
Clarify set/regex options in relevant queries.
...
Set logic is used except in regex matching.
2014-08-01 09:00:07 -04:00
Chris PeBenito
e379eea919
Misc PEP 8 fixes.
2014-08-01 08:58:31 -04:00
Chris PeBenito
997be5787b
Implement object class and commons queries.
2014-08-01 08:56:29 -04:00
Chris PeBenito
a15c7ffd9b
Change commons permission from list to set.
...
Order isn't relevant.
2014-08-01 08:50:42 -04:00
Chris PeBenito
c419b9c3f0
Implement ObjClass and Common classes.
2014-07-24 09:37:30 -04:00
Chris PeBenito
ef7b9add4c
Raise exception for None being returned from qpol.
...
The C code returns NULL for cases such as getting the conditional for
unconditional rules. The SWIG passes that up as None rather than
raising exceptions.
Update TERule for this change.
2014-07-24 09:33:03 -04:00