]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: Drop SELinux priority setting
authorBoris Ranto <branto@redhat.com>
Tue, 10 May 2016 16:20:13 +0000 (18:20 +0200)
committerNathan Cutler <ncutler@suse.com>
Mon, 23 May 2016 21:13:41 +0000 (23:13 +0200)
Older versions of semodule binary that are in Centos/RHEL do not
support priority setting, dropping it.

Fixes: #15822
Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit 7e606f29f499eac83ecb7053ea6874fcfd092924)

ceph.spec.in

index 8320a25030d915120d007a0902f79dc39e41331e..233af941676c5e10d44439f654a0a17aa751595c 100644 (file)
@@ -1416,7 +1416,7 @@ FILE_CONTEXT=/etc/selinux/${SELINUXTYPE}/contexts/files/file_contexts
 cp ${FILE_CONTEXT} ${FILE_CONTEXT}.pre
 
 # Install the policy
-/usr/sbin/semodule -X 100 -i %{_datadir}/selinux/packages/ceph.pp
+/usr/sbin/semodule -i %{_datadir}/selinux/packages/ceph.pp
 
 # Load the policy if SELinux is enabled
 if ! /usr/sbin/selinuxenabled; then