platform_external_selinux/python
Petr Lautrbach 8375671d30 python/sepolicy: Revert "Only invoke RPM on RPM-enabled Linux distributions"
Commit 73b7ff410c ("Only invoke RPM on RPM-enabled Linux distributions") used
platform.linux_distribution() function to detect whether the system is rpm
based. This function is deprecated since Python 3.5 and it's removed from Python
3.8 - https://bugs.python.org/issue28167

The original problem is already fixed by another commit
671f83b42b ("policycoreutils/sepolicy: Check get_rpm_nvr_list() return
value"):

    $ sepolicy generate --customize -p mypolicy -n testpolicy -d httpd_sys_script_t -w /home
    Failed to retrieve rpm info for selinux-policy
    Created the following files:
    mypolicy/testpolicy.te # Type Enforcement file
    mypolicy/testpolicy.if # Interface file
    mypolicy/testpolicy.fc # File Contexts file
    mypolicy/testpolicy_selinux.spec # Spec file
    mypolicy/testpolicy.sh # Setup Script

Fixes:
     File "/usr/lib/python3.8/site-packages/sepolicy/generate.py", line 1384, in generate
       if (platform.linux_distribution(full_distribution_name=0)[0] in ("redhat", "centos", "SuSE", "fedora", "mandrake", "mandriva")):
     AttributeError: module 'platform' has no attribute 'linux_distribution'

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
2019-11-08 09:20:35 -05:00
..
audit2allow Fix many misspellings 2019-09-18 22:47:35 +02:00
chcat python/chcat: remove unnecessary assignment 2019-09-17 10:38:49 -04:00
semanage python/semanage: Document DCCP and SCTP support 2019-10-23 10:24:38 -04:00
sepolgen Replace www.nsa.gov references by github.com/SELinuxProject 2019-11-08 09:20:29 -05:00
sepolicy python/sepolicy: Revert "Only invoke RPM on RPM-enabled Linux distributions" 2019-11-08 09:20:35 -05:00
COPYING Add COPYING files for new subdirs. 2016-11-16 11:19:51 -05:00
Makefile python: run all the tests with "make test" 2019-01-08 10:15:46 +01:00
VERSION Update VERSIONs to 3.0-rc1 for release. 2019-10-28 13:06:11 +01:00