Bug 159986 - Check if running as root
Check if running as root
Status: CLOSED RAWHIDE
Product: Fedora Infrastructure
Classification: Retired
Component: extras buildsys (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Seth Vidal
Jeremy Katz
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-09 17:46 EDT by Andreas Thienemann
Modified: 2007-04-18 13:27 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-07-29 15:33:24 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Andreas Thienemann 2005-06-09 17:46:37 EDT
mock is unable to build packages when called as the root user.

Thus it would be advisable to check if mock is being called by uid == 0 and bail
out if that's the case.
Comment 1 Jeremy Katz 2005-06-12 19:35:48 EDT
Fixed in CVS

Note You need to log in before you can comment on or make changes to this bug.