summaryrefslogtreecommitdiffstats
path: root/redhat/extras/fileshareset/fileshareset.spec
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2021-05-01 00:02:09 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2021-05-01 18:12:39 +0200
commitab1604b61a44147623db257ebc0a92409c219bba (patch)
tree2dc85fa83cec971eb0b7963f8201966ca3c52895 /redhat/extras/fileshareset/fileshareset.spec
parent527c25ae5e2339f390ea77800ba743436f5911fd (diff)
downloadtde-packaging-ab1604b61a44147623db257ebc0a92409c219bba.tar.gz
tde-packaging-ab1604b61a44147623db257ebc0a92409c219bba.zip
RPM: update spec files after building 14.0.10
Diffstat (limited to 'redhat/extras/fileshareset/fileshareset.spec')
-rw-r--r--redhat/extras/fileshareset/fileshareset.spec10
1 files changed, 10 insertions, 0 deletions
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