Add launchAsRoot and use it when adding new container 22/29022/4
authorLukasz Kostyra <l.kostyra@samsung.com>
Thu, 16 Oct 2014 12:44:52 +0000 (14:44 +0200)
committerJan Olszak <j.olszak@samsung.com>
Mon, 27 Oct 2014 08:49:45 +0000 (01:49 -0700)
commit46bf0c683aad2818f119c275042d39e8d7dcb19b
treecdb23251e209b87d09108339e2c6123b29b6e462
parent0533ba4677d802d3821e04eb6756d76180994843
Add launchAsRoot and use it when adding new container

[Feature]       Function launchAsRoot.
[Cause]         Some functions need to be launched as root.
[Solution]      Add launchAsRoot which forks, sets UID to 0 and then calls a function.
[Verification]  Build, install, run tests. Add new container - no copying errors should occur.

Change-Id: Iaf917108ea4c7c699d9f2d69c8100430daa4f9c4
common/utils/environment.cpp
common/utils/environment.hpp
common/utils/fs.cpp
server/containers-manager.cpp
server/server.cpp