From: Mu-Woong Date: Mon, 13 Jul 2015 05:47:37 +0000 (+0900) Subject: Disable client smack rule checker. X-Git-Tag: submit/tizen_tv/20150713.082057^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b7279532f4c8212b597bc0b1d6d14ef2bc92f4c;p=platform%2Fcore%2Fapi%2Fcontext.git Disable client smack rule checker. It needs to be re-implemented using Cynara. Change-Id: I01ddc61cfe001f95c64cf0e3d9f01746772c0d27 Signed-off-by: Mu-Woong --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 1975ded..888350b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/packaging/context.spec b/packaging/context.spec index 2769739..cbfc747 100644 --- a/packaging/context.spec +++ b/packaging/context.spec @@ -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 diff --git a/src/priv_util.cpp b/src/priv_util.cpp index d81479f..6f42557 100644 --- a/src/priv_util.cpp +++ b/src/priv_util.cpp @@ -15,13 +15,14 @@ */ #include -#include #include #include #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; }