]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Do not use hardcoded paths in spec post section for selinux commands. 5596/head
authorMilan Broz <mbroz@redhat.com>
Tue, 18 Aug 2015 12:18:26 +0000 (14:18 +0200)
committerMilan Broz <mbroz@redhat.com>
Tue, 18 Aug 2015 12:25:20 +0000 (14:25 +0200)
Signed-off-by: Milan Broz <mbroz@redhat.com>
ceph.spec.in

index 9d63ee7af5b0d38b515391275a9f31fb3ff877e3..0c7eded0da7958e548137e9a7cbedd6e95135da1 100644 (file)
@@ -1143,9 +1143,9 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1
     /sbin/service ceph stop >/dev/null 2>&1 || :
 %endif
 
-semodule -n -i %{_datadir}/selinux/packages/ceph.pp
-if /usr/sbin/selinuxenabled ; then
-    /usr/sbin/load_policy
+%{_sbindir}/semodule -n -i %{_datadir}/selinux/packages/ceph.pp
+if %{_sbindir}/selinuxenabled ; then
+    %{_sbindir}/load_policy
     %relabel_files
 fi
 
@@ -1163,9 +1163,9 @@ if [ $1 -eq 0 ]; then
     %else
        /sbin/service ceph stop >/dev/null 2>&1 || :
     %endif
-    semodule -n -r ceph
-    if /usr/sbin/selinuxenabled ; then
-       /usr/sbin/load_policy
+    %{_sbindir}/semodule -n -r ceph
+    if %{_sbindir}/selinuxenabled ; then
+       %{_sbindir}/load_policy
        %relabel_files
     fi;
     %if 0%{?_with_systemd}