SPECS: webCDwriter.spec - correct atributes in %file
Elan Ruusamäe
glen at delfi.ee
Sun Oct 2 20:27:46 CEST 2005
On Sunday 02 October 2005 21:21, wolvverine wrote:
> Author: wolvverine Date: Sun Oct 2 18:21:45 2005 GMT
> Module: SPECS Tag: HEAD
> ---- Log message:
> - correct atributes in %file
> +for tool in cdrdao cdrecord mkisofs readcd
> +do
> + if [ ! -e %{_bindir}/CDWserver/bin/$tool ]; then
> + if [ -e %{_bindir}/$tool ]; then
> + cp -af %{_bindir}/$tool %{_bindir}/CDWserver/bin/ || :
> + else
> + cp -af /usr/local/bin/$tool %{_bindir}/CDWserver/bin/ 2> /dev/null ||
> : + fi
> + fi
> + if [ -e %{_bindir}/CDWserver/bin/$tool ]; then
> + %{__chown} root:%{CDWgroup} %{_bindir}/CDWserver/bin/$tool || :
> + %{__chmod} 4750 %{_bindir}/CDWserver/bin/$tool || :
> + fi
> +done
this is nonsense. please find other way to accomplish this.
copying binaries outside of rpm database, and even worse, making them suid,
makes the system vulnreable even the original packages were updated. and this
is done in %post? at least it should come with big fat warning and being
seprate script which admin may run if he wants (but not automatically in
%post)
even simple sudo could be better solution.
--
glen
More information about the pld-devel-en
mailing list