Disable client smack rule checker. 58/43658/1 accepted/tizen/mobile/20150713.111144 accepted/tizen/tv/20150713.111027 submit/tizen_mobile/20150713.082301 submit/tizen_tv/20150713.082057
authorMu-Woong <muwoong.lee@samsung.com>
Mon, 13 Jul 2015 05:47:37 +0000 (14:47 +0900)
committerMu-Woong <muwoong.lee@samsung.com>
Mon, 13 Jul 2015 05:47:37 +0000 (14:47 +0900)
It needs to be re-implemented using Cynara.

Change-Id: I01ddc61cfe001f95c64cf0e3d9f01746772c0d27
Signed-off-by: Mu-Woong <muwoong.lee@samsung.com>
CMakeLists.txt
packaging/context.spec
src/priv_util.cpp

index 1975ded..888350b 100644 (file)
@@ -10,7 +10,7 @@ FILE(GLOB_RECURSE SRCS src/*.cpp)
 MESSAGE("Sources: ${SRCS}")
 
 # Dependencies
-SET(DEPS "aul bundle pkgmgr-info libsmack capi-appfw-app-control context-common")
+SET(DEPS "aul bundle pkgmgr-info capi-appfw-app-control context-common")
 
 # Common Options
 INCLUDE(FindPkgConfig)
index 2769739..cbfc747 100644 (file)
@@ -11,7 +11,6 @@ BuildRequires: pkgconfig(aul)
 BuildRequires: pkgconfig(bundle)
 BuildRequires: pkgconfig(capi-appfw-app-control)
 BuildRequires: pkgconfig(pkgmgr-info)
-BuildRequires: pkgconfig(libsmack)
 BuildRequires: pkgconfig(context-common)
 
 %description
index d81479f..6f42557 100644 (file)
  */
 
 #include <glib.h>
-#include <sys/smack.h>
 #include <string>
 #include <types_internal.h>
 #include "priv_util.h"
 
 int ctx::privilege_util::is_allowed(const char* priv)
 {
+       /* TODO: Re-implement using Cynara */
+#if 0
        IF_FAIL_RETURN_TAG(priv, ERR_OPERATION_FAILED, _E, "Invalid parameter");
 
        char *subject = NULL;
@@ -40,4 +41,6 @@ int ctx::privilege_util::is_allowed(const char* priv)
                return ERR_PERMISSION_DENIED;
 
        return ERR_OPERATION_FAILED;
+#endif
+       return ERR_NONE;
 }