diff options
author | Kevron Rees <kevron.m.rees@intel.com> | 2013-10-02 10:39:47 -0700 |
---|---|---|
committer | Kevron Rees <kevron.m.rees@intel.com> | 2013-10-02 10:39:47 -0700 |
commit | a920bf4fa0b7e7ed64b9a5e962a03f7fe73c62f0 (patch) | |
tree | 4eff485820bd1ffa77e8cb54ac89d072c139cad3 | |
parent | 29b69e6a8bc01649e8449e0ab31c64422bf8ea5f (diff) | |
download | automotive-message-broker-a920bf4fa0b7e7ed64b9a5e962a03f7fe73c62f0.tar.gz |
Error if ambd is run as root
-rw-r--r-- | ambd/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ambd/main.cpp b/ambd/main.cpp index 9ea11379..abfd124f 100644 --- a/ambd/main.cpp +++ b/ambd/main.cpp @@ -140,6 +140,11 @@ int main(int argc, char **argv) DebugOut::setOutput(logfile); } + if(getuid() == 0) + { + DebugOut(DebugOut::Error)<<"Running as root. This is dangerous."<<endl; + } + VehicleProperty::factory(); Core routingEngine; |