<p>Oh yes, you're right. Thanks. Feeling dumb now.</p>
<p>sent from my phone.</p>
<div class="gmail_quote">On 24 Aug 2011 14:51, "Paul Howarth" <<a href="mailto:paul@city-fan.org">paul@city-fan.org</a>> wrote:<br type="attribution">> On 08/22/2011 05:12 PM, Jonathan Underwood wrote:<br>
>> On 22 August 2011 16:59, Paul Howarth<<a href="mailto:paul@city-fan.org">paul@city-fan.org</a>>  wrote:<br>>>> I'm surprised this builds at all in mock: it's trying to give away ownership<br>
>>> of the file to root, which is a privileged operation. If you patch it not to<br>>>> try to do "-o root -g root" then it should work OK, and the resulting files<br>>>> will be owned by root anyway.<br>
>><br>>> Looking a little closer at the install script, it actually performs a<br>>> check to see if it is running as root, and if not doesn't set those<br>>> owner/group permissions - in other branches, this check works<br>
>> correctly. So the question is, why does mock in EPEL 5 run as root,<br>>> but not in EPEL6 and Fedora? This seems like a bit of a security<br>>> issue!<br>> <br>> It's not. Your spec file is missing a BuildRoot: tag, which is still <br>
> needed for EPEL-5. Without it, $RPM_BUILD_ROOT is not set and PREFIX <br>> (which upstream has renamed to DESTDIR) is thus empty, and the check for <br>> root never happens.<br>> <br>> Paul.<br>> <br>> _______________________________________________<br>
> epel-devel-list mailing list<br>> <a href="mailto:epel-devel-list@redhat.com">epel-devel-list@redhat.com</a><br>> <a href="https://www.redhat.com/mailman/listinfo/epel-devel-list">https://www.redhat.com/mailman/listinfo/epel-devel-list</a><br>
</div>