Remove security-server dependency 80/37680/1 tizen_3.0.2015.q2_common accepted/tizen/common/20150407.101710 accepted/tizen/mobile/20150405.124207 accepted/tizen/tv/20150405.122335 accepted/tizen/wearable/20150405.123453 submit/tizen/20150403.075638
authorJi-hoon Jung <jh8801.jung@samsung.com>
Thu, 2 Apr 2015 11:40:45 +0000 (20:40 +0900)
committerJi-hoon Jung <jh8801.jung@samsung.com>
Thu, 2 Apr 2015 11:41:42 +0000 (20:41 +0900)
Signed-off-by: Ji-hoon Jung <jh8801.jung@samsung.com>
Change-Id: I415c9c188d178afafdb1cbd63f5b0e479165d0e4

packaging/smartcard-service.spec
server/CMakeLists.txt
server/ServerGDBus.cpp

index 84e86b9..d79a255 100644 (file)
@@ -20,7 +20,6 @@ Source1004:   smartcard-service-common-devel.manifest
 Source1005:    smartcard-service-server.manifest
 BuildRequires: pkgconfig(glib-2.0)
 BuildRequires: pkgconfig(gio-unix-2.0)
-BuildRequires: pkgconfig(security-server)
 BuildRequires: pkgconfig(dlog)
 BuildRequires: pkgconfig(aul)
 BuildRequires: pkgconfig(libssl)
index c3c26d1..a287198 100644 (file)
@@ -5,7 +5,7 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/common/include)
 
 AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/ SRCS)
 
-pkg_check_modules(pkgs_server REQUIRED glib-2.0 gio-2.0 gio-unix-2.0 security-server dlog)
+pkg_check_modules(pkgs_server REQUIRED glib-2.0 gio-2.0 gio-unix-2.0 dlog)
 FOREACH(flag ${pkgs_server_CFLAGS})
        SET(EXTRA_CXXFLAGS "${EXTRA_CXXFLAGS} ${flag}")
 ENDFOREACH(flag)
index f0f1b08..1a6a787 100644 (file)
 #include <string>
 #include <sys/socket.h>
 
-#ifdef USER_SPACE_SMACK
-#include "security-server.h"
-#endif
-
 #include "smartcard-types.h"
 #include "Debug.h"
 #include "ByteArray.h"
@@ -287,25 +283,7 @@ namespace smartcard_service_api
                const char *rights)
        {
                bool result = true;
-#ifdef USER_SPACE_SMACK
-               pid_t pid;
-               const char *name;
-               ClientInstance *instance;
-
-               name = g_dbus_method_invocation_get_sender(invocation);
-
-               instance = ServerResource::getInstance().getClient(name);
-               if (instance != NULL) {
-                       pid = instance->getPID();
-               } else {
-                       pid = ServerGDBus::getInstance().getPID(name);
-               }
-
-               result = (security_server_check_privilege_by_pid(
-                       pid,
-                       "smartcard-service",
-                       rights) == SECURITY_SERVER_API_SUCCESS);
-#endif
+               /*TODO : apply cynara api */
                return result;
        }