Fix mount install failure on global installation 76/106576/1
authorSangyoon Jang <s89.jang@samsung.com>
Thu, 22 Dec 2016 05:54:25 +0000 (14:54 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Thu, 22 Dec 2016 05:54:25 +0000 (14:54 +0900)
Security registration should be done before creating per user storage
directories because StepCreatePerUserStorage calls
security_manager_paths_register() and it needs security context.

Change-Id: I90c846f55c5ba2cdc294c1a762edb9d97cc76b50
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
src/wgt/wgt_installer.cc

index cef4e4c..1f6c18c 100755 (executable)
@@ -350,13 +350,13 @@ WgtInstaller::WgtInstaller(ci::PkgMgrPtr pkgrmgr)
       AddStep<ci::filesystem::StepCreateIcons>();
       AddStep<wgt::filesystem::StepCopyPreviewIcons>();
       AddStep<wgt::pkgmgr::StepGenerateXml>();
-      AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>(
-          wgt::filesystem::WgtAdditionalSharedDirs);
       AddStep<wgt::security::StepCheckExtensionPrivileges>();
       AddStep<ci::security::StepRegisterSecurity>();
       AddStep<ci::pkgmgr::StepRegisterApplication>();
       AddStep<ci::pkgmgr::StepRunParserPlugin>(
           ci::Plugin::ActionType::Install);
+      AddStep<ci::filesystem::StepCreatePerUserStorageDirectories>(
+          wgt::filesystem::WgtAdditionalSharedDirs);
       AddStep<ci::filesystem::StepChangeOwnershipAndPermission>();
       AddStep<ci::filesystem::StepCreateGlobalAppSymlinks>();
       break;