diff --git a/packaging/fts-rest-server.spec b/packaging/fts-rest-server.spec index 80364326c633db540181c5941519ec161b9517f4..6280425590ddd5c270a00b45160c62f23f2c3d14 100644 --- a/packaging/fts-rest-server.spec +++ b/packaging/fts-rest-server.spec @@ -83,6 +83,7 @@ cp fts3rest/ftsrestconfig %{buildroot}%{_sysconfdir}/fts3 if [ "$1" -eq "1" ] ; then semanage port -a -t http_port_t -p tcp 8446 setsebool -P httpd_can_network_connect on +setsebool -P httpd_execmem on semanage fcontext -a -t httpd_log_t "/var/log/fts3rest(/.*)?" restorecon -R /var/log/fts3rest fi @@ -92,9 +93,12 @@ fi if [ "$1" -eq "0" ] ; then semanage port -d -t http_port_t -p tcp 8446 setsebool -P httpd_can_network_connect off +setsebool -P httpd_execmem off fi ## Note: if SELinux rules need to be changed after first release, they should be set in an upgrade scriplet %changelog +* Tue Oct 13 2020 Carles Garcia Cabot - 0.1-2 +- Set SELinux httpd_execmem on * Tue May 19 2020 Carles Garcia Cabot - 0.1-1 -- First server package release \ No newline at end of file +- First server package release diff --git a/src/fts3rest/fts3rest/config/config.py b/src/fts3rest/fts3rest/config/config.py index 3f915c767999f8847325178c598ceccafb8e2d6d..5228aa29da71ce5e0c9640b18994df5aa5588c0a 100644 --- a/src/fts3rest/fts3rest/config/config.py +++ b/src/fts3rest/fts3rest/config/config.py @@ -27,7 +27,7 @@ def fts3_config_load(path="/etc/fts3/ftsrestconfig", test=False): """ fts3cfg = {} - parser = ConfigParser() + parser = ConfigParser(interpolation=None) parser.optionxform = str parser.read_file(path)