Fix install failure of user package 69/223969/3
authorSangyoon Jang <jeremy.jang@samsung.com>
Wed, 5 Feb 2020 08:08:56 +0000 (17:08 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Thu, 6 Feb 2020 10:34:43 +0000 (19:34 +0900)
Because wrong path was given for security registration, the install of
user package was failed.

Change-Id: Ifb9c9e90ea801ee012988df1b123d7f606e856be
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/common/shared_dirs.cc

index 9a3a4be..1bc4500 100644 (file)
@@ -540,7 +540,7 @@ bool CreateStorageDirectories(const boost::filesystem::path& path,
   }
 
   std::string error_message;
-  if (!RegisterSecurityContextForPath(pkgid, path, uid, false,
+  if (!RegisterSecurityContextForPath(pkgid, path / pkgid, uid, false,
                                       &error_message)) {
     LOG(ERROR) << "Failed to register security context for path: " << path
                << ", error_message: " << error_message;