Add label for compat
authorDuyoung Jang <duyoung.jang@samsung.com>
Wed, 12 Jun 2013 02:06:25 +0000 (11:06 +0900)
committerDuyoung Jang <duyoung.jang@samsung.com>
Wed, 12 Jun 2013 02:06:25 +0000 (11:06 +0900)
Change-Id: I9b56b2ffc4307e38933b18d41da5fe124ca71c0d
Signed-off-by: Duyoung Jang <duyoung.jang@samsung.com>
inc/InstallerDefs.h
src/Manager/PermissionManager.cpp

index 74d0952..c5ee8e7 100755 (executable)
@@ -23,7 +23,7 @@
 
 #include "InstallerUtil.h"
 
-#define OSP_INSTALLER_VERSION "version=[20130612.1]"
+#define OSP_INSTALLER_VERSION "version=[20130612.2]"
 
 #define DIR_BIN                                L"/bin"
 #define DIR_INFO                       L"/info"
index 8973340..18e4b69 100755 (executable)
@@ -247,6 +247,9 @@ PermissionManager::SetSymLink(InstallationContext* pContext)
        String newPath;
        String appRootPath = pContext->__rootPath;
 
+       SmackManager smackManager;
+       String label("_");
+
 #if 0
        oldPath = appRootPath + DIR_RES;
        newPath = appRootPath + L"/Res";
@@ -255,6 +258,7 @@ PermissionManager::SetSymLink(InstallationContext* pContext)
        newPath = appRootPath + L"/Res";
        std::unique_ptr< char[] > pResPath(_StringConverter::CopyToCharArrayN(newPath));
        int ret = symlink("./res", pResPath.get());
+       smackManager.AddLabelDir(label, newPath);
 #endif
 
 #if 0
@@ -265,6 +269,7 @@ PermissionManager::SetSymLink(InstallationContext* pContext)
        newPath = appRootPath + L"/Home";
        std::unique_ptr< char[] > pHomePath(_StringConverter::CopyToCharArrayN(newPath));
        ret = symlink("./data", pHomePath.get());
+       smackManager.AddLabelDir(label, newPath);
 #endif
 
        oldPath = appRootPath + DIR_RES + L"/screen-size-normal";