Implement master and slave mode 44/32044/10
authorLukasz Kostyra <l.kostyra@samsung.com>
Thu, 27 Nov 2014 16:14:08 +0000 (17:14 +0100)
committerLukasz Kostyra <l.kostyra@samsung.com>
Wed, 6 May 2015 09:37:15 +0000 (11:37 +0200)
commitf868403e420691aa3c65173e5c75d9c7351c7d1d
tree3ffbed60e5a7fd732963f67c6ba87729fced0353
parent0a18023646c011eeb05abea4ec12fa1c5229728a
Implement master and slave mode

Final patch with master and slave mode implementation. Every container should
have its own privilege DB - slave will delegate calls to SMACK and to Cynara
Administrative Socket to master.

[Verification]  Build, install, run tests on hosts - no changes should occur.
                Run tests in containers:
                  * Run a container
                  * bind-mount /run/security-manager-master.socket and
                    /run/cynara/cynara.socket to container
                  * Run tests
                Keep in mind, some might fail due to tests not being
                container-aware.

Change-Id: Ibd1d884ad7dba6a15ebaa068c2c216a88562eb50
17 files changed:
src/client/client-security-manager.cpp
src/common/CMakeLists.txt
src/common/include/master-req.h [new file with mode: 0644]
src/common/include/protocols.h
src/common/include/service_impl.h
src/common/include/smack-labels.h
src/common/include/smack-rules.h
src/common/include/zone-utils.h [new file with mode: 0644]
src/common/master-req.cpp [new file with mode: 0644]
src/common/service_impl.cpp
src/common/smack-labels.cpp
src/common/smack-rules.cpp
src/common/zone-utils.cpp [new file with mode: 0644]
src/server/CMakeLists.txt
src/server/service/include/master-service.h
src/server/service/master-service.cpp
src/server/service/service.cpp