selinux/python
Nicolas Iooss df135b07a7 python/sepolicy: Initialize policy.ports as a dict in generate.py
in class policy, ports is usually initialized with the result of
get_all_ports(), which is a dict. If this function failed, the error was
not fatal but ports was left initialized as a list, which would trigger
other errors when accessing it.

Initialize ports as an empty dict in order to fix this issue.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2018-02-23 15:23:47 -05:00
..
audit2allow python: build: follow standard semantics for DESTDIR and PREFIX 2018-02-14 20:02:01 +01:00
chcat python: build: follow standard semantics for DESTDIR and PREFIX 2018-02-14 20:02:01 +01:00
semanage python: build: move modules from platform-specific to platform-shared 2018-02-14 20:02:02 +01:00
sepolgen python: build: move modules from platform-specific to platform-shared 2018-02-14 20:02:02 +01:00
sepolicy python/sepolicy: Initialize policy.ports as a dict in generate.py 2018-02-23 15:23:47 -05: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 VERSION files for 2.7 release. 2017-08-04 09:31:00 -04:00