Replace a deprecated libprivilege-control API
authorSoo-Hyun Choi <sh9.choi@samsung.com>
Tue, 17 Sep 2013 06:54:34 +0000 (15:54 +0900)
committerHoseon LEE <hoseon46.lee@samsung.com>
Sun, 29 Sep 2013 08:09:26 +0000 (17:09 +0900)
    set_app_privilege() -> perm_app_set_privilege()

[Issue#]   N/A
[Problem]  set_app_privilege() will be deprecated.
[Cause]    API updates on libprivilege-control.
[Solution] Replaced the deprecated API.

src/api_new/runnable_widget_object.cpp
src/view/webkit/injected-bundle/wrt-injected-bundle.cpp
src/wrt-launchpad-daemon/include/access_control.h

index bedc0a1..3c3b929 100644 (file)
@@ -52,7 +52,7 @@ RunnableWidgetObject::RunnableWidgetObject(WidgetModelPtr &model) :
         // this code prevent that widget launch with "root" permission,
         // when developers launch by command in the shell
 
-        set_app_privilege(
+        perm_app_set_privilege(
                 DPL::ToUTF8String(m_widgetModel->TizenId).c_str(),
                 m_widgetModel->Type.Get().getApptypeToString().c_str(),
                 DPL::ToUTF8String(m_widgetModel->InstallPath.Get()).c_str()
index 838d1bf..cccfbbc 100644 (file)
@@ -456,8 +456,8 @@ void Bundle::didReceiveMessage(WKStringRef messageName, WKTypeRef messageBody)
                     _E("set_app_smack_label() failed");
                 }
 
-                _D("set_app_privilege(%s)", appPath.c_str());
-                set_app_privilege(tzPkgId.c_str(), PRIVILEGE_APP_TYPE, appPath.c_str());
+                _D("perm_app_set_privilege(%s)", appPath.c_str());
+                perm_app_set_privilege(tzPkgId.c_str(), PRIVILEGE_APP_TYPE, appPath.c_str());
             }
 
             /* This type of message is received when widget is restarting
index 25d849b..6d01636 100644 (file)
@@ -26,7 +26,7 @@ static inline int __set_access(const char* pkg_name,
                                const char* pkg_type,
                                const char* app_path)
 {
-    return set_app_privilege(pkg_name, pkg_type, app_path);
+    return perm_app_set_privilege(pkg_name, pkg_type, app_path);
 }
 
 #else