diff options
Diffstat (limited to 'redhat/extras/fileshareset')
-rw-r--r-- | redhat/extras/fileshareset/fileshareset.spec | 10 |
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 |