Change to use secure log in IO
authorSunwook Bae <sunwook45.bae@samsung.com>
Wed, 17 Apr 2013 11:50:01 +0000 (20:50 +0900)
committerSunwook Bae <sunwook45.bae@samsung.com>
Wed, 17 Apr 2013 11:50:01 +0000 (20:50 +0900)
Change-Id: I8d5c7d962bf1ae963fbf2d295123f372cd80afa1
Signed-off-by: Sunwook Bae <sunwook45.bae@samsung.com>
src/io/FIo_DataControlResultSetImpl.cpp
src/io/FIo_FileImpl.cpp
src/io/FIo_MessagePortProxy.cpp

index 8b84873..fe00c93 100644 (file)
@@ -152,7 +152,7 @@ _DataControlResultSetImpl::FillWith(IDbEnumerator* pDbEnum)
        tempFilePath.Append(appId);
        tempFilePath.Append(callerReqId);
        __tmpPath = tempFilePath;
-       SysLog(NID_IO, "[DC_PROV_SEND] temp file path: %ls", tempFilePath.GetPointer());
+       SysSecureLog(NID_IO, "[DC_PROV_SEND] temp file path: %ls", tempFilePath.GetPointer());
 
        // initialize
        r = pDbEnum->Reset();
@@ -192,7 +192,7 @@ _DataControlResultSetImpl::FillWith(IDbEnumerator* pDbEnum)
                        GetErrorMessage(r), __tmpPath.GetPointer());
 
        columnCount = pDbEnum->GetColumnCount();
-       SysLog(NID_IO, "column count is %d.\n", columnCount);
+       SysSecureLog(NID_IO, "column count is %d.\n", columnCount);
 
        r = pFile->Seek(FILESEEKPOSITION_BEGIN, sizeof(int));
        SysTryReturn(NID_IO, r == E_SUCCESS, r, r, "[%s] System error was occurred.", GetErrorMessage(r));
@@ -266,7 +266,7 @@ _DataControlResultSetImpl::FillWith(IDbEnumerator* pDbEnum)
                byte = strlen(pColumnName);
                totalSizeOfColumnNames += byte;
 
-               SysLog(NID_IO, "[%d] column name: %s", i, pColumnName);
+               SysSecureLog(NID_IO, "[%d] column name: %s", i, pColumnName);
                delete[] pColumnName;
        }
        r = pFile->Seek(FILESEEKPOSITION_BEGIN, sizeof(int) * 2);
index 86cab34..fa6a43d 100644 (file)
@@ -683,7 +683,7 @@ _FileImpl::PrepareDataCaging(const String& appRootPath, const String& pkgId)
        bool internalInstalled = true;
        result r = E_SUCCESS;
 
-       SysLog(NID_IO, "[data_caging] PrepareDataCaging() was called by installer backend, appRootPath: %ls, packageId: %ls",
+       SysSecureLog(NID_IO, "[data_caging] PrepareDataCaging() was called by installer backend, appRootPath: %ls, packageId: %ls",
                        appRootPath.GetPointer(), pkgId.GetPointer());
 
        if (CleanDirectories(appRootPath, pkgId) == false)
index c377385..d2e32fb 100644 (file)
@@ -113,7 +113,7 @@ OnMessageReceived(int id, const char* remote_app_id, const char* remote_port, bo
        ret = messageport_get_local_port_name(id, &pLocalPort);
        if (pLocalPort == null)
        {
-               SysLog(NID_IO, "No local port for id: %d", id);
+               SysSecureLog(NID_IO, "No local port for id: %d", id);
 
                bundle_free(data);
                return;
@@ -142,7 +142,7 @@ OnMessageReceived(int id, const char* remote_app_id, const char* remote_port, bo
                }
                else // Bi-directional
                {
-                       SysLog(NID_IO, "Message received from [%s:%s], trusted: %d", remote_app_id, remote_port, trusted_port);
+                       SysSecureLog(NID_IO, "Message received from [%s:%s], trusted: %d", remote_app_id, remote_port, trusted_port);
 
                        pListener->OnMessageReceivedN(remote_app_id, remote_port, trusted_port, pMap);
                }
@@ -164,7 +164,7 @@ OnTrustedMessageReceived(int id, const char* remote_app_id, const char* remote_p
        ret = messageport_get_local_port_name(id, &pLocalPort);
        if (pLocalPort == null)
        {
-               SysLog(NID_IO, "No local port for id: %d", id);
+               SysSecureLog(NID_IO, "No local port for id: %d", id);
 
                bundle_free(data);
                return;
@@ -191,7 +191,7 @@ OnTrustedMessageReceived(int id, const char* remote_app_id, const char* remote_p
                }
                else // Bi-directional
                {
-                       SysLog(NID_IO, "Trusted message received from [%s:%s], trusted: %d", remote_app_id, remote_port, trusted_port);
+                       SysSecureLog(NID_IO, "Trusted message received from [%s:%s], trusted: %d", remote_app_id, remote_port, trusted_port);
 
                        pListener->OnMessageReceivedN(remote_app_id, remote_port, trusted_port, pMap);
                }
@@ -230,7 +230,7 @@ result
 _MessagePortProxy::RegisterMessagePort(const String& localPort,        bool isTrusted,
                                                                        const _IMessagePortListener& listener)
 {
-       SysLog(NID_IO, "Register a message port : [%ls:%ls]", __appId.GetPointer(), localPort.GetPointer());
+       SysSecureLog(NID_IO, "Register a message port : [%ls:%ls]", __appId.GetPointer(), localPort.GetPointer());
 
        result r = E_SUCCESS;
        int ret = 0;
@@ -285,7 +285,7 @@ _MessagePortProxy::RequestRemotePort(const AppId& remoteAppId,
                                                                        const String& remotePort,
                                                                        bool isTrusted)
 {
-       SysLog(NID_IO, "Request a remote message port [%ls:%ls]", remoteAppId.GetPointer(), remotePort.GetPointer());
+       SysSecureLog(NID_IO, "Request a remote message port [%ls:%ls]", remoteAppId.GetPointer(), remotePort.GetPointer());
 
        result r = E_SUCCESS;
        int ret = 0;
@@ -322,7 +322,7 @@ _MessagePortProxy::RequestRemotePort(const AppId& remoteAppId,
 result
 _MessagePortProxy::SendMessage(const AppId& remoteAppId, const String& remotePort, bool isTrusted, const HashMap* pMap)
 {
-       SysLog(NID_IO, "Send a unidirectional message to remote port [%ls:%ls]", remoteAppId.GetPointer(), remotePort.GetPointer());
+       SysSecureLog(NID_IO, "Send a unidirectional message to remote port [%ls:%ls]", remoteAppId.GetPointer(), remotePort.GetPointer());
 
        int ret = 0;
        int size = 0;
@@ -365,7 +365,7 @@ _MessagePortProxy::SendMessage(const AppId& remoteAppId, const String& remotePor
 result
 _MessagePortProxy::SendMessage(const String& localPort, bool isTrustedLocal, const AppId& remoteAppId, const String& remotePort, bool isTrustedRemote, const HashMap* pMap)
 {
-       SysLog(NID_IO, "Send a bidirectional message from [%ls:%ls] to [%ls:%ls]", __appId.GetPointer(), localPort.GetPointer(), remoteAppId.GetPointer(), remotePort.GetPointer());
+       SysSecureLog(NID_IO, "Send a bidirectional message from [%ls:%ls] to [%ls:%ls]", __appId.GetPointer(), localPort.GetPointer(), remoteAppId.GetPointer(), remotePort.GetPointer());
 
        result r = E_SUCCESS;
        int id = 0;