When preparation of database connection fails, indicate this with a file fleg 85/155585/2
authorRafal Krypa <r.krypa@samsung.com>
Fri, 13 Oct 2017 16:46:50 +0000 (18:46 +0200)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 25 Oct 2017 13:21:32 +0000 (13:21 +0000)
commit9eca3bf51e42310b13afe5fc1a9f30cc8ae6f87c
tree0d44e18f3dc86a250bfd5030d54f662ae6c14cfd
parent250820e48a1de515fd32c62286a381b2aafbc3f7
When preparation of database connection fails, indicate this with a file fleg

A special file flag will be created by security-manager if it fails to
open its database or fails to initialize prepared statements.
This would indicate that database is either missing or broken. In such case
an empty file will be created at TZ_SYS_DB/.security-manager.db-broken

Change-Id: I6461b71134d6ce706d4295851a45840b3cf0be39
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
src/common/privilege_db.cpp