selinux/python
Vit Mojzis e5f312667b
python/sepolicy: Update to work with setools-4.2.0
Change in internal setools API causes sepolicy to crash when processing
AVRules.

    File "python/sepolicy/sepolicy/__init__.py", line 277, in _setools_rule_to_dict
        if isinstance(rule, setools.policyrep.terule.AVRule):
    AttributeError: module 'setools.policyrep' has no attribute 'terule'

See https://github.com/SELinuxProject/setools/issues/8 for more details.

Stop using internal setools API:

- use AttributeError instead of setools specific exceptions
- evaluate conditional expressions using conditional.evaluate() instead
of qpol_symbol.is_enabled()

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2018-09-25 21:30:15 +02:00
..
audit2allow python: add xperms support to audit2allow 2018-06-16 10:36:14 +02:00
chcat python: build: follow standard semantics for DESTDIR and PREFIX 2018-02-14 20:02:01 +01:00
semanage semanage: add a missing space in ibendport help 2018-09-09 21:35:51 +02:00
sepolgen python: remove semicolon from end of lines 2018-08-19 17:55:19 +02:00
sepolicy python/sepolicy: Update to work with setools-4.2.0 2018-09-25 21:30:15 +02:00
COPYING Add COPYING files for new subdirs. 2016-11-16 11:19:51 -05:00
Makefile Move policycoreutils/{sepolicy,audit2allow,semanage,scripts/chcat*} and sepolgen to python. 2016-11-16 11:19:50 -05:00
VERSION Update VERSIONs to 2.8 for release. 2018-05-24 14:21:09 -04:00