remove security-server dependency 08/43408/1 tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/mobile/20150709.054400 accepted/tizen/tv/20150709.054418 accepted/tizen/wearable/20150709.054427 submit/tizen/20150709.021829 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release
authorJihoon Jung <jh8801.jung@samsung.com>
Thu, 9 Jul 2015 02:11:23 +0000 (11:11 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Thu, 9 Jul 2015 02:12:04 +0000 (11:12 +0900)
Change-Id: I3a85232a5d9b716a77ddae06727d07e8870547cf
Signed-off-by: Ji-hoon Jung <jh8801.jung@samsung.com>
CMakeLists.txt
packaging/smartcard-service.spec
server/CMakeLists.txt
server/ServerGDBus.cpp
server/private/AccessControl.cpp

index ee5ffee..834abff 100644 (file)
@@ -4,9 +4,6 @@ MESSAGE("build smartcard-service")
 
 SET(CMAKE_VERBOSE_MAKEFILE OFF)
 
-# apply smack
-ADD_DEFINITIONS("-DUSER_SPACE_SMACK")
-
 IF(DEFINED USE_AUTOSTART)
        ADD_DEFINITIONS("-DUSE_AUTOSTART")
 ENDIF()
index c9a9970..cf565ce 100644 (file)
@@ -18,7 +18,6 @@ Source1:    %{name}-server.init
 BuildRequires: cmake
 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 d5c068b..0d1dd81 100644 (file)
@@ -29,7 +29,7 @@ ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "")
 # pkg config
 INCLUDE(FindPkgConfig)
 
-SET(PKG_MODULE glib-2.0 gio-2.0 gio-unix-2.0 security-server dlog)
+SET(PKG_MODULE glib-2.0 gio-2.0 gio-unix-2.0 dlog)
 
 pkg_check_modules(pkgs_server REQUIRED ${PKG_MODULE})
 
index 44e6b54..55a1118 100644 (file)
 #include <string>
 #include <sys/socket.h>
 
-/* SLP library header */
-#ifdef USER_SPACE_SMACK
-#include "security-server.h"
-#endif
-
 /* local header */
 #include "smartcard-types.h"
 #include "Debug.h"
@@ -300,25 +295,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
                return result;
        }
 
index 4b78232..b349818 100644 (file)
 #include <gio/gio.h>
 #include <map>
 
-/* SLP library header */
-#ifdef USER_SPACE_SMACK
-#include "security-server.h"
-#endif
-
 /* local header */
 #include "Debug.h"
 #include "APDUHelper.h"
@@ -121,19 +116,7 @@ static bool _is_authorized_request(GDBusMethodInvocation *invocation,
        const char *rights)
 {
        bool result = true;
-#ifdef USER_SPACE_SMACK
-       pid_t pid;
-       const char *name;
-
-       name = g_dbus_method_invocation_get_sender(invocation);
-
-       pid = ServerGDBus::getInstance().getPID(name);
 
-       result = (security_server_check_privilege_by_pid(
-               pid,
-               "smartcard-service::priv",
-               rights) == SECURITY_SERVER_API_SUCCESS);
-#endif
        return result;
 }