summaryrefslogtreecommitdiffstats
path: root/redhat/extras/fileshareset
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:08:57 +0200
commit3abe22ac0a163a1b27d831cbfbe1256b7117ab82 (patch)
tree0f41e96958c595284c049b8aa979d67ab33c6670 /redhat/extras/fileshareset
parentb4ae1bd8917e7d998552912b5eb15444c7f1b023 (diff)
downloadtde-packaging-3abe22ac0a163a1b27d831cbfbe1256b7117ab82.tar.gz
tde-packaging-3abe22ac0a163a1b27d831cbfbe1256b7117ab82.zip
RPM: update spec files after building 14.0.10
Diffstat (limited to 'redhat/extras/fileshareset')
-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