fix gem permissions

Prior to this fix, some gems were installed with write permissions for the
owner group and everyone. With this patch, write permissions are removed
with chmod for all rubygems.

Resolves: RHEL-7716
This commit is contained in:
Michal Pospisil 2023-11-10 18:21:12 +01:00
parent e2eed6c9b4
commit 1a3ffa6e01

View File

@ -354,6 +354,10 @@ pwd
%make_install
# RHEL-7716 - fix rubygem permissions - remove write access for owner's group
# and other users
chmod --recursive g-w,o-w ${RPM_BUILD_ROOT}%{_libdir}/%{rubygem_bundle_dir}
# install pcs-web-ui
cp -r %{_builddir}/%{ui_src_name}/build ${RPM_BUILD_ROOT}%{_libdir}/%{pcsd_public_dir}/ui