summaryrefslogtreecommitdiffstats
path: root/glpi.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-11-07 14:44:35 +0100
committerRemi Collet <fedora@famillecollet.com>2014-11-07 14:44:35 +0100
commitc383745aeff22bdb9be5af86e64682997b0248d3 (patch)
treeec7a5ef93492b18917ca0a61337de4c1b47cf82d /glpi.spec
parent3423933415297c1bbc6fa734225eabf635219bd3 (diff)
glpi: - 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
Diffstat (limited to 'glpi.spec')
-rw-r--r--glpi.spec12
1 files changed, 8 insertions, 4 deletions
diff --git a/glpi.spec b/glpi.spec
index c858cbd..4ca65ba 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
@@ -245,8 +245,7 @@ rm -rf %{buildroot}
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}
@@ -309,6 +308,11 @@ fi
%changelog
+* Fri Nov 7 2014 Remi Collet <remi@fedoraproject.org> - 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 <remi@fedoraproject.org> - 0.84.8-1
- update to 0.84.8
https://forge.indepnet.net/versions/1072