diff options
author | Yann E. MORIN" <yann.morin.1998@free.fr> | 2013-01-10 22:38:48 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@free.fr> | 2013-01-10 22:38:48 +0100 |
commit | 1cabb74b7d629262319c9e348962088a0697fe33 (patch) | |
tree | a07a24a0e78a8d6ce1180103442d95972651023d /config/global | |
parent | ffe80db73c6b85ea08883fb9f7ca78101431e0a1 (diff) | |
download | crosstool-ng-1cabb74b7d629262319c9e348962088a0697fe33.tar.gz crosstool-ng-1cabb74b7d629262319c9e348962088a0697fe33.tar.bz2 crosstool-ng-1cabb74b7d629262319c9e348962088a0697fe33.zip |
scripts: check for running as root
Running as root is really, really dangerous.
Add a runtime-check that refuses to build if running as root.
Can be overriden with a double switch in the menuconfig.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'config/global')
-rw-r--r-- | config/global/ct-behave.in | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/config/global/ct-behave.in b/config/global/ct-behave.in index 6256a34e..ba723cf6 100644 --- a/config/global/ct-behave.in +++ b/config/global/ct-behave.in @@ -29,6 +29,37 @@ config EXPERIMENTAL - non-existant, in which case you could also try hacking it in and send me the result +config ALLOW_BUILD_AS_ROOT + bool + prompt "Allow building as root user (READ HELP!)" + depends on EXPERIMENTAL + help + You normally do *not* need to be root to build a toolchain using + crosstool-NG. In fact, it is *VERY* dangerous to run as root, as + crosstool-NG will, as part of the build process, remove a few + directories. If anything goes wrong, running as root can ruin + your host distribution. + + I can't stress it enough: DO NOT RUN AS ROOT !! + + Do not run as root, you've been warned. + Do not come whining, if it nukes your host system. + Do not come whining, if you lose any data. + Do not run as root. + + Do not run as root, you've been warned. + Do not come whining, if the Earth stops rotating. + Do not come whining, if kittens are smashed. + Do not run as root. + + Do not run as root, do not run as root! + (ad libitum) + +config ALLOW_BUILD_AS_ROOT_SURE + bool + prompt "Are you sure?" + depends on ALLOW_BUILD_AS_ROOT + config DEBUG_CT bool prompt "Debug crosstool-NG" |