Get dir locations from environment 19/56619/10
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 8 Jan 2016 12:32:28 +0000 (13:32 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 14 Jan 2016 08:38:36 +0000 (09:38 +0100)
commita61e9ce01fa45323b381e6456d07117516d2e55d
tree033ada39d5a6212a9c4d0d5282c53c551d0e9c20
parent8bc7217902a49348d31647251fe9f4937b08a5f3
Get dir locations from environment

[Problem] Key manager data dir location was hardcoded to /opt/data/ckm/. On
common profile image key-manager fails to start because of lack of /opt/data.
[Solution] Get directory locations from tizen platform config. Copy files
from old location if necessary. Make installation fail if runtime and compile
time settings differ. Provide upgrade script.

[Verification] Install key-manager package. Make sure all the content from
/opt/data/ckm/ has been moved to new location (/usr/data/ckm). Run tests. Make
sure all data is placed in new location. Run upgrade scripts
(/etc/opt/upgrad/*key-manager*.sh) on old version of ckm and check results.

Change-Id: Idafbe0fe43f1140c137f87883273b609a499b4cc
19 files changed:
CMakeLists.txt
data/scripts/230.key-manager-change-data-dir.patch.sh.in [new file with mode: 0755]
data/scripts/230.key-manager-migrate-dkek.patch.sh [deleted file]
data/scripts/231.key-manager-change-user.patch.sh [deleted file]
data/scripts/231.key-manager-migrate-dkek.patch.sh.in [new file with mode: 0755]
data/scripts/232.key-manager-change-user.patch.sh.in [new file with mode: 0755]
data/scripts/CMakeLists.txt [new file with mode: 0644]
packaging/key-manager.manifest.in [moved from packaging/key-manager.manifest with 60% similarity]
packaging/key-manager.spec
src/manager/crypto/sw-backend/store.cpp
src/manager/initial-values/initial-value-loader.cpp
src/manager/service/db-crypto.cpp
src/manager/service/file-system.cpp
tests/CMakeLists.txt
tests/encryption-scheme/CMakeLists.txt
tests/encryption-scheme/scheme-test.cpp
tests/test_db_crypto.cpp
tests/test_xml-parser.cpp
tools/ckm_db_tool/ckm_db_tool.cpp