* because cert-svc does not provide c apis in Tizen 3.0.
* So we set default privilege as platform level temporarily.
*/
-#define DEFAULT_PRIVILEGE "http://tizen.org/privilege/internal/default/platform"
+#define DEFAULT_PRIVILEGE_PUBLIC "http://tizen.org/privilege/internal/default/public"
+#define DEFAULT_PRIVILEGE_PARTNER "http://tizen.org/privilege/internal/default/partner"
+#define DEFAULT_PRIVILEGE_PLATFORM "http://tizen.org/privilege/internal/default/platform"
static int _insert_privilege(char *manifest, uid_t uid)
{
int ret;
priv->text);
}
- if (getuid() == OWNER_ROOT)
+ if (getuid() == OWNER_ROOT) {
security_manager_app_inst_req_add_privilege(req,
- DEFAULT_PRIVILEGE);
+ DEFAULT_PRIVILEGE_PUBLIC);
+ security_manager_app_inst_req_add_privilege(req,
+ DEFAULT_PRIVILEGE_PARTNER);
+ security_manager_app_inst_req_add_privilege(req,
+ DEFAULT_PRIVILEGE_PLATFORM);
+ }
ret = security_manager_app_install(req);
if (ret != SECURITY_MANAGER_SUCCESS)