Disable security-server based privilege checker 96/42496/1
authorMu-Woong <muwoong.lee@samsung.com>
Mon, 29 Jun 2015 09:59:35 +0000 (18:59 +0900)
committerMu-Woong <muwoong.lee@samsung.com>
Mon, 29 Jun 2015 09:59:35 +0000 (18:59 +0900)
Change-Id: I01f622294af11f32eb8d4a025d85878f2ecb74e0
Signed-off-by: Mu-Woong <muwoong.lee@samsung.com>
src/access_control/privilege.cpp

index e1d79365909580b84ea69d7301b2411f04ead75d..e9991f82b58ae590c4fa0d40f9469b6a0e325c08 100644 (file)
@@ -16,7 +16,6 @@
 
 #include <string>
 #include <map>
-#include <security-server.h>
 #include <types_internal.h>
 #include "config_loader.h"
 #include "privilege.h"
@@ -53,6 +52,8 @@ void ctx::privilege_manager::set(const char* subject, const char* priv)
 
 bool ctx::privilege_manager::is_allowed(const char* pkg_id, const char* subject)
 {
+       /* TODO: need to be implemented using Cynara */
+#if 0
        IF_FAIL_RETURN_TAG(pkg_id && subject, true, _E, "Invalid parameter");
        IF_FAIL_RETURN_TAG(pkg_id[0]!='\0' && subject[0]!='\0', true, _E, "Invalid parameter");
 
@@ -71,4 +72,6 @@ bool ctx::privilege_manager::is_allowed(const char* pkg_id, const char* subject)
        IF_FAIL_RETURN_TAG(err == SECURITY_SERVER_API_SUCCESS, false, _E, "Privilege checking failed");
 
        return (result == 1);
+#endif
+       return true;
 }