From 3453a46f46a94eb5dcdec3bf4103de8c6305f889 Mon Sep 17 00:00:00 2001 From: Sunwook Bae Date: Wed, 17 Apr 2013 20:50:01 +0900 Subject: [PATCH] Change to use secure log in IO Change-Id: I8d5c7d962bf1ae963fbf2d295123f372cd80afa1 Signed-off-by: Sunwook Bae --- src/io/FIo_DataControlResultSetImpl.cpp | 6 +++--- src/io/FIo_FileImpl.cpp | 2 +- src/io/FIo_MessagePortProxy.cpp | 16 ++++++++-------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/io/FIo_DataControlResultSetImpl.cpp b/src/io/FIo_DataControlResultSetImpl.cpp index 8b84873..fe00c93 100644 --- a/src/io/FIo_DataControlResultSetImpl.cpp +++ b/src/io/FIo_DataControlResultSetImpl.cpp @@ -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); diff --git a/src/io/FIo_FileImpl.cpp b/src/io/FIo_FileImpl.cpp index 86cab34..fa6a43d 100644 --- a/src/io/FIo_FileImpl.cpp +++ b/src/io/FIo_FileImpl.cpp @@ -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) diff --git a/src/io/FIo_MessagePortProxy.cpp b/src/io/FIo_MessagePortProxy.cpp index c377385..d2e32fb 100644 --- a/src/io/FIo_MessagePortProxy.cpp +++ b/src/io/FIo_MessagePortProxy.cpp @@ -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; -- 2.7.4