From: Sunwook Bae Date: Fri, 10 May 2013 07:26:24 +0000 (+0900) Subject: Apply secure logs X-Git-Tag: submit/tizen_2.1/20130514.054102~12^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=feea58b08fa82ba78f1822580fa28f2793354a20;p=platform%2Fframework%2Fnative%2Fappfw.git Apply secure logs Change-Id: I7e5505f6f08c920d1e5465f405198b280b5ed0dd Signed-off-by: Sunwook Bae --- diff --git a/src/io/FIo_DirEnumeratorImpl.cpp b/src/io/FIo_DirEnumeratorImpl.cpp index 032bbc6..2d2f151 100644 --- a/src/io/FIo_DirEnumeratorImpl.cpp +++ b/src/io/FIo_DirEnumeratorImpl.cpp @@ -173,7 +173,7 @@ _DirEnumeratorImpl::MoveNext(void) // get its details ret = stat64(pAbsDirEntryPath.get(), &statbuf); - SysTryReturn(NID_IO, (ret == 0), r = __ConvertNativeErrorToResult(errno), __ConvertNativeErrorToResult(errno), + SysSecureTryReturn(NID_IO, (ret == 0), r = __ConvertNativeErrorToResult(errno), __ConvertNativeErrorToResult(errno), "[%s] Failed to get attributes for dir entry (%s) whose absolute dirpath is (%s)with errno [%d].", __ConvertNativeErrorToMessage(errno), dirEnt.d_name, pAbsDirPath.get(), errno); diff --git a/src/io/FIo_NormalFile.cpp b/src/io/FIo_NormalFile.cpp index 97b2b8d..f4edb77 100644 --- a/src/io/FIo_NormalFile.cpp +++ b/src/io/FIo_NormalFile.cpp @@ -88,7 +88,7 @@ _NormalFile::Construct(const String& filePath, const char* pOpenMode) if (pFile == null) { r = __ConvertNativeErrorToResult(errno); - SysLogException(NID_IO, r, "[%s] Failed to open file (%s) in openMode (%s), errno: %d (%s).", + SysSecureLogException(NID_IO, r, "[%s] Failed to open file (%s) in openMode (%s), errno: %d (%s).", GetErrorMessage(r), pFilePath.get(), pOpenMode, errno, strerror(errno)); return r; } diff --git a/src/io/FIo_SecureFile.cpp b/src/io/FIo_SecureFile.cpp index 76bbfed..4ea78ed 100644 --- a/src/io/FIo_SecureFile.cpp +++ b/src/io/FIo_SecureFile.cpp @@ -98,7 +98,7 @@ _SecureFile::Construct(const String& filePath, const char* pOpenMode, const Byte { r = pNormalFile->Construct(filePath, pOpenMode); } - SysTryReturn(NID_IO, !IsFailed(r), r, r, "[%s] Failed to open file (%ls) in openmode (%s).", + SysSecureTryReturn(NID_IO, !IsFailed(r), r, r, "[%s] Failed to open file (%ls) in openmode (%s).", GetErrorMessage(r), filePath.GetPointer(), pOpenMode); if (_append)