summaryrefslogtreecommitdiff
path: root/classes/sanity.bbclass
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2007-07-04 08:11:45 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2007-07-04 08:11:45 +0000
commit6f93111dc360ddf9dcb2b10fd8e010f0fcb4338b (patch)
treec7ad66f791fa1d97f8bd9402759dc8d3832c988d /classes/sanity.bbclass
parent3acbf74f8f8890f4af9d875d052e45036f546613 (diff)
sanity: if OE is used by root user (userid 0) then raise error (from Poky)
Diffstat (limited to 'classes/sanity.bbclass')
-rw-r--r--classes/sanity.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index b84efb0848..d2fd4b0b04 100644
--- a/classes/sanity.bbclass
+++ b/classes/sanity.bbclass
@@ -49,6 +49,9 @@ def check_sanity(e):
print "Foo %s" % minversion
return
+ if 0 == os.getuid():
+ raise_sanity_error("Do not use Bitbake as root.")
+
messages = ""
if (LooseVersion(__version__) < LooseVersion(minversion)):