Proposal: rpm-4.2.2 should refuse to build as root
Michael K. Johnson
johnsonm at redhat.com
Tue Jan 6 16:43:35 UTC 2004
On Wed, Dec 31, 2003 at 02:42:00AM -1000, Warren Togami wrote:
> [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
> This would also completely solve this silly urban legend surrounding
> this ugly construct found within many spec files. If users cannot build
> as root, then BuildRoot being equal to "/" (which is incredibly unlikely
> to begin with) cannot destroy their system.
Uh, it can still remove *their* files, which would still be pretty
destructive. I'd say that piece should stay regardless.
michaelkjohnson
"He that composes himself is wiser than he that composes a book."
Linux Application Development -- Ben Franklin
http://people.redhat.com/johnsonm/lad/
More information about the fedora-devel-list
mailing list