Fix the boiler plate codes
[platform/framework/native/appfw.git] / src / io / FIo_FileImpl.cpp
index ce3749f..014c8bd 100644 (file)
@@ -1,5 +1,4 @@
 //
-// Open Service Platform
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
 // Licensed under the Apache License, Version 2.0 (the License);
@@ -567,22 +566,12 @@ _FileImpl::GetAttributes(const String& filePath, FileAttributes& attribute)
 String
 _FileImpl::GetFileName(const String& filePath)
 {
-       String fileName;
-       SysTryReturn(NID_IO, VerifyFilePathCompatibility(filePath, _AppInfo::IsOspCompat()) == true, fileName, E_INVALID_ARG,
-                       "[E_INVALID_ARG] The length of the specified filePath (%ls) is zero or exceeds system limitations.",
-                       filePath.GetPointer());
-
        return _FileUtil::GetFileName(filePath);
 }
 
 String
 _FileImpl::GetFileExtension(const String& filePath)
 {
-       String extName;
-       SysTryReturn(NID_IO, VerifyFilePathCompatibility(filePath, _AppInfo::IsOspCompat()) == true, extName, E_INVALID_ARG,
-                       "[E_INVALID_ARG] The length of the specified filePath (%ls) is zero or exceeds system limitations.",
-                       filePath.GetPointer());
-
        return _FileUtil::GetFileExtension(filePath);
 }
 
@@ -683,7 +672,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)
@@ -796,6 +785,7 @@ _FileImpl::FinalizeDataCaging(const String& appRootPath) // for 2.0 app
                //{ "./packaging" },
                { "./proc" },
                { "./sbin" },
+               { "./smack" },
                { "./srv" },
                { "./sys/kernel/debug" },
                { "./sys" },
@@ -1176,6 +1166,7 @@ _FileImpl::CreateSlpDirectories(void)
                //{ "./packaging", 0000, false },
                { "./proc", 0000, false },
                { "./sbin", 0000, false },
+               { "./smack", 0000, false },
                { "./srv", 0000, false },
                { "./sys", 0000, false },
                { "./tmp", 0000, false },