From 5b7279532f4c8212b597bc0b1d6d14ef2bc92f4c Mon Sep 17 00:00:00 2001 From: Mu-Woong Date: Mon, 13 Jul 2015 14:47:37 +0900 Subject: [PATCH] Disable client smack rule checker. It needs to be re-implemented using Cynara. Change-Id: I01ddc61cfe001f95c64cf0e3d9f01746772c0d27 Signed-off-by: Mu-Woong --- CMakeLists.txt | 2 +- packaging/context.spec | 1 - src/priv_util.cpp | 5 ++++- 3 files changed, 5 insertions(+), 3 deletions(-) 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; } -- 2.7.4