From ab1604b61a44147623db257ebc0a92409c219bba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sat, 1 May 2021 00:02:09 +0200 Subject: RPM: update spec files after building 14.0.10 --- redhat/extras/fileshareset/fileshareset.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'redhat/extras/fileshareset') diff --git a/redhat/extras/fileshareset/fileshareset.spec b/redhat/extras/fileshareset/fileshareset.spec index d48421788..3c7745b27 100644 --- a/redhat/extras/fileshareset/fileshareset.spec +++ b/redhat/extras/fileshareset/fileshareset.spec @@ -92,11 +92,21 @@ export LDFLAGS="$LDFLAGS -pie" mkdir -p "${RPM_BUILD_ROOT}%{_sysconfdir}/security/" echo "RESTRICT=yes" > "${RPM_BUILD_ROOT}%{_sysconfdir}/security/fileshare.conf" +# Remove setuid bit on some binaries. +chmod 0755 "%{?buildroot}%{_bindir}/fileshareset" + %clean %__rm -rf $RPM_BUILD_ROOT +%post +%if 0%{?suse_version} +# Sets permissions on setuid files (openSUSE specific) +%set_permissions %{_bindir}/fileshareset +%endif + + %files %defattr(-,root,root,-) %{_bindir}/filesharelist -- cgit v1.2.1