diff --git a/glpi-httpd.conf b/glpi-httpd.conf index e17d296..6d5b5b9 100644 --- a/glpi-httpd.conf +++ b/glpi-httpd.conf @@ -4,8 +4,6 @@ Alias /glpi /usr/share/glpi Options None AllowOverride Limit Options FileInfo - php_value memory_limit 64M - Require all granted @@ -36,10 +34,11 @@ Alias /glpi /usr/share/glpi ErrorDocument 403 "

Restricted area.
Only local access allowed.
Check your configuration or contact your administrator.

" - # migration could be very long - php_value max_execution_time 0 - php_value memory_limit -1 - + + # migration could be very long + php_value max_execution_time 0 + php_value memory_limit -1 + @@ -67,4 +66,3 @@ Alias /glpi /usr/share/glpi # DocumentRoot /usr/share/glpi # ServerName glpi.example.com # - diff --git a/glpi.spec b/glpi.spec index 4884392..f4b524e 100644 --- a/glpi.spec +++ b/glpi.spec @@ -7,7 +7,7 @@ # Please, preserve the changelog entries # -%if 0%{?fedora} < 20 && 0%{?rhel} < 7 +%if 0%{?fedora} < 20 # See https://bugzilla.redhat.com/1033025 # selinux-policy : Please include policy for GLPI %global useselinux 1 @@ -28,7 +28,7 @@ Name: glpi Version: 0.84.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Free IT asset management software Summary(fr): Gestion Libre de Parc Informatique @@ -228,8 +228,7 @@ done >%{name}.lang semanage fcontext -a -s system_u -t httpd_sys_rw_content_t -r s0 "%{_sysconfdir}/%{name}(/.*)?" semanage fcontext -a -s system_u -t httpd_sys_content_t -r s0 "%{_datadir}/%{name}(/.*)?" semanage fcontext -a -s system_u -t httpd_log_t -r s0 "%{_localstatedir}/log/%{name}(/.*)?" -# keep httpd_sys_rw_content_t (httpd_var_lib_t prevent dir creation) -semanage fcontext -a -s system_u -t httpd_sys_rw_content_t -r s0 "%{_localstatedir}/lib/%{name}(/.*)?" +semanage fcontext -a -s system_u -t httpd_var_lib_t -r s0 "%{_localstatedir}/lib/%{name}(/.*)?" # files created by app restorecon -R %{_sysconfdir}/%{name} restorecon -R %{_datadir}/%{name} @@ -291,6 +290,11 @@ fi %changelog +* Fri Nov 7 2014 Remi Collet - 0.84.8-2 +- use httpd_var_lib_t selinux context for /var/lib/glpi +- don't rely on system selinux policy in EPEL-7 +- fix apache configuration when mod_php not enabled + * Fri Oct 17 2014 Remi Collet - 0.84.8-1 - update to 0.84.8 https://forge.indepnet.net/versions/1072