Fix install failure of user package 19/226319/3
authorSangyoon Jang <jeremy.jang@samsung.com>
Wed, 5 Feb 2020 08:08:56 +0000 (17:08 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Mon, 2 Mar 2020 04:00:13 +0000 (13:00 +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>
(cherry picked from commit e5c99eeb064818818ea24294d55dcb89d234e0ca)

src/common/shared_dirs.cc

index ffbad24..6021b05 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;