Fix contraints for app installation. 50/65350/11
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 6 Apr 2016 13:55:20 +0000 (15:55 +0200)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 22 Jul 2016 15:04:44 +0000 (08:04 -0700)
commit87293e03e6d52ec255a61eaf99f75bbf29a6001c
tree4fa634e18e9b8bad46a51df2f00340ac8186c235
parenta6617fad4a4e3b22d5f1f2fdc02c34041128aaf2
Fix contraints for app installation.

[Problem] It's possible to insert an app similar to existing one (differs with
version, pkg name, author name) or pollute the db with unused entries in pkg
and author.
[Solution] Split app table into app(package) and user_app(instances). Introduce
more strict constraint checking.

[Verification] Run security-manager-tests --regexp=49 (and all remaining tests
as a regression check)

Change-Id: I2fb02f75981748024de93c2d486fa6eb8afaf88a
db/db.sql
db/updates/update-db-to-v6.sql [new file with mode: 0644]
src/common/include/privilege_db.h
src/common/service_impl.cpp