Re: Removing %clean

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

 



On Tue, 26 May 2009 16:51:01 -0400, Bill wrote:

> Till Maas said: 
> > On Di Mai 26 2009, Tom "spot" Callaway wrote:
> > > On 05/26/2009 04:10 AM, Richard W.M. Jones wrote:
> > 
> > >  * Set the BuildRoot to / and cause massive system destruction
> > 
> > What about setting BuildRoot to /home or /etc, this would case similiar 
> > massive system destruction?
> 
> Well, also only if you're building as root. Which you shouldn't do
> anyways.

"rm -rf /home" for a normal user would remove the user's home directory.

The added risk for building as root user is due to bugs which may damage
the system installation because the buildroot is not a chroot. The
software that is built is not forced to install into the buildroot.  It is
asked to respect parameters like DESTDIR="$RPM_BUILD_ROOT" (provided that
$DESTDIR is supported, which is not true in all cases), but that doesn't
protect against bugs. It has happened before, for example, that unexpanded
[or wrongly expanded] variables caused a build framework to remove wrong
paths.

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux