Migrate ss data to both of system/admin user db 95/81095/2
authorKyungwook Tak <k.tak@samsung.com>
Fri, 22 Jul 2016 04:29:17 +0000 (13:29 +0900)
committerKyungwook Tak <k.tak@samsung.com>
Tue, 26 Jul 2016 02:42:45 +0000 (11:42 +0900)
commitde4a7d545de7096a86beed56698e1eb3d726cda4
tree3c9003131dfdd5b9ec9a600de0fb66bc2bf42411
parentfac6b36b70367c5600cced824289d65529d705f0
Migrate ss data to both of system/admin user db

Some services changed from system to user and they should handle
migrated data and newly saved data differently by changing owner
label because user service cannot save to system db

To use key-manager uniformly by client who is in the case above,
migrated data is going to saved on both of system and admin user
(owner : 5001) db with owner "/User" because user service's smack label
is "User"

Change-Id: Ic3f3b2d02945a12ba2dd12cf9b303a640421afd2
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
12 files changed:
src/CMakeLists.txt
src/manager/common/protocols.cpp
src/manager/common/protocols.h
src/manager/service/ckm-logic.cpp
src/manager/service/ckm-logic.h
src/manager/service/ckm-service.cpp
src/manager/service/ss-crypto.cpp [new file with mode: 0644]
src/manager/service/ss-crypto.h [new file with mode: 0644]
src/manager/service/ss-migrate.cpp
src/manager/service/ss-migrate.h
tests/secure-storage-old-data/README
tools/ckm_db_tool/CMakeLists.txt