Re: buildroot race condition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Till Maas <opensource@xxxxxxxxx> writes:

> an OpenSUSE packager made me aware of a race condition problem with a
> lot of fedora specs:
>
> http://lists.opensuse.org/opensuse-packaging/2007-02/msg00005.html

Was brought up already when $RPM_BUILD_ROOT was discussed....


> The solution is to make the following mandatory:
> %install
> rm -rf $RPM_BUILD_ROOT
> mkdir $RPM_BUILD_ROOT # this fails when $RPM_BUILD_ROOT already exists

Will work; another solution would be to use a secure %_tmpdir (which is
write and perhaps readable by the packager only). Packagers have to
setup %_topdir already so this should happen for %_tmpdir too.




Enrico

Attachment: pgpJy4Q9xVfwN.pgp
Description: PGP signature

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux