mirror of
https://github.com/ceph/ceph
synced 2025-01-02 09:02:34 +00:00
rpm: Drop SELinux priority setting
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>
This commit is contained in:
parent
43b66f9721
commit
7e606f29f4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user