From: Pawel Andruszkiewicz
Date: Tue, 17 Mar 2015 15:08:45 +0000 (+0100)
Subject: [Common] Implementation of security access checks.
X-Git-Tag: submit/tizen_tv/20150603.064601~1^2~279
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b976d7d508d27a9bec53ff35915d71d7c245e36f;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git
[Common] Implementation of security access checks.
Change-Id: I7d0460d274e957487a6fa54a21f4caa73525f311
---
diff --git a/packaging/webapi-plugins.spec b/packaging/webapi-plugins.spec
index eadd7c3d..01d1a7f3 100755
--- a/packaging/webapi-plugins.spec
+++ b/packaging/webapi-plugins.spec
@@ -308,7 +308,7 @@ Tizen Web APIs implemented.
%build
export GYP_GENERATORS='ninja'
-GYP_OPTIONS="--depth=. -Dtizen=1 -Dextension_build_type=Debug -Dextension_host_os=%{profile}"
+GYP_OPTIONS="--depth=. -Dtizen=1 -Dextension_build_type=Debug -Dextension_host_os=%{profile} -Dprivilege_engine=DB"
GYP_OPTIONS="$GYP_OPTIONS -Ddisplay_type=x11"
# feature flags
diff --git a/src/common/common.gypi b/src/common/common.gypi
index d7698dff..a8ac6188 100644
--- a/src/common/common.gypi
+++ b/src/common/common.gypi
@@ -26,9 +26,35 @@
'dlog',
'glib-2.0',
'capi-appfw-app-manager',
- 'capi-appfw-package-manager'
+ 'capi-appfw-package-manager',
]
},
+ 'conditions': [
+ ['privilege_engine == "DB"', {
+ 'defines': ['PRIVILEGE_USE_DB'],
+ 'variables': {
+ 'packages': [
+ 'sqlite3',
+ ],
+ },
+ }],
+ ['privilege_engine == "ACE"', {
+ 'defines': ['PRIVILEGE_USE_ACE'],
+ 'variables': {
+ 'packages': [
+ 'sqlite3',
+ 'security-client',
+ ],
+ },
+ }],
+ ['privilege_engine == "CYNARA"', {
+ 'defines': ['PRIVILEGE_USE_CYNARA'],
+ 'variables': {
+ 'packages': [
+ ],
+ },
+ }],
+ ],
}, {
'sources/': [['exclude', '_tizen\\.cc$|tizen/']],
'includes/': [['exclude', '_tizen\\.gypi$|tizen/']],
diff --git a/src/common/extension.cc b/src/common/extension.cc
index de14fd8e..abd4cfb7 100644
--- a/src/common/extension.cc
+++ b/src/common/extension.cc
@@ -10,7 +10,18 @@
#include
#include