lxcpp: Initial implementation of the start API call 48/47548/22
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Wed, 29 Jul 2015 11:27:25 +0000 (13:27 +0200)
committerLukasz Pawelczyk <l.pawelczyk@samsung.com>
Wed, 16 Sep 2015 14:08:20 +0000 (16:08 +0200)
commit61e31300c53fb090f48930f4d4462e6bc9218be1
treed9b4c4b609c92363037f1656d73754a06cf70562
parent3166537b1ec126be9343551b0d7801a89c08e637
lxcpp: Initial implementation of the start API call

[Feature]       Initial implementation of the start API call.
[Verification]  Build, install, run tests

Significant changes related to the start API call:
- Start command that daemonizes and execs guard binary
- Guard process implementation that execs the container's init

Additional changes in this commit supporting the Start API call:
- API extension to Channel class, support close on exec and be able
  to survive (as a FD) exec() call
- set close on exec in persistent file logger
- new logger helper to setup the logger
- add pid to the log format

Change-Id: I2d9648e2a861add2aa1bd1d66587bff2a109cc9c
26 files changed:
CMakeLists.txt
common/utils/channel.cpp
common/utils/channel.hpp
libs/logger/backend-persistent-file.hpp
libs/logger/formatter.cpp
libs/logger/level.hpp
libs/logger/logger.cpp
libs/logger/logger.hpp
libs/lxcpp/CMakeLists.txt
libs/lxcpp/commands/attach.cpp
libs/lxcpp/commands/start.cpp [new file with mode: 0644]
libs/lxcpp/commands/start.hpp [new file with mode: 0644]
libs/lxcpp/container-config.hpp [new file with mode: 0644]
libs/lxcpp/container-impl.cpp
libs/lxcpp/container-impl.hpp
libs/lxcpp/container.hpp
libs/lxcpp/exception.hpp
libs/lxcpp/guard/CMakeLists.txt [new file with mode: 0644]
libs/lxcpp/guard/guard.cpp [new file with mode: 0644]
libs/lxcpp/guard/guard.hpp [new file with mode: 0644]
libs/lxcpp/guard/main.cpp [new file with mode: 0644]
libs/lxcpp/logger-config.cpp [new file with mode: 0644]
libs/lxcpp/logger-config.hpp [new file with mode: 0644]
libs/lxcpp/utils.cpp [new file with mode: 0644]
libs/lxcpp/utils.hpp [new file with mode: 0644]
packaging/vasum.spec